Bug 5140 - list-packageconfig-flags.py: could not list skipped recipes
Summary: list-packageconfig-flags.py: could not list skipped recipes
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Low normal
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-09-09 06:03 UTC by Hongxu Jia
Modified: 2019-06-06 15:15 UTC (History)
9 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 Hongxu Jia 2013-09-09 06:03:50 UTC
*problem

Run "list-packageconfig-flags.py -a", and some packages that contain
PACKAGECONFIG were not listed. Such as: libav/grub/xf86-video-intel

In libav:
oe-core/meta/recipes-multimedia/libav/libav.inc:PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
oe-core/meta/recipes-multimedia/libav/libav.inc:PACKAGECONFIG[bzip2] = "--enable-bzlib,--disable-bzlib,bzip2"
oe-core/meta/recipes-multimedia/libav/libav.inc:PACKAGECONFIG[schroedinger] = "--enable-libschroedinger,--disable-libschroedinger,schroedinger"
oe-core/meta/recipes-multimedia/libav/libav.inc:PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
oe-core/meta/recipes-multimedia/libav/libav.inc:PACKAGECONFIG[x264] = "--enable-libx264,--disable-libx264,x264"
oe-core/meta/recipes-multimedia/libav/libav.inc:PACKAGECONFIG[vpx] = "--enable-libvpx,--disable-libvpx,libvpx"
oe-core/meta/recipes-multimedia/libav/libav.inc:PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame"
oe-core/meta/recipes-multimedia/libav/libav.inc:PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac"

In grub
oe-core/meta/recipes-bsp/grub/grub_2.00.bb:PACKAGECONFIG[grub-mount] = "--enable-grub-mount,--disable-grub-mount,fuse"

In xf86-video-intel
oe-core/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.21.13.bb:PACKAGECONFIG[sna] = "--enable-sna,--disable-sna"
oe-core/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.21.13.bb:PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"

*analysis
The above packages are skipped recipes, and should be listed.
Comment 1 Paul Eggleton 2013-09-10 10:18:42 UTC
On the one hand, as far as an individual user using this command goes I don't think this is a big problem; the recipes are skipped because they aren't buildable for some reason, so the user would need to address that issue before they would be able to configure the recipe. We could report that the recipe has been skipped if that is a useful diagnostic for the user (bitbake-layers does this).

On the other hand if we were to use this tool as a basis for producing some kind of reference documentation for general use, then it would be useful to be able to gather the packageconfig information from all recipes even if they are skipped in the current configuration. It may be tricky to make this work though.
Comment 2 Hongxu Jia 2013-09-10 11:44:13 UTC
> On the other hand if we were to use this tool as a basis for producing some
> kind of reference documentation for general use, then it would be useful to
> be able to gather the packageconfig information from all recipes even if
> they are skipped in the current configuration. It may be tricky to make this
> work though.

Agree, this script is used to collect packageconfig from all recipes as many as possible. and not used to report the skipped issue.
Comment 3 Paul Eggleton 2017-06-08 06:53:54 UTC
Reading over this again, I just had a thought - SOURCE_MIRROR_FETCH (a rather poorly named variable) may be useful for the second case if used carefully. I don't think we'd want to always set it by default within list-packageconfig-flags.py, but it could be an option, or at least part of the documented procedure for generating packageconfig flag lists for all recipes.
Comment 4 Richard Purdie 2019-06-06 15:15:48 UTC
I think this is the defined behavior, it only lists available options. Closing as working as designed.