Bug 4513

Summary: bitbake-layers show-overlayed broken
Product: [Build System, Metadata & Runtime] BitBake Reporter: Gary Thomas <gary>
Component: bitbakeAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, razvanx.ionescu, sgw
Version: unspecified   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Gary Thomas 2013-05-20 13:36:49 UTC
Using Poky/Yocto repository

Build Configuration:
BB_VERSION        = "1.19.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Fedora-16"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4+snapshot-20130520"
TUNE_FEATURES     = "armv5 thumb dsp"
TARGET_FPU        = "soft"
meta              
meta-yocto        
meta-yocto-bsp    = "master:350c36fcd97e8ef223b91e548d39c346c1c4cb29"

$ bitbake-layers show-overlayed
Parsing recipes..done.
Traceback (most recent call last):
  File "/home/local/poky-multi/bitbake/bin/bitbake-layers", line 720, in <module>
    sys.exit(main(sys.argv[1:]) or 0)
  File "/home/local/poky-multi/bitbake/bin/bitbake-layers", line 50, in main
    cmds.onecmd(' '.join(args))
  File "/usr/lib/python2.6/cmd.py", line 219, in onecmd
    return func(arg)
  File "/home/local/poky-multi/bitbake/bin/bitbake-layers", line 137, in do_show_overlayed
    items_listed = self.list_recipes('Overlayed recipes', None, True, show_same_ver_only, show_filenames, True)
  File "/home/local/poky-multi/bitbake/bin/bitbake-layers", line 236, in list_recipes
    skiplist.sort( key=lambda fileitem: self.bbhandler.cooker.calc_bbfile_priority(fileitem) )
  File "/home/local/poky-multi/bitbake/bin/bitbake-layers", line 236, in <lambda>
    skiplist.sort( key=lambda fileitem: self.bbhandler.cooker.calc_bbfile_priority(fileitem) )
AttributeError: BBCooker instance has no attribute 'calc_bbfile_priority'
Comment 1 Paul Eggleton 2013-05-22 14:53:45 UTC
I've sent a patch to fix this and some other similar problems to the bitbake mailing list.
Comment 2 Gary Thomas 2013-05-22 15:04:34 UTC
(In reply to comment #1)
> I've sent a patch to fix this and some other similar problems to the bitbake
> mailing list.

Verified working with these patches applied.
Comment 3 Paul Eggleton 2013-05-22 16:08:02 UTC
Fixes have now been merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=25905ae63728b42cf15f57bce653447543cb566e

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a4bf49052ba9cedc646758d5beaab327f1145e69

(For reference for other readers, this was a regression in recent master.)
Comment 4 Razvan Ionescu 2013-10-02 10:18:54 UTC
Verified with: poky: 72accaf7d909bea14412fee06004b6b8acbe5b80
It includes the poky: 25905ae63728b42cf15f57bce653447543cb566e

Output:

bitbake-layers show-overlayed
Parsing recipes..done.
=== Overlayed recipes ===
clutter-1.0:
  meta                 1.14.4
  meta-yocto           1.14.4
clutter-gst-1.0:
  meta                 1.6.0
  meta-yocto           1.6.0
clutter-gtk-1.0:
  meta                 1.4.2
  meta-yocto           1.4.2