<?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>4535</bug_id>
          
          <creation_ts>2013-05-23 14:24:37 +0000</creation_ts>
          <short_desc>&apos;bitbake-layers flatten&apos; gives error</short_desc>
          <delta_ts>2013-10-02 10:16:16 +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.5</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</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>
    
    <cc>razvanx.ionescu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33231</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-05-23 14:24:37 +0000</bug_when>
    <thetext>STATUS: FAILED
BUILD: master:176a46b088135f2891983bb8540bc45389341d90
ENVIRONMENT: Ubuntu 12.04 x86_64
STEPS TO REPRODUCE: 
1. prepare poky build environment
2. create a folder, for example, test
3. run &quot;bitbake-layers flatten test&quot;, all contents of all layers should 
be moved into the test folder, with any bbappends appended to 
corresponding recipes

Notice error:

cornel@NODE1:~/SSD/poky/build$ bitbake-layers flatten test
Parsing recipes..done.
Traceback (most recent call last):
  File &quot;/home/cornel/SSD/poky/bitbake/bin/bitbake-layers&quot;, line 720, in &lt;module&gt;
    sys.exit(main(sys.argv[1:]) or 0)
  File &quot;/home/cornel/SSD/poky/bitbake/bin/bitbake-layers&quot;, line 50, in main
    cmds.onecmd(&apos; &apos;.join(args))
  File &quot;/usr/lib/python2.7/cmd.py&quot;, line 221, in onecmd
    return func(arg)
  File &quot;/home/cornel/SSD/poky/bitbake/bin/bitbake-layers&quot;, line 374, in do_flatten
    for f in self.bbhandler.cooker.overlayed.iterkeys():
AttributeError: BBCooker instance has no attribute &apos;overlayed&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33232</commentid>
    <comment_count>1</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-05-23 14:31:38 +0000</bug_when>
    <thetext>same issue with &apos;bitbake-layers show_overlayed&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33233</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-05-23 14:33:25 +0000</bug_when>
    <thetext>please ignore the above comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33270</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-05-24 10:26:25 +0000</bug_when>
    <thetext>Fixed in master http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=72accaf7d909bea14412fee06004b6b8acbe5b80</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37461</commentid>
    <comment_count>4</comment_count>
    <who name="Razvan Ionescu">razvanx.ionescu</who>
    <bug_when>2013-10-02 10:16:16 +0000</bug_when>
    <thetext>Verified with poky: 72accaf7d909bea14412fee06004b6b8acbe5b80

Partial output:

 bitbake-layers flatten test
Parsing recipes..done.
Copying files from /home/razvan/yocto_work/pokytests/meta...
  Applying appends to test/recipes-kernel/linux/linux-yocto_3.4.bb
  Applying appends to test/recipes-kernel/linux/linux-yocto_3.2.bb
  Applying appends to test/recipes-kernel/linux/linux-yocto_3.8.bb
  Applying appends to test/recipes-gnome/packagegroups/packagegroup-core-standalone-gmae-sdk-target.bb
  Applying appends to test/recipes-gnome/packagegroups/packagegroup-core-sdk-gmae.bb
  Applying appends to test/recipes-core/busybox/busybox_1.20.2.bb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>