* [PATCH 01/13] python3: Add warning comment before PACKAGECONFIG[freethreading]
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 02/13] python3-dir.bbclass: Move PYTHON_ABI into PYTHON_DIR Zoltán Böszörményi
` (11 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
The warning comment is really needed. While Python 3.14 supports
free-threading officially, the ecosystem around it does not yet.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-devtools/python/python3_3.14.3.bb | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta/recipes-devtools/python/python3_3.14.3.bb b/meta/recipes-devtools/python/python3_3.14.3.bb
index 7a1ad1e386..c23605f59c 100644
--- a/meta/recipes-devtools/python/python3_3.14.3.bb
+++ b/meta/recipes-devtools/python/python3_3.14.3.bb
@@ -112,7 +112,14 @@ CACHED_CONFIGUREVARS:append:libc-musl = "\
# PGO currently causes builds to not be reproducible so disable by default, see YOCTO #13407
PACKAGECONFIG ??= "editline gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}"
+
+# Some LLVM/CLANG subprojects (e.g. lldb) and many Python modules
+# do not build when free-threading is enabled. Also, the support
+# for free-threading in many Python modules is not yet production level,
+# although they may build fine.
+# This is highly experimental. Do not enable it!
PACKAGECONFIG[freethreading] = "--disable-gil,--enable-gil"
+
PACKAGECONFIG[readline] = "--with-readline=readline,,readline,,,editline"
PACKAGECONFIG[editline] = "--with-readline=editline,,libedit,,,readline"
# Use profile guided optimisation by running PyBench inside qemu-user
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 02/13] python3-dir.bbclass: Move PYTHON_ABI into PYTHON_DIR
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 01/13] python3: Add warning comment before PACKAGECONFIG[freethreading] Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 03/13] python3: Use the variables from python3-dir.bbclass Zoltán Böszörményi
` (10 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
PYTHON_DIR is now suffixed with PYTHON_ABI.
Python build helper classes and the python build modules
use PYTHON_DIR internally, some of them do not care about
the ABI flag. So it's important that the destination
directory is set correctly.
This will also allow fixing recipes that may or may not have
been using PYTHON_ABI consistently, since it was set to an
empty string.
Also added a new variable called PYTHON_MAINVERSION which
is a combination of PYTHON_BASEVERSION and PYTHON_ABI.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/classes-recipe/python3-dir.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes-recipe/python3-dir.bbclass b/meta/classes-recipe/python3-dir.bbclass
index 3eb0dea9b2..f3ad0a2d91 100644
--- a/meta/classes-recipe/python3-dir.bbclass
+++ b/meta/classes-recipe/python3-dir.bbclass
@@ -6,6 +6,7 @@
PYTHON_BASEVERSION = "3.14"
PYTHON_ABI = ""
-PYTHON_DIR = "python${PYTHON_BASEVERSION}"
+PYTHON_MAINVERSION = "${PYTHON_BASEVERSION}${PYTHON_ABI}"
+PYTHON_DIR = "python${PYTHON_MAINVERSION}"
PYTHON_PN = "python3"
PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 03/13] python3: Use the variables from python3-dir.bbclass
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 01/13] python3: Add warning comment before PACKAGECONFIG[freethreading] Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 02/13] python3-dir.bbclass: Move PYTHON_ABI into PYTHON_DIR Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 04/13] python3native.bbclass: Stop using PYTHON_ABI Zoltán Böszörményi
` (9 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
Replace using PYTHON_MAJMIN and various custom constructed
settings with inherit python3-dir and its variables.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
.../recipes-devtools/python/python3_3.14.3.bb | 56 +++++++++----------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/meta/recipes-devtools/python/python3_3.14.3.bb b/meta/recipes-devtools/python/python3_3.14.3.bb
index c23605f59c..12d1223d4c 100644
--- a/meta/recipes-devtools/python/python3_3.14.3.bb
+++ b/meta/recipes-devtools/python/python3_3.14.3.bb
@@ -47,19 +47,17 @@ UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar"
CVE_PRODUCT = "python:python python_software_foundation:python cpython"
-PYTHON_MAJMIN = "3.14"
-
S = "${UNPACKDIR}/Python-${PV}"
BBCLASSEXTEND = "native nativesdk"
-inherit autotools pkgconfig qemu ptest multilib_header update-alternatives
+inherit autotools pkgconfig qemu python3-dir ptest multilib_header update-alternatives
MULTILIB_SUFFIX = "${@d.getVar('base_libdir',1).split('/')[-1]}"
ALTERNATIVE:${PN}-dev = "python3-config"
-ALTERNATIVE_LINK_NAME[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config"
-ALTERNATIVE_TARGET[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX}"
+ALTERNATIVE_LINK_NAME[python3-config] = "${bindir}/${PYTHON_DIR}-config"
+ALTERNATIVE_TARGET[python3-config] = "${bindir}/${PYTHON_DIR}-config-${MULTILIB_SUFFIX}"
DEPENDS = "\
autoconf-archive-native \
@@ -86,7 +84,7 @@ EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}"
EXTRA_OECONF:append:class-target = " --with-build-python=nativepython3 PLATFORM_TRIPLET=${HOST_ARCH}-${HOST_OS}"
EXTRA_OECONF:append:class-nativesdk = " --with-build-python=nativepython3"
-export CROSSPYTHONPATH = "${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/"
+export CROSSPYTHONPATH = "${STAGING_LIBDIR_NATIVE}/${PYTHON_DIR}/lib-dynload/"
EXTRANATIVEPATH += "python3-native"
@@ -185,7 +183,7 @@ do_install:prepend() {
}
do_install:append:class-target() {
- oe_multilib_header python${PYTHON_MAJMIN}/pyconfig.h
+ oe_multilib_header ${PYTHON_DIR}/pyconfig.h
}
do_install:append:class-native() {
@@ -210,20 +208,20 @@ do_install:append:class-native() {
# Nothing should be looking into ${B} for python3-native
sed -i -e 's:${B}:/build/path/unavailable/:g' \
- ${D}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}*/Makefile
+ ${D}/${libdir}/${PYTHON_DIR}/config-${PYTHON_MAINVERSION}*/Makefile
# disable the lookup in user's site-packages globally
- sed -i 's#ENABLE_USER_SITE = None#ENABLE_USER_SITE = False#' ${D}${libdir}/python${PYTHON_MAJMIN}/site.py
+ sed -i 's#ENABLE_USER_SITE = None#ENABLE_USER_SITE = False#' ${D}${libdir}/${PYTHON_DIR}/site.py
# python3-config needs to be in /usr/bin and not in a subdir of it to work properly
mv ${D}/${bindir}/${PN}/python*config ${D}/${bindir}/
}
do_install:append() {
- for c in ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do
+ for c in ${D}/${libdir}/${PYTHON_DIR}/_sysconfigdata*.py; do
python3 ${UNPACKDIR}/reformat_sysconfig.py $c
done
- rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/_sysconfigdata*.cpython*
+ rm -f ${D}${libdir}/${PYTHON_DIR}/__pycache__/_sysconfigdata*.cpython*
mkdir -p ${D}${libdir}/python-sysconfigdata
sysconfigfile=`find ${D} -name _sysconfig*.py`
@@ -231,8 +229,8 @@ do_install:append() {
-e "s,^ 'LIBDIR'.*, 'LIBDIR': '${STAGING_LIBDIR}'\,,g" \
-e "s,^ 'INCLUDEDIR'.*, 'INCLUDEDIR': '${STAGING_INCDIR}'\,,g" \
-e "s,^ 'CONFINCLUDEDIR'.*, 'CONFINCLUDEDIR': '${STAGING_INCDIR}'\,,g" \
- -e "s,^ 'INCLUDEPY'.*, 'INCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \
- -e "s,^ 'CONFINCLUDEPY'.*, 'CONFINCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \
+ -e "s,^ 'INCLUDEPY'.*, 'INCLUDEPY': '${STAGING_INCDIR}/${PYTHON_DIR}'\,,g" \
+ -e "s,^ 'CONFINCLUDEPY'.*, 'CONFINCLUDEPY': '${STAGING_INCDIR}/${PYTHON_DIR}'\,,g" \
-e "s,${B},/build/path/unavailable/,g" \
$sysconfigfile
cp $sysconfigfile ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py
@@ -248,7 +246,7 @@ do_install:append:class-nativesdk () {
for PYTHSCRIPT in `grep -rIl ${bindir}/python ${D}${bindir}`; do
sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
done
- create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN} TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1'
+ create_wrapper ${D}${bindir}/${PYTHON_DIR} TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1'
}
do_install_ptest:append:class-target:libc-musl () {
@@ -264,7 +262,7 @@ SYSROOT_PREPROCESS_FUNCS:append:class-nativesdk = " provide_target_config_script
provide_target_config_script() {
install -d ${SYSROOT_DESTDIR}${prefix}/python-target-config/
install ${D}/${bindir}/python3-config ${SYSROOT_DESTDIR}/${prefix}/python-target-config/
- install ${D}/${bindir}/python${PYTHON_MAJMIN}-config ${SYSROOT_DESTDIR}/${prefix}/python-target-config/
+ install ${D}/${bindir}/${PYTHON_DIR}-config ${SYSROOT_DESTDIR}/${prefix}/python-target-config/
}
SYSROOT_DIRS += "${prefix}/python-target-config/"
@@ -287,13 +285,13 @@ py_package_preprocess () {
-e 's:${RECIPE_SYSROOT_NATIVE}::g' \
-e 's:${RECIPE_SYSROOT}::g' \
-e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
- ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}*/Makefile \
- ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py \
- ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config
+ ${PKGD}/${libdir}/${PYTHON_DIR}/config-${PYTHON_MAINVERSION}*/Makefile \
+ ${PKGD}/${libdir}/${PYTHON_DIR}/_sysconfigdata*.py \
+ ${PKGD}/${bindir}/${PYTHON_DIR}-config
# Reformat _sysconfigdata after modifying it so that it remains
# reproducible
- for c in ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do
+ for c in ${PKGD}/${libdir}/${PYTHON_DIR}/_sysconfigdata*.py; do
python3 ${UNPACKDIR}/reformat_sysconfig.py $c
done
@@ -308,7 +306,7 @@ py_package_preprocess () {
-c "from py_compile import compile; compile('$sysconfigfile', optimize=2)"
cd -
- mv ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX}
+ mv ${PKGD}/${bindir}/${PYTHON_DIR}-config ${PKGD}/${bindir}/${PYTHON_DIR}-config-${MULTILIB_SUFFIX}
#Remove the unneeded copy of target sysconfig data
rm -rf ${PKGD}/${libdir}/python-sysconfigdata
@@ -320,7 +318,7 @@ py_package_preprocess () {
-e 's:${RECIPE_SYSROOT_NATIVE}::g' \
-e 's:${RECIPE_SYSROOT}::g' \
-e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
- ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfig_vars*.json
+ ${PKGD}/${libdir}/${PYTHON_DIR}/_sysconfig_vars*.json
}
# We want bytecode precompiled .py files (.pyc's) by default
@@ -421,7 +419,7 @@ do_create_manifest() {
cp ${UNPACKDIR}/get_module_deps3.py ${WORKDIR}
cd ${WORKDIR}
# This needs to be executed by python-native and NOT by HOST's python
- nativepython3 create_manifest3.py ${PYTHON_MAJMIN}
+ nativepython3 create_manifest3.py ${PYTHON_MAINVERSION}
cp python3-manifest.json.new ${THISDIR}/python3/python3-manifest.json
}
@@ -436,11 +434,12 @@ RRECOMMENDS:${PN}-crypt:append:class-nativesdk = " ${MLPREFIX}openssl ${MLPREFIX
# For historical reasons PN is empty and provided by python3-modules
FILES:${PN} = ""
+FILES:${PN}-core += "${bindir}/python${PYTHON_MAINVERSION} ${bindir}/python${PYTHON_BASEVERSION}"
RPROVIDES:${PN}-modules = "${PN}"
-FILES:${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3"
-FILES:${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}"
-FILES:${PN}-tkinter += "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_tkinter.*.so"
+FILES:${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAINVERSION} ${bindir}/pydoc3"
+FILES:${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAINVERSION}"
+FILES:${PN}-tkinter += "${libdir}/${PYTHON_DIR}/lib-dynload/_tkinter.*.so"
# provide python-pyvenv from python3-venv
RPROVIDES:${PN}-venv += "${MLPREFIX}python3-pyvenv"
@@ -448,13 +447,14 @@ RPROVIDES:${PN}-venv += "${MLPREFIX}python3-pyvenv"
# package libpython3
PACKAGES =+ "libpython3 libpython3-staticdev"
FILES:libpython3 = "${libdir}/libpython*.so.*"
-FILES:libpython3-staticdev += "${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}-*/libpython${PYTHON_MAJMIN}.a"
+FILES:libpython3-staticdev += "${libdir}/${PYTHON_DIR}/config-${PYTHON_MAINVERSION}-*/lib${PYTHON_DIR}.a"
INSANE_SKIP:${PN}-dev += "dev-elf"
INSANE_SKIP:${PN}-ptest = "dev-deps"
# catch all the rest (unsorted)
PACKAGES += "${PN}-misc"
RDEPENDS:${PN}-misc += "\
+ bash \
${PN}-audio \
${PN}-codecs \
${PN}-core \
@@ -466,7 +466,7 @@ RDEPENDS:${PN}-misc += "\
RDEPENDS:${PN}-modules:append:class-target = " ${MLPREFIX}python3-misc"
RDEPENDS:${PN}-modules:append:class-nativesdk = " ${MLPREFIX}python3-misc"
RDEPENDS:${PN}-modules:append:class-target = " ${@bb.utils.contains('PACKAGECONFIG', 'gdbm', '${MLPREFIX}python3-gdbm', '', d)}"
-FILES:${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MAJMIN}/lib-dynload"
+FILES:${PN}-misc = "${libdir}/${PYTHON_DIR} ${libdir}/${PYTHON_DIR}/lib-dynload"
# catch manpage
PACKAGES += "${PN}-man"
@@ -506,5 +506,5 @@ RDEPENDS:${PN}-tests:append:class-nativesdk = " ${MLPREFIX}bash"
# Python's tests contain large numbers of files we don't need in the recipe sysroots
SYSROOT_PREPROCESS_FUNCS += " py3_sysroot_cleanup"
py3_sysroot_cleanup () {
- rm -rf ${SYSROOT_DESTDIR}${libdir}/python${PYTHON_MAJMIN}/test
+ rm -rf ${SYSROOT_DESTDIR}${libdir}/${PYTHON_DIR}/test
}
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 04/13] python3native.bbclass: Stop using PYTHON_ABI
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (2 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 03/13] python3: Use the variables from python3-dir.bbclass Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 05/13] python_pyo3.bbclass: Pass ABI flag and use PYTHON_MAINVERSION Zoltán Böszörményi
` (8 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
PYTHON_DIR now contains PYTHON_ABI.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/classes-recipe/python3native.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/classes-recipe/python3native.bbclass b/meta/classes-recipe/python3native.bbclass
index da1283d6b3..755a6c156c 100644
--- a/meta/classes-recipe/python3native.bbclass
+++ b/meta/classes-recipe/python3native.bbclass
@@ -20,8 +20,8 @@ export STAGING_LIBDIR
# find_package(PythonLibs REQUIRED)
# which ends up using libs/includes from build host
# Therefore pre-empt that effort
-export PYTHON_LIBRARY = "${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so"
-export PYTHON_INCLUDE_DIR = "${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
+export PYTHON_LIBRARY = "${STAGING_LIBDIR}/lib${PYTHON_DIR}.so"
+export PYTHON_INCLUDE_DIR = "${STAGING_INCDIR}/${PYTHON_DIR}"
# suppress host user's site-packages dirs.
export PYTHONNOUSERSITE = "1"
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 05/13] python_pyo3.bbclass: Pass ABI flag and use PYTHON_MAINVERSION
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (3 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 04/13] python3native.bbclass: Stop using PYTHON_ABI Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 06/13] clang: Use PYTHON_MAINVERSION for python module versioning Zoltán Böszörményi
` (7 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
Setting the ABI flag correctly is necessary for modules using
python_maturin.bbclass and others based on pyo3.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/classes-recipe/python_pyo3.bbclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/classes-recipe/python_pyo3.bbclass b/meta/classes-recipe/python_pyo3.bbclass
index 7f5a00f584..c618d711ac 100644
--- a/meta/classes-recipe/python_pyo3.bbclass
+++ b/meta/classes-recipe/python_pyo3.bbclass
@@ -12,7 +12,8 @@
inherit cargo python3-dir siteinfo
export PYO3_CROSS = "1"
-export PYO3_CROSS_PYTHON_VERSION = "${PYTHON_BASEVERSION}"
+export PYO3_CROSS_PYTHON_VERSION = "${PYTHON_MAINVERSION}"
+export ABIFLAGS = "${PYTHON_ABI}"
export PYO3_CROSS_LIB_DIR = "${STAGING_LIBDIR}"
export CARGO_BUILD_TARGET = "${RUST_HOST_SYS}"
export RUSTFLAGS
@@ -25,6 +26,7 @@ implementation=CPython
version=${PYTHON_BASEVERSION}
shared=true
abi3=false
+abiflags=${PYTHON_ABI}
lib_name=${PYTHON_DIR}
lib_dir=${STAGING_LIBDIR}
pointer_width=${SITEINFO_BITS}
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 06/13] clang: Use PYTHON_MAINVERSION for python module versioning
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (4 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 05/13] python_pyo3.bbclass: Pass ABI flag and use PYTHON_MAINVERSION Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 07/13] gdb, gdb-cross-canadian: Stop using PYTHON_ABI Zoltán Böszörményi
` (6 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
Use the new complete main version setting instead of just
PYTHON_BASEVERSION that does not include PYTHON_ABI.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-devtools/clang/clang_git.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/clang/clang_git.bb b/meta/recipes-devtools/clang/clang_git.bb
index e10c327a2a..d5f8aa777f 100644
--- a/meta/recipes-devtools/clang/clang_git.bb
+++ b/meta/recipes-devtools/clang/clang_git.bb
@@ -46,7 +46,7 @@ PACKAGECONFIG[lld] = "-DCLANG_DEFAULT_LINKER=lld,,,"
PACKAGECONFIG[lto] = "-DLLVM_ENABLE_LTO=Full -DLLVM_BINUTILS_INCDIR=${STAGING_INCDIR},,binutils,"
PACKAGECONFIG[thin-lto] = "-DLLVM_ENABLE_LTO=Thin -DLLVM_BINUTILS_INCDIR=${STAGING_INCDIR},,binutils,"
PACKAGECONFIG[unwindlib] = "-DCLANG_DEFAULT_UNWINDLIB=libunwind,-DCLANG_DEFAULT_UNWINDLIB=libgcc,,"
-PACKAGECONFIG[libclang-python] = "-DCLANG_PYTHON_BINDINGS_VERSIONS=${PYTHON_BASEVERSION},,"
+PACKAGECONFIG[libclang-python] = "-DCLANG_PYTHON_BINDINGS_VERSIONS=${PYTHON_MAINVERSION},,"
OECMAKE_SOURCEPATH = "${S}/clang"
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 07/13] gdb, gdb-cross-canadian: Stop using PYTHON_ABI
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (5 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 06/13] clang: Use PYTHON_MAINVERSION for python module versioning Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 08/13] boost: " Zoltán Böszörményi
` (5 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
PYTHON_DIR now contains PYTHON_ABI, don't use the latter.
Simplify the linked library name to use -l${PYTHON_DIR}.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 4 ++--
meta/recipes-devtools/gdb/gdb_17.1.bb | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
index 7b4a7719e4..c4c62d02af 100644
--- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
+++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
@@ -22,8 +22,8 @@ do_configure:prepend() {
cat > ${WORKDIR}/python << EOF
#! /bin/sh
case "\$2" in
- --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}/" ;;
- --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" ;;
+ --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}/" ;;
+ --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -l${PYTHON_DIR}" ;;
--exec-prefix) echo "${exec_prefix}" ;;
*) exit 1 ;;
esac
diff --git a/meta/recipes-devtools/gdb/gdb_17.1.bb b/meta/recipes-devtools/gdb/gdb_17.1.bb
index 9c6db4ca2c..a5d96f01eb 100644
--- a/meta/recipes-devtools/gdb/gdb_17.1.bb
+++ b/meta/recipes-devtools/gdb/gdb_17.1.bb
@@ -26,8 +26,8 @@ do_configure:prepend() {
cat > ${WORKDIR}/python << EOF
#!/bin/sh
case "\$2" in
- --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}/" ;;
- --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" ;;
+ --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}/" ;;
+ --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -l${PYTHON_DIR}" ;;
--exec-prefix) echo "${exec_prefix}" ;;
*) exit 1 ;;
esac
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 08/13] boost: Stop using PYTHON_ABI
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (6 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 07/13] gdb, gdb-cross-canadian: Stop using PYTHON_ABI Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 09/13] lttng-tools: " Zoltán Böszörményi
` (4 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
PYTHON_DIR now contains PYTHON_ABI, fix the settings accordingly.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-support/boost/boost.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
index 64a57ddfb2..7b02ed4282 100644
--- a/meta/recipes-support/boost/boost.inc
+++ b/meta/recipes-support/boost/boost.inc
@@ -174,7 +174,7 @@ do_configure() {
# If we want Python then we need to tell Boost *exactly* where to find it
if ${@bb.utils.contains('BOOST_LIBS', 'python', 'true', 'false', d)}; then
- echo "using python : ${PYTHON_BASEVERSION} : ${STAGING_DIR_HOST}${bindir}/python3 : ${STAGING_DIR_HOST}${includedir}/${PYTHON_DIR}${PYTHON_ABI} : ${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR} ;" >> ${WORKDIR}/user-config.jam
+ echo "using python : ${PYTHON_MAINVERSION} : ${STAGING_DIR_HOST}${bindir}/python3 : ${STAGING_DIR_HOST}${includedir}/${PYTHON_DIR} : ${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR} ;" >> ${WORKDIR}/user-config.jam
fi
if ${@bb.utils.contains('BOOST_LIBS', 'mpi', 'true', 'false', d)}; then
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 09/13] lttng-tools: Stop using PYTHON_ABI
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (7 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 08/13] boost: " Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 10/13] lttng-ust: " Zoltán Böszörményi
` (3 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
PYTHON_DIR now contains PYTHON_ABI, use it.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb b/meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb
index 3a3f2cff2c..ef80c53e9c 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb
@@ -35,7 +35,7 @@ INSANE_SKIP:${PN}-ptest += "dev-deps"
PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \
am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \
- PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \
+ PYTHON_INCLUDE='-I${STAGING_INCDIR}/${PYTHON_DIR}' \
"
PACKAGECONFIG ??= "${LTTNGUST} kmod"
PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python3 swig-native"
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 10/13] lttng-ust: Stop using PYTHON_ABI
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (8 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 09/13] lttng-tools: " Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 11/13] libcap-ng-python: Use PYTHON_DIR for FILES Zoltán Böszörményi
` (2 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
PYTHON_DIR now contains PYTHON_ABI, use it.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb b/meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb
index 1a15c5b420..5c1c74b7a8 100644
--- a/meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb
+++ b/meta/recipes-kernel/lttng/lttng-ust_2.14.0.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b04e8f34dbcf08198c6618d05e8fe7b"
PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \
am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \
- PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \
+ PYTHON_INCLUDE='-I${STAGING_INCDIR}/${PYTHON_DIR}' \
"
inherit autotools lib_package manpages python3native pkgconfig
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 11/13] libcap-ng-python: Use PYTHON_DIR for FILES
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (9 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 10/13] lttng-ust: " Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 12/13] hwlatdetect: Use PYTHON_DIR Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 13/13] libxcb: inherit python3native Zoltán Böszörményi
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
PYTHON_DIR now contains PYTHON_ABI, use it.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb b/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
index f702056f02..f13c2eba17 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
+++ b/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
@@ -14,4 +14,4 @@ do_install() {
oe_runmake 'DESTDIR=${D}' install -C ${B}/bindings/python3
}
-FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
+FILES:${PN} = "${libdir}/${PYTHON_DIR}"
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 12/13] hwlatdetect: Use PYTHON_DIR
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (10 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 11/13] libcap-ng-python: Use PYTHON_DIR for FILES Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 12:42 ` [PATCH 13/13] libxcb: inherit python3native Zoltán Böszörményi
12 siblings, 0 replies; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
Instead of custom constructing the python directory,
use PYTHON_DIR for consistency.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-rt/rt-tests/hwlatdetect_git.bb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-rt/rt-tests/hwlatdetect_git.bb b/meta/recipes-rt/rt-tests/hwlatdetect_git.bb
index 2dcc80965a..d37909cd87 100644
--- a/meta/recipes-rt/rt-tests/hwlatdetect_git.bb
+++ b/meta/recipes-rt/rt-tests/hwlatdetect_git.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
require rt-tests.inc
inherit python3-dir
-EXTRA_OEMAKE += "PYLIB=${libdir}/python${PYTHON_BASEVERSION}/dist-packages"
+EXTRA_OEMAKE += "PYLIB=${libdir}/${PYTHON_DIR}/dist-packages"
do_compile() {
oe_runmake hwlatdetect
@@ -18,9 +18,9 @@ do_install() {
oe_runmake install_hwlatdetect DESTDIR=${D} SBINDIR=${sbindir} \
MANDIR=${mandir} INCLUDEDIR=${includedir}
- sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py
+ sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/${PYTHON_DIR}/dist-packages/hwlatdetect.py
}
-FILES:${PN} += "${libdir}/python${PYTHON_BASEVERSION}/dist-packages/hwlatdetect.py"
+FILES:${PN} += "${libdir}/${PYTHON_DIR}/dist-packages/hwlatdetect.py"
RDEPENDS:${PN} = "python3-core "
RRECOMMENDS:${PN} = "kernel-module-hwlat-detector"
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 13/13] libxcb: inherit python3native
2026-03-26 12:42 Use PYTHON_DIR consistently Zoltán Böszörményi
` (11 preceding siblings ...)
2026-03-26 12:42 ` [PATCH 12/13] hwlatdetect: Use PYTHON_DIR Zoltán Böszörményi
@ 2026-03-26 12:42 ` Zoltán Böszörményi
2026-03-26 13:06 ` [OE-core] " Alexander Kanavin
12 siblings, 1 reply; 17+ messages in thread
From: Zoltán Böszörményi @ 2026-03-26 12:42 UTC (permalink / raw)
To: openembedded-core
Cc: Bartosz Golaszewski, Trevor Gamblin, Alexander Kanavin,
Bruce Ashfield, Zoltán Böszörményi
Instead of open coding, use python3native and xcb-proto-native
as an extra build dependency.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-graphics/xorg-lib/libxcb_1.17.0.bb | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-graphics/xorg-lib/libxcb_1.17.0.bb b/meta/recipes-graphics/xorg-lib/libxcb_1.17.0.bb
index fcd8aad303..ac2fcd4cc8 100644
--- a/meta/recipes-graphics/xorg-lib/libxcb_1.17.0.bb
+++ b/meta/recipes-graphics/xorg-lib/libxcb_1.17.0.bb
@@ -16,19 +16,17 @@ SRC_URI[sha256sum] = "599ebf9996710fea71622e6e184f3a8ad5b43d0e5fa8c4e407123c88a5
BBCLASSEXTEND = "native nativesdk"
-DEPENDS = "xcb-proto xorgproto libxau libpthread-stubs libxdmcp"
+DEPENDS = "xcb-proto-native xcb-proto xorgproto libxau libpthread-stubs libxdmcp"
PACKAGES_DYNAMIC = "^${PN}-.*"
FILES:${PN} = "${libdir}/libxcb.so.*"
-inherit autotools pkgconfig features_check
+inherit autotools pkgconfig python3native features_check
# The libxau and others requires x11 in DISTRO_FEATURES
REQUIRED_DISTRO_FEATURES = "x11"
-export PYTHON = "python3"
-
do_install:append () {
chown root.root ${D}${datadir}/doc/${BPN}/tutorial -R
}
--
2.53.0
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [OE-core] [PATCH 13/13] libxcb: inherit python3native
2026-03-26 12:42 ` [PATCH 13/13] libxcb: inherit python3native Zoltán Böszörményi
@ 2026-03-26 13:06 ` Alexander Kanavin
2026-03-26 13:26 ` Böszörményi Zoltán
[not found] ` <18A0671344EE5B33.57592@lists.openembedded.org>
0 siblings, 2 replies; 17+ messages in thread
From: Alexander Kanavin @ 2026-03-26 13:06 UTC (permalink / raw)
To: zboszor
Cc: openembedded-core, Bartosz Golaszewski, Trevor Gamblin,
Bruce Ashfield
On Thu, 26 Mar 2026 at 13:51, Zoltan Boszormenyi via
lists.openembedded.org <zboszor=gmail.com@lists.openembedded.org>
wrote:
> Instead of open coding, use python3native and xcb-proto-native
> as an extra build dependency.
> -DEPENDS = "xcb-proto xorgproto libxau libpthread-stubs libxdmcp"
> +DEPENDS = "xcb-proto-native xcb-proto xorgproto libxau libpthread-stubs libxdmcp"
This change isn't explained.
> -inherit autotools pkgconfig features_check
> +inherit autotools pkgconfig python3native features_check
> -export PYTHON = "python3"
I'm not sure this is an improvement? We try to avoid using native
python whenever possible, and use python from the host if it doesn't
cause issues.
The rest of the patchset looks okay on first glance, but it does
include a breaking change, and you need to at least try to fix meta-oe
(or ensure nothing breaks in there which is unlikely).
Alex
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [OE-core] [PATCH 13/13] libxcb: inherit python3native
2026-03-26 13:06 ` [OE-core] " Alexander Kanavin
@ 2026-03-26 13:26 ` Böszörményi Zoltán
[not found] ` <18A0671344EE5B33.57592@lists.openembedded.org>
1 sibling, 0 replies; 17+ messages in thread
From: Böszörményi Zoltán @ 2026-03-26 13:26 UTC (permalink / raw)
To: Alexander Kanavin
Cc: openembedded-core, Bartosz Golaszewski, Trevor Gamblin,
Bruce Ashfield
2026. 03. 26. 14:06 keltezéssel, Alexander Kanavin írta:
> On Thu, 26 Mar 2026 at 13:51, Zoltan Boszormenyi via
> lists.openembedded.org <zboszor=gmail.com@lists.openembedded.org>
> wrote:
>> Instead of open coding, use python3native and xcb-proto-native
>> as an extra build dependency.
>> -DEPENDS = "xcb-proto xorgproto libxau libpthread-stubs libxdmcp"
>> +DEPENDS = "xcb-proto-native xcb-proto xorgproto libxau libpthread-stubs libxdmcp"
> This change isn't explained.
I will move this commit to the free-threading enablement RFC series and
add the explanation to the commit message.
The problem is that the build failed with ModuleNotFoundError
for xcbgen when free-threading was enabled.
No idea how this is satisfied without the xcb-proto installed on the host.
>> -inherit autotools pkgconfig features_check
>> +inherit autotools pkgconfig python3native features_check
>> -export PYTHON = "python3"
> I'm not sure this is an improvement? We try to avoid using native
> python whenever possible, and use python from the host if it doesn't
> cause issues.
>
> The rest of the patchset looks okay on first glance, but it does
> include a breaking change, and you need to at least try to fix meta-oe
> (or ensure nothing breaks in there which is unlikely).
>
> Alex
^ permalink raw reply [flat|nested] 17+ messages in thread[parent not found: <18A0671344EE5B33.57592@lists.openembedded.org>]
* Re: [OE-core] [PATCH 13/13] libxcb: inherit python3native
[not found] ` <18A0671344EE5B33.57592@lists.openembedded.org>
@ 2026-03-26 13:47 ` Böszörményi Zoltán
0 siblings, 0 replies; 17+ messages in thread
From: Böszörményi Zoltán @ 2026-03-26 13:47 UTC (permalink / raw)
To: Alexander Kanavin
Cc: openembedded-core, Bartosz Golaszewski, Trevor Gamblin,
Bruce Ashfield
2026. 03. 26. 14:26 keltezéssel, Zoltan Boszormenyi via lists.openembedded.org írta:
> 2026. 03. 26. 14:06 keltezéssel, Alexander Kanavin írta:
>> On Thu, 26 Mar 2026 at 13:51, Zoltan Boszormenyi via
>> lists.openembedded.org <zboszor=gmail.com@lists.openembedded.org>
>> wrote:
>>> Instead of open coding, use python3native and xcb-proto-native
>>> as an extra build dependency.
>>> -DEPENDS = "xcb-proto xorgproto libxau libpthread-stubs libxdmcp"
>>> +DEPENDS = "xcb-proto-native xcb-proto xorgproto libxau libpthread-stubs libxdmcp"
>> This change isn't explained.
>
> I will move this commit to the free-threading enablement RFC series and
> add the explanation to the commit message.
>
> The problem is that the build failed with ModuleNotFoundError
> for xcbgen when free-threading was enabled.
> No idea how this is satisfied without the xcb-proto installed on the host.
Now I know. This change won't be necessary, but another tweak for xcb-proto will be.
The xcb-proto.pc must be generated correctly with the ABI flag.
>>> -inherit autotools pkgconfig features_check
>>> +inherit autotools pkgconfig python3native features_check
>>> -export PYTHON = "python3"
>> I'm not sure this is an improvement? We try to avoid using native
>> python whenever possible, and use python from the host if it doesn't
>> cause issues.
>>
>> The rest of the patchset looks okay on first glance, but it does
>> include a breaking change, and you need to at least try to fix meta-oe
>> (or ensure nothing breaks in there which is unlikely).
>>
>> Alex
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#234001): https://lists.openembedded.org/g/openembedded-core/message/234001
> Mute This Topic: https://lists.openembedded.org/mt/118517418/3617728
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [zboszor@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 17+ messages in thread