<?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>3620</bug_id>
          
          <creation_ts>2012-12-19 12:06:13 +0000</creation_ts>
          <short_desc>bibake doesn&apos;t reparse the recipes after task dependency update in bbclass</short_desc>
          <delta_ts>2013-02-22 07:46:43 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Muhammad Shakeel">email.mshakeel</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>kergoth</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28371</commentid>
    <comment_count>0</comment_count>
      <attachid>986</attachid>
    <who name="Muhammad Shakeel">email.mshakeel</who>
    <bug_when>2012-12-19 12:06:13 +0000</bug_when>
    <thetext>Created attachment 986
test file to reproduce bug

Steps to reproduce:

1) Download and place attached test.bbclass file in poky
2) Inherit test.bbclass in any recipe
3) Get the graph for that particular recipe i.e. $ bitbake -g &lt;recipe&gt;
4) You should see the following error:
ERROR: Task &lt;yocto_dir&gt;/poky/meta/recipes-extended/libaio/libaio_0.3.109.bb (do_test_task) has circular dependency on &lt;yocto_dir&gt;/poky/meta/recipes-extended/libaio/libaio_0.3.109.bb (do_fetch)

5) Replace line number 2 in test.bbclass with:
do_build[recrdeptask] += &apos;do_test_task&apos;

6) Step number 5 will remove circular dependency for fetch task. Repeat Step 3. You will still see the same error &lt;bug&gt;. This is because bitbake didn&apos;t reparse the metadata.
6) Remove &lt;build_dir&gt;/tmp/cache/
7) Repeat step number 3. Now bitbake will reparse all the metadata and will not show any error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29797</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-02-14 11:26:28 +0000</bug_when>
    <thetext>I just tried this with bitbake/poky master and the system reparsed things correctly after I changed test.bbclass. Which revision of the metadata did you find this issue with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29855</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-02-15 12:39:39 +0000</bug_when>
    <thetext>If you can reproduce this against master, pleas reopen this. I&apos;m going to assume this is with an older version of the metadata though, before some of the cache fixes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30021</commentid>
    <comment_count>3</comment_count>
    <who name="Muhammad Shakeel">email.mshakeel</who>
    <bug_when>2013-02-22 07:46:43 +0000</bug_when>
    <thetext>I have also verified it against the master that it isn&apos;t reproducible. Seems like that it is resolved while fixing the cache issues, as Richard mentioned.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>986</attachid>
            <date>2012-12-19 12:06:13 +0000</date>
            <delta_ts>2012-12-19 12:06:13 +0000</delta_ts>
            <desc>test file to reproduce bug</desc>
            <filename>test.bbclass</filename>
            <type>application/octet-stream</type>
            <size>134</size>
            <attacher name="Muhammad Shakeel">email.mshakeel</attacher>
            
              <data encoding="base64">YWRkdGFzayB0ZXN0X3Rhc2sgYWZ0ZXIgZG9fZmV0Y2ggYmVmb3JlIGRvX2J1aWxkCmRvX2ZldGNo
W3JlY3JkZXB0YXNrXSArPSAnZG9fdGVzdF90YXNrJwoKcHl0aG9uIGRvX3Rlc3RfdGFzaygpewog
ICAgIHByaW50ICJ0ZXN0Igp9Cgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>