Skip to contentSkip to conversation

How to find the source of a variable value?

DISCUSSION Paul D. DeRocco 3 participants 8 messages Sep 16, 2013

lore
Share & tools
lore
#0 lore raw

This image recipe has some Python that complains because "x11" is in DISTRO_FEATURES. How do I find out where that "x11" is coming from? This is a Gumstix build, so I suspect it's indirectly related to my selecting "overo" as the MACHINE, because otherwise building this image would never have worked with the plain Yocto meta-data. So how do I track this down?

Signature · 2 lines
Ciao,               Paul D. DeRocco
Paul                mailto:[email protected] 
#1 lore raw
Quoted 6 lines · Paul D. DeRocco

This image recipe has some Python that complains because "x11" is in DISTRO_FEATURES. How do I find out where that "x11" is coming from? This is a Gumstix build, so I suspect it's indirectly related to my selecting "overo" as the MACHINE, because otherwise building this image would never have worked with the plain Yocto meta-data. So how do I track this down?

Assuming you're using recent metadata, bitbake -e somerecipe will show you this.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 14 lines
Quoted 13 lines

On Mon, Sep 16, 2013 at 10:02 AM, Paul D. DeRocco
<[email protected]> wrote:

This image recipe has some Python that complains because "x11" is in
DISTRO_FEATURES. How do I find out where that "x11" is coming from? This
is a Gumstix build, so I suspect it's indirectly related to my selecting
"overo" as the MACHINE, because otherwise building this image would never
have worked with the plain Yocto meta-data. So how do I track this down?

Quoted 4 lines

From: Chris Larson

Assuming you're using recent metadata, bitbake -e somerecipe will show you this.

This isn't working for me. The image I'm trying to build is core-image-gtk-directfb. The recipe is in meta/recipes-graphics/images. If I just type "bitbake -k core-image-gtk-directfb", I get two errors:

ERROR: Nothing PROVIDES 'core-image-gtk-directfb'
ERROR: core-image-gtk-directfb was skipped: FEATURE "x11" is in DISTRO_FEATURES, Please remove "x11" from DISTRO_FEATURES, use "gtk-directfb" instead of it

I don't understand the "Nothing PROVIDES" error. Doesn't a recipe called x.bb PROVIDE x by default? The second error comes from the bit of Python in that recipe, which at least proves that it's reading that recipe.

If I type "bitbake -e core-image-gtk-directfb", I just get the first error. This happens almost instantly, before it's done any real work, so I'm not getting any further output.

Signature · 2 lines
Ciao,               Paul D. DeRocco
Paul                mailto:[email protected] 
#3 lore raw
Quoted 23 lines · Paul D. DeRocco
Quoted 14 lines
Quoted 13 lines

On Mon, Sep 16, 2013 at 10:02 AM, Paul D. DeRocco
<[email protected]> wrote:

This image recipe has some Python that complains because "x11" is in
DISTRO_FEATURES. How do I find out where that "x11" is coming from? This
is a Gumstix build, so I suspect it's indirectly related to my selecting
"overo" as the MACHINE, because otherwise building this image would never
have worked with the plain Yocto meta-data. So how do I track this down?

Quoted 4 lines

From: Chris Larson

Assuming you're using recent metadata, bitbake -e somerecipe will show you this.

This isn't working for me. The image I'm trying to build is core-image-gtk-directfb. The recipe is in meta/recipes-graphics/images. If I just type "bitbake -k core-image-gtk-directfb", I get two errors:

Quoted 9 lines

ERROR: Nothing PROVIDES 'core-image-gtk-directfb'
ERROR: core-image-gtk-directfb was skipped: FEATURE "x11" is in DISTRO_FEATURES, Please remove "x11" from DISTRO_FEATURES, use "gtk-directfb" instead of it

I don't understand the "Nothing PROVIDES" error. Doesn't a recipe called x.bb PROVIDE x by default? The second error comes from the bit of Python in that recipe, which at least proves that it's reading that recipe.

It does, but in this case it 'skips' itself, telling bitbake it's not available to be built given the current context, hence isn't provided by that recipe.

If I type "bitbake -e core-image-gtk-directfb", I just get the first

Quoted 2 lines

error. This happens almost instantly, before it's done any real work, so I'm not getting any further output.

It's raising that error to bitbake in the parsing process, unfortunately, which means it can't be used as a target even for informational purposes like -e.

To look at a global variable like DISTRO_FEATURES, use bitbake -e without any arguments.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#4 lore raw
In reply to Paul D. DeRocco
Quoted 4 lines · Paul D. DeRocco

This isn't working for me. The image I'm trying to build is core-image-gtk-directfb. The recipe is in meta/recipes-graphics/images. If I just type "bitbake -k core-image-gtk-directfb", I get two errors:

Quoted 8 lines

ERROR: Nothing PROVIDES 'core-image-gtk-directfb'
ERROR: core-image-gtk-directfb was skipped: FEATURE "x11" is in DISTRO_FEATURES, Please remove "x11" from DISTRO_FEATURES, use "gtk-directfb" instead of it

I don't understand the "Nothing PROVIDES" error. Doesn't a recipe called x.bb PROVIDE x by default? The second error comes from the bit of Python in that recipe, which at least proves that it's reading that recipe.

The default DISTRO_FEATURES includes x11, so that's where it's coming from. If you're using oe-core/poky from git master, you can do DISTRO_FEATURES_remove="x11" in your configuration, or else you'll need to set DISTRO_FEATURES to the current value, minus x11.

The order of messages is a bit backwards there - nothing provides core-image-gtk-directfb because the recipe caused itself to be skipped.

To be honest I'm not sure why that recipe forces itself to be skipped if x11 is present - it should work with x11 present - but if you're not using X then it makes sense to remove it from DISTRO_FEATURES so that you don't get unusable X dependences in your images.

Ross

#5 lore raw
Quoted 6 lines

From: Burton, Ross

The default DISTRO_FEATURES includes x11, so that's where it's coming from. If you're using oe-core/poky from git master, you can do DISTRO_FEATURES_remove="x11" in your configuration, or else you'll need to set DISTRO_FEATURES to the current value, minus x11.

Thanks, but that doesn't work. I still get the same error messages. In the bitbake -e output I can see my entry:

# DISTRO_FEATURES_remove=x11
DISTRO_FEATURES_remove="x11"

and I can see the same old DISTRO_FEATURES further down:

# DISTRO_FEATURES=alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g x11 ${DISTRO_FEATURES_LIBC} largefile opengl${@oe.utils.features_backfill("DISTRO_FEATURES",d)} DISTRO_FEATURES="alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g x11 ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin libc-idn libc-inet-anl libc-libm libc-libm-big libc-locales libc-locale-code libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc libc-posix-wchar-io largefile opengl pulseaudio"

Any other ideas?

Signature · 2 lines
Ciao,               Paul D. DeRocco
Paul                mailto:[email protected] 
#6 lore raw
Quoted 35 lines
Quoted 3 lines

From: Burton, Ross

The default DISTRO_FEATURES includes x11, so that's where

it's coming

Quoted 3 lines

from. If you're using oe-core/poky from git master, you can do DISTRO_FEATURES_remove="x11" in your configuration, or else you'll need to set DISTRO_FEATURES to the current value, minus x11.

Thanks, but that doesn't work. I still get the same error messages. In the
bitbake -e output I can see my entry:

# DISTRO_FEATURES_remove=x11
DISTRO_FEATURES_remove="x11"

and I can see the same old DISTRO_FEATURES further down:

# DISTRO_FEATURES=alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g x11 ${DISTRO_FEATURES_LIBC} largefile opengl${@oe.utils.features_backfill("DISTRO_FEATURES",d)} DISTRO_FEATURES="alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g x11 ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin libc-idn libc-inet-anl libc-libm libc-libm-big libc-locales libc-locale-code libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc libc-posix-wchar-io largefile opengl pulseaudio"

Quoted 1 line

Any other ideas?

Is this _remove something new? I'm using the Gumstix-provided metadata and tools, which are from the Dylan branch. If that's the issue, must I explicitly set DISTRO_FEATURES to the big long list in local.conf?

Signature · 2 lines
Ciao,               Paul D. DeRocco
Paul                mailto:[email protected] 
#7 lore raw
Quoted 3 lines · Paul D. DeRocco

Is this _remove something new? I'm using the Gumstix-provided metadata and tools, which are from the Dylan branch. If that's the issue, must I explicitly set DISTRO_FEATURES to the big long list in local.conf?

Yes, very new, as I said it's in git master only.

Ross