<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1091</bug_id>
          
          <creation_ts>2011-05-20 04:32:41 +0000</creation_ts>
          <short_desc>Adding .bbappend should invalidate cache</short_desc>
          <delta_ts>2014-01-28 12:06:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>tomw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13928</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-05-20 04:32:41 +0000</bug_when>
    <thetext>Here&apos;s the scenario - one builds a package, then finds that it&apos;s inadequate
for the [local] requirements.  A change needs to be made, but not one which
warrants changing the global recipe.  So, a .bbappend file is created in the
local layer, affecting the change.

Sadly, in this case, the .bbappend file will not be processed because the
recipe has already been parsed and cached and only that data will be used.
Somehow, the cache logic should take into account all parts of the recipe
and if that changes, e.g. a .bbappend gets added, the cache is invalid.

There might be some more elegant way to solve this, but my experience is
that forcing the cache to be rebuilt solves the problem and allows the
.bbappend file to operate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14647</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-07-08 15:34:52 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=159aee22dc7d8c78ca2920dfc58d8bf9238ef720</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39640</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Walsh">tomw</who>
    <bug_when>2013-12-31 16:53:11 +0000</bug_when>
    <thetext>This seems to be another consequence of this bug: when a new bbappend recipe is added to a working image (rootfs has been previously generated), the associated RPM is rebuilt, but the rebuild of the rootfs is not triggered (you have to do a bitbake -c clean &lt;image&gt; before the change is propagated from the RPM into the rootfs).

Here is an example, build an image using ext3 as the output and make the system rpm based.  Then, add a &quot;&lt;machine&gt;/meta/recipes/recipes-core/netbase/netbase_5.1.bbappend&quot; containing the following:

FILESEXTRAPATHS_prepend := &quot;${THISDIR}/files:&quot;
PRINC := &quot;${@int(PRINC) + 3}&quot;


Add a hosts file into &quot;&lt;machine&gt;/meta/recipes/recipes-core/netbase/files/&quot; and build the image (e.g. bitbake core-image-*).  The bbappend is processed, an RPM with the correct contents is produced, but the rootfs image is not updated.

Subsequent attempts to build the image will ignore the new change until a clean is done of the rootfs image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40059</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-01-28 12:06:39 +0000</bug_when>
    <thetext>I&apos;m pretty sure you&apos;re running into http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/lib/oe/sstatesig.py?id=80d522a5bc694fdb8b8a53ad4aa36410f3612c6b and this has been resolved. 

In future please open new bugs for new issues like this, its a different issue to the one described here which was fixed 2.5 years ago.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>