On Tue, 2024-01-23 at 21:58 +0000, Sebert, Holger.ext wrote:
> Hi Quentin,
> 
> ________________________________________
> Von: Quentin Schulz <quentin.sch...@theobroma-systems.com>
> 
> > What does
> > bitbake-getvar -r libxml2-native PACKAGECONFIG
> > and
> > bitbake-getvar -r libxml2 PACKAGECONFIG
> > 
> > return?
> 
> Here is the output of the respective commands:
> 
> $ bitbake-getvar -r libxml2-native PACKAGECONFIG
> #
> # $PACKAGECONFIG [6 operations]
> #   :append[pn-qemu-system-native] 
> /home/hosebert.ext/data/poky-python-getvar/build/conf/local.conf:251
> #     " sdl"
> #   :remove[class-target:pn-libxml2] 
> /home/hosebert.ext/data/poky-python-getvar/build/conf/local.conf:292
> #     "python"
> #   set 
> /home/hosebert.ext/data/poky-python-getvar/meta/conf/documentation.conf:320
> #     [doc] "This variable provides a means of enabling or disabling features 
> of a recipe on a per-recipe basis."
> #   set 
> /home/hosebert.ext/data/poky-python-getvar/meta/recipes-core/libxml/libxml2_2.11.5.bb:32
> #     [_defaultval] "python     ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', 
> d)} "
> #   set 
> /home/hosebert.ext/data/poky-python-getvar/meta/recipes-core/libxml/libxml2_2.11.5.bb:33
> #     [python] "--with-python=${PYTHON},--without-python,python3"
> #   set 
> /home/hosebert.ext/data/poky-python-getvar/meta/recipes-core/libxml/libxml2_2.11.5.bb:34
> #     [ipv6] "--enable-ipv6,--disable-ipv6,"
> # pre-expansion value:
> #   "python     ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} "
> PACKAGECONFIG="python     ipv6 "
> 
> $ bitbake-getvar -r libxml2 PACKAGECONFIG
> #
> # $PACKAGECONFIG [6 operations]
> #   :append[pn-qemu-system-native] 
> /home/hosebert.ext/data/poky-python-getvar/build/conf/local.conf:251
> #     " sdl"
> #   :remove[class-target:pn-libxml2] 
> /home/hosebert.ext/data/poky-python-getvar/build/conf/local.conf:292
> #     "python"
> #   set 
> /home/hosebert.ext/data/poky-python-getvar/meta/conf/documentation.conf:320
> #     [doc] "This variable provides a means of enabling or disabling features 
> of a recipe on a per-recipe basis."
> #   set 
> /home/hosebert.ext/data/poky-python-getvar/meta/recipes-core/libxml/libxml2_2.11.5.bb:32
> #     [_defaultval] "python     ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', 
> d)} "
> #   set 
> /home/hosebert.ext/data/poky-python-getvar/meta/recipes-core/libxml/libxml2_2.11.5.bb:33
> #     [python] "--with-python=${PYTHON},--without-python,python3"
> #   set 
> /home/hosebert.ext/data/poky-python-getvar/meta/recipes-core/libxml/libxml2_2.11.5.bb:34
> #     [ipv6] "--enable-ipv6,--disable-ipv6,"
> # pre-expansion value:
> #   "python     ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} "
> PACKAGECONFIG="     ipv6 "
> 
> So ... PACKAGECONFIG seems o.k. Notice, however, that the value of the PYTHON 
> variable is incorrect:
> 
> $ bitbake-getvar -r libxml2-native PYTHON
> #
> # $PYTHON
> #   set /home/hosebert.ext/data/poky-python-getvar/meta/conf/bitbake.conf:575
> #     "${@sys.executable}"
> PYTHON="/usr/bin/python3"
> 
> It points to the host's Python installation and not the one in Yocto!

I suspect this is related to:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=15361

and there is an explanation of what is happening there. I'm not
entirely happy about the behaviour of class- overrides and
inherit_defer but I'm not sure what to do about it.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62249): https://lists.yoctoproject.org/g/yocto/message/62249
Mute This Topic: https://lists.yoctoproject.org/mt/103871920/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to