From: "Böszörményi Zoltán" <zboszor@gmail.com>
To: Bartosz Golaszewski <brgl@kernel.org>
Cc: "Zoltan Boszormenyi via lists.openembedded.org"
<zboszor=gmail.com@lists.openembedded.org>,
Alexander Kanavin <alex.kanavin@gmail.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v2] python3: Add a new PACKAGECONFIG knob for free threading
Date: Mon, 23 Mar 2026 15:49:51 +0100 [thread overview]
Message-ID: <6de9387a-82b1-4b9b-8076-1392713aa2fd@gmail.com> (raw)
In-Reply-To: <189F7F6305FFFD56.3195838@lists.openembedded.org>
2026. 03. 23. 15:40 keltezéssel, Zoltan Boszormenyi via lists.openembedded.org írta:
> 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" <zboszor=gmail.com@lists.openembedded.org>
>> 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.
Plus, this seems to be a long term project to enable freethreaded python
because a lot of modules have status lines like this:
"Programming Language :: Python :: Free Threading :: 1 - Unstable",
For now, I wouldn't recommend it, only for experimenting.
>
>> 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/3617728
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [zboszor@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
prev parent reply other threads:[~2026-03-23 14:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-12 12:00 [PATCH v2] python3: Add a new PACKAGECONFIG knob for free threading Zoltán Böszörményi
2026-03-23 13:28 ` [OE-core] " Bartosz Golaszewski
2026-03-23 13:35 ` Alexander Kanavin
2026-03-23 13:48 ` Bartosz Golaszewski
2026-03-23 14:04 ` Alexander Kanavin
2026-03-23 14:05 ` Bartosz Golaszewski
2026-03-23 14:23 ` Böszörményi Zoltán
2026-03-23 14:34 ` Bartosz Golaszewski
2026-03-23 14:40 ` Böszörményi Zoltán
2026-03-23 14:45 ` Bartosz Golaszewski
2026-03-23 14:54 ` Böszörményi Zoltán
2026-03-23 14:47 ` Alexander Kanavin
2026-03-23 14:52 ` Böszörményi Zoltán
2026-03-23 15:03 ` Trevor Gamblin
2026-03-23 17:23 ` Böszörményi Zoltán
2026-03-24 8:46 ` Bartosz Golaszewski
2026-03-25 12:26 ` Böszörményi Zoltán
[not found] ` <189F7F6305FFFD56.3195838@lists.openembedded.org>
2026-03-23 14:49 ` Böszörményi Zoltán [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6de9387a-82b1-4b9b-8076-1392713aa2fd@gmail.com \
--to=zboszor@gmail.com \
--cc=alex.kanavin@gmail.com \
--cc=brgl@kernel.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=zboszor=gmail.com@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox