2026. 03. 23. 15:34 keltezéssel, Bartosz Golaszewski írta:
On Mon, 23 Mar 2026 15:23:52 +0100, "Zoltan Boszormenyi via
lists.openembedded.org" <[email protected]>
said:
Any hints on what could be wrong? The same config builds fine without the
new option. It's just a core-image-minimal on poky with a few python packages
from meta-openembedded.
The problem is that now the directories are
${libdir}/python3.14t and ${includedir}/python3.14t

Note the "t" suffix.

diff --git a/meta/recipes-devtools/python/python3_3.14.3.bb
b/meta/recipes-devtools/python/python3_3.14.3.bb
index 7a1ad1e386..492f2f93f0 100644
--- a/meta/recipes-devtools/python/python3_3.14.3.bb
+++ b/meta/recipes-devtools/python/python3_3.14.3.bb
@@ -47,7 +47,7 @@ UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar"

   CVE_PRODUCT = "python:python python_software_foundation:python cpython"

-PYTHON_MAJMIN = "3.14"
+PYTHON_MAJMIN = "3.14${@bb.utils.contains('PACKAGECONFIG', 'freethreading', 't', 
'', d)}"

   S = "${UNPACKDIR}/Python-${PV}"

I think it's more fine-grained, because I'm seeing this:

I also see other issues popping up, first in python3-installer-native.

Probably this setting ("python-freethreading") should be a
DISTRO_FEATURE and then the python3 recipe would use that
to enable its PACKAGECONFIG.

PYTHON_DIR in python-dir.bbclass should also be set accordingly.

I suspect that both native and target builds of python3 would have
to use the same setting, i.e. DISTRO_FEATURE and DISTRO_FEATURE_NATIVE
must contain python-freethreading. Some build helpers (skbuild, etc.)
does not seem to distinguish correctly between host python and target.

ERROR: Task 
(/home/brgl/workspace/yocto/python-freethreaded/sources/openembedded-core/meta/recipes-devtools/python/python3-iniconfig_2.3.0.bb:do_prepare_recipe_sysroot)
failed with exit code '1'
ERROR: python3-3.14.3-r0 do_package: QA Issue: python3:
Files/directories were installed but not shipped in any package:
   /usr/bin/python3.14
Please set FILES such that these items are packaged. Alternatively if
they are unneeded, avoid installing them or delete them within
do_install.
python3: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: python3-3.14.3-r0 do_package: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in:
/home/brgl/workspace/yocto/python-freethreaded/build/tmp/work/x86-64-v3-poky-linux/python3/3.14.3/temp/log.do_package.2308607
ERROR: Task 
(/home/brgl/workspace/yocto/python-freethreaded/sources/openembedded-core/meta/recipes-devtools/python/python3_3.14.3.bb:do_package)
failed with exit code '1'

The MAJMIN seems to be used for the executable as well and with this change,
it's missing from FILES.

Bart

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#233739): 
https://lists.openembedded.org/g/openembedded-core/message/233739
Mute This Topic: https://lists.openembedded.org/mt/118277380/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

  • [OE-core] [PATCH v2] python... Zoltan Boszormenyi via lists.openembedded.org
    • Re: [OE-core] [PATCH v... Bartosz Golaszewski via lists.openembedded.org
      • Re: [OE-core] [PAT... Alexander Kanavin via lists.openembedded.org
      • Re: [OE-core] [PAT... Zoltan Boszormenyi via lists.openembedded.org
        • Re: [OE-core] ... Bartosz Golaszewski via lists.openembedded.org
          • Re: [OE-co... Zoltan Boszormenyi via lists.openembedded.org
            • Re: [... Alexander Kanavin via lists.openembedded.org
              • R... Zoltan Boszormenyi via lists.openembedded.org
                • ... Trevor Gamblin
                • ... Zoltan Boszormenyi via lists.openembedded.org
                • ... Bartosz Golaszewski via lists.openembedded.org
                • ... Zoltan Boszormenyi via lists.openembedded.org
            • Re: [... Bartosz Golaszewski via lists.openembedded.org
              • R... Zoltan Boszormenyi via lists.openembedded.org
          • Re: [OE-co... Zoltan Boszormenyi via lists.openembedded.org

Reply via email to