Bug 10209 - list-packageconfig-flags.py doesn't work
Summary: list-packageconfig-flags.py doesn't work
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M4
Assignee: Paul Eggleton
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-02 03:01 UTC by Yi Zhao
Modified: 2016-09-14 02:13 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2016-09-02 03:01:37 UTC
Git rev: master/087c580b286816265f487e02746bfa6e26081554

When running list-packageconfig-flags.py, I got the following error:
##########################
$ ../scripts/contrib/list-packageconfig-flags.py 
Parsing recipes..done.
Gathering recipe data...
Traceback (most recent call last):
  File "../scripts/contrib/list-packageconfig-flags.py", line 179, in <module>
    main()
  File "../scripts/contrib/list-packageconfig-flags.py", line 166, in main
    data_dict = get_recipesdata(bbhandler, options.preferred)
  File "../scripts/contrib/list-packageconfig-flags.py", line 61, in get_recipesdata
    pkg_pn = bbhandler.cooker.recipecache.pkg_pn
AttributeError: 'BBCooker' object has no attribute 'recipecache'
###########################
Comment 1 Hongxu Jia 2016-09-14 02:13:16 UTC
Paul E has fixed the issue

commit 4a5aa7ea4d07c2c90a1654b174873abb018acc67
Author: Paul Eggleton <paul.eggleton@linux.intel.com>
Date:   Wed Aug 31 13:48:06 2016 +1200

    scripts/contrib: update scripts for changes to internal API
    
    The multiconfig changes altered some of the functions being called here,
    so update the calls. Make use of the new Tinfoil.parse_recipe_file()
    function to make parsing easier.
    
    (From OE-Core rev: 95b6ceffd947271f315d8a7660797ab371adfbb9)
    
    Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Comment 2 Hongxu Jia 2016-09-14 02:13:49 UTC
See above comments