Bug 4535 - 'bitbake-layers flatten' gives error
Summary: 'bitbake-layers flatten' gives error
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-23 14:24 UTC by Stoicescu Cornel
Modified: 2013-10-02 10:16 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stoicescu Cornel 2013-05-23 14:24:37 UTC
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 "bitbake-layers flatten test", 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 "/home/cornel/SSD/poky/bitbake/bin/bitbake-layers", line 720, in <module>
    sys.exit(main(sys.argv[1:]) or 0)
  File "/home/cornel/SSD/poky/bitbake/bin/bitbake-layers", line 50, in main
    cmds.onecmd(' '.join(args))
  File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "/home/cornel/SSD/poky/bitbake/bin/bitbake-layers", line 374, in do_flatten
    for f in self.bbhandler.cooker.overlayed.iterkeys():
AttributeError: BBCooker instance has no attribute 'overlayed'
Comment 1 Stoicescu Cornel 2013-05-23 14:31:38 UTC
same issue with 'bitbake-layers show_overlayed'
Comment 2 Stoicescu Cornel 2013-05-23 14:33:25 UTC
please ignore the above comment.
Comment 4 Razvan Ionescu 2013-10-02 10:16:16 UTC
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