<?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>5611</bug_id>
          
          <creation_ts>2013-11-29 15:57:47 +0000</creation_ts>
          <short_desc>changes to .inc files are ignored if file is created after initial parsing</short_desc>
          <delta_ts>2013-12-02 09:21:25 +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.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>39148</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-11-29 15:57:47 +0000</bug_when>
    <thetext>Important changes in .inc files added by &apos;include &lt;file_name&gt;.inc&apos; are ignored if .inc file is created after recipes are parsed. 

Changes in &lt;filename&gt;.inc will be taken into account if the .bb or .bbappend file it is in is changed in any way and thus requires a re-parse. 

Steps to reproduce:
1) get a clean build directory
2) add &quot;include test_recipe.inc&quot; to meta/recipes-devtools/m4/m4-native_1.4.17.bb
3) &apos;bitbake m4-native&apos;
 - notice the stamp for m4-native do_install task in tmp/stamps . Track it along the way to see if the task id re-done.
4) create meta/recipes-devtools/m4/test_recipe.inc with the following contents:
do_install_append () {
        echo &quot;Test if package rebuilds&quot;
}

5) &apos;bitbake m4-native&apos;
 - notice the changes are ignored; no tasks are re-done
 - notice m4-native do_install stamp is the same

6) add TEST_VAR = &quot;1&quot; in meta/recipes-devtools/m4/m4-native_1.4.17.bb
7) &apos;bitbake m4-native&apos;
 - notice tasks after and including m4-native do_install are done
 - notice m4-native do_install stamp changed

8) Modify meta/recipes-devtools/m4/test_recipe.inc as follows:
do_install_append () {
        echo &quot;The package should rebuild now&quot;
}

9) &apos;bitbake m4-native&apos;
 - notice tasks after and including m4-native do_install are done
 - notice m4-native do_install stamp changed

10) delete meta/recipes-devtools/m4/test_recipe.inc
11) &apos;bitbake -p&apos;
12) recreate meta/recipes-devtools/m4/test_recipe.inc with the following contents:
do_install_append () {
        echo &quot;Package should rebuild, but will not&quot;
}

13) &apos;bitbake m4-native&apos;
 - notice the changes are ignored; no tasks are re-done
 - notice m4-native do_install stamp is the same</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39162</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-30 22:32:57 +0000</bug_when>
    <thetext>Fixed in master:http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f5f3ef7b09ab3790da92f8bef83835033bbeb0ac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39173</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-12-02 09:21:25 +0000</bug_when>
    <thetext>Verified with poky master:fabdf2f57a8e0ebe8ab7e82f92f3b298e113fcc0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>