python3: upgrade to 3.14.0
cover python3: upgrade to 3.14.0
Here goes the first attempt at upgrading the python3 recipe to 3.14.0. This will likely break some stuff, so it'd be good to start testing it early before Wrynose begins the build phase. You can see the specific commits for more details, but I will note that in addition to the buildall-qemu, reproducibility, and ptest checks I've reported in the python3 upgrade patch itself, I've also done the following on my build machine (F43):
- bitbake core-image-ptest-all (which is how I found the problems fixed by the bcrypt, jsonpointer, and pytest changes);
- bitbake -k world (which IIRC is where I found the rpm issue).
Trevor Gamblin (6):
python3: upgrade 3.13.9 -> 3.14.0
python_pep517: add --prefix to nativepython3 call
python3-bcrypt: upgrade 4.3.0 -> 5.0.0
rpm: handle CMake Python paths in do_configure
python3-pytest: add python3-misc to RDEPENDS
python3-jsonpointer: add python3-misc to RDEPENDS
meta/classes-recipe/python3-dir.bbclass | 2 +-
meta/classes-recipe/python_pep517.bbclass | 2 +-
.../python/python3-bcrypt-crates.inc | 90 +-
...crypt_4.3.0.bb => python3-bcrypt_5.0.0.bb} | 2 +-
.../python/python3-jsonpointer_3.0.0.bb | 1 +
.../python/python3-pytest_8.4.2.bb | 1 +
...r-OpenSSL-3.4-and-add-it-to-multissl.patch | 1452 -----------------
...-use-prefix-value-from-build-configu.patch | 35 +-
...sts-due-to-load-variability-on-YP-AB.patch | 37 +-
...ctive_children-skip-problematic-test.patch | 17 +-
...1-test_cmd-skip-bang-completion-test.patch | 31 +
...-test_unix_console.test_cursor_back_.patch | 46 +
...kip-test_sysconfig.test_sysconfigdat.patch | 32 +
.../python/python3/python3-manifest.json | 3 +-
.../{python3_3.13.9.bb => python3_3.14.0.bb} | 20 +-
meta/recipes-devtools/rpm/rpm_4.20.1.bb | 5 +
16 files changed, 248 insertions(+), 1528 deletions(-)
rename meta/recipes-devtools/python/{python3-bcrypt_4.3.0.bb => python3-bcrypt_5.0.0.bb} (86%)
delete mode 100644 meta/recipes-devtools/python/python3/0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch
create mode 100644 meta/recipes-devtools/python/python3/0001-test_cmd-skip-bang-completion-test.patch
create mode 100644 meta/recipes-devtools/python/python3/0001-test_pyrepl-skip-test_unix_console.test_cursor_back_.patch
create mode 100644 meta/recipes-devtools/python/python3/0001-test_sysconfig-skip-test_sysconfig.test_sysconfigdat.patch
rename meta/recipes-devtools/python/{python3_3.13.9.bb => python3_3.14.0.bb} (95%)Signature · 1 line
2.52.0
PATCH 1/6 python3: upgrade 3.13.9 -> 3.14.0
Changelog: https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-final
- Recipe changes:
- Remove '0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch' as this fix was submitted upstream and is included in 3.14.0.
- Modify three existing patches to apply on 3.14.0:
- 0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch
- 0001-Skip-failing-tests-due-to-load-variability-on-YP-AB.patch
- 0001-test_active_children-skip-problematic-test.patch
- Add three new ptest skip patches:
- 0001-test_cmd-skip-bang-completion-test.patch - editline issues with tab completion off of bangs (!).
- 0001-test_pyrepl-skip-test_unix_console.test_cursor_back_.patch - change in curses dependency in PyREPL leads to issues with a test that expects the ICH1 terminal capability.
- 0001-test_sysconfig-skip-test_sysconfig.test_sysconfigdat.patch - OE builds customize prefixes and compiler flags in a way that the test doesn't expect.
- Add zstd to the DEPENDS since Python3 now provides support for the Zstandard compression standard.
- In py_package_preprocess(), handle reproducibility issues with the _sysconfig_vars*.json files that the build generates by stripping paths from them.
Modify python3-manifest.json to reflect the removal/replacement of stringold with a new string module directory.
Also update python3-dir Python version to 3.14.
Reproducibility looks OK:
|2025-12-03 17:23:39,179 - oe-selftest - INFO - Reproducibility summary for deb: same=2261 different=0 different_excluded=0 missing=0 total=2261 |unused_exclusions=[] |2025-12-03 17:23:39,179 - oe-selftest - INFO - Checking ipk packages for differences... |2025-12-03 17:23:41,631 - oe-selftest - INFO - Reproducibility summary for ipk: same=2261 different=0 different_excluded=0 missing=0 total=2261 |unused_exclusions=[] |2025-12-03 17:23:41,631 - oe-selftest - INFO - Checking rpm packages for differences... |2025-12-03 17:23:43,952 - oe-selftest - INFO - Reproducibility summary for rpm: same=2261 different=0 different_excluded=0 missing=0 total=2261 |unused_exclusions=[] |2025-12-03 17:23:43,952 - oe-selftest - INFO - ... ok |2025-12-03 17:24:32,829 - oe-selftest - INFO - ---------------------------------------------------------------------- |2025-12-03 17:24:32,830 - oe-selftest - INFO - Ran 1 test in 1616.811s |2025-12-03 17:24:32,830 - oe-selftest - INFO - OK |2025-12-03 17:24:36,170 - oe-selftest - INFO - RESULTS: |2025-12-03 17:24:36,170 - oe-selftest - INFO - RESULTS - reproducible.ReproducibleTests.test_reproducible_builds: PASSED (1567.51s) |2025-12-03 17:24:38,017 - oe-selftest - INFO - SUMMARY: |2025-12-03 17:24:38,017 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 1616.811s |2025-12-03 17:24:38,018 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)
ptests look OK (with new skips):
|== Tests result: SUCCESS == | |28 tests skipped: | test.test_asyncio.test_windows_events | test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace | test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full | test.test_gdb.test_misc test.test_gdb.test_pretty_print | test_android test_apple test_asdl_parser test_clinic test_devpoll | test_free_threading test_generated_cases test_idle test_kqueue | test_launcher test_msvcrt test_startfile test_tcl test_tkinter | test_ttk test_ttk_textonly test_turtle test_winapi | test_winconsoleio test_winreg test_wmi | |8 tests skipped (resource denied): | test_curses test_peg_generator test_smtpnet test_socketserver | test_urllib2net test_urllibnet test_winsound test_zipfile64 | |455 tests OK. | |Total duration: 3 min 5 sec |Total tests: run=46,110 skipped=2,364 |Total test files: run=483/491 skipped=28 resource_denied=8 |Result: SUCCESS |DURATION: 186 |END: /usr/lib/python3/ptest |2025-12-04T00:20 |STOP: ptest-runner |TOTAL: 1 FAIL: 0
buildall-qemu result:
BUILDALL-QEMU LOG FOR python3
START TIME: 2025-12-03_10:08:36
HOSTNAME: megalith
HOST OS: Fedora Linux 43 (Server Edition)
HOST KERNEL: 6.17.8-300.fc43.x86_64
===============
BUILD RESULTS:
[glibc]
PASS: qemuarm
PASS: qemuarm64
PASS: qemuarmv5
PASS: qemuloongarch64
PASS: qemumips
PASS: qemumips64
PASS: qemuppc
PASS: qemuppc64
PASS: qemuriscv32
PASS: qemuriscv64
PASS: qemux86-64
PASS: qemux86
[musl]
PASS: qemuarm
PASS: qemuarm64
PASS: qemuarmv5
FAIL: qemuloongarch64
PASS: qemumips
PASS: qemumips64
PASS: qemuppc
PASS: qemuppc64
PASS: qemuriscv32
PASS: qemuriscv64
PASS: qemux86-64
PASS: qemux86
===============
PASSED: 23
FAILED: 1
License-Update: Update copyright example in body
---
meta/classes-recipe/python3-dir.bbclass | 2 +-
...r-OpenSSL-3.4-and-add-it-to-multissl.patch | 1452 -----------------
...-use-prefix-value-from-build-configu.patch | 35 +-
...sts-due-to-load-variability-on-YP-AB.patch | 37 +-
...ctive_children-skip-problematic-test.patch | 17 +-
...1-test_cmd-skip-bang-completion-test.patch | 31 +
...-test_unix_console.test_cursor_back_.patch | 46 +
...kip-test_sysconfig.test_sysconfigdat.patch | 32 +
.../python/python3/python3-manifest.json | 3 +-
.../{python3_3.13.9.bb => python3_3.14.0.bb} | 20 +-
10 files changed, 191 insertions(+), 1484 deletions(-)
delete mode 100644 meta/recipes-devtools/python/python3/0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch
create mode 100644 meta/recipes-devtools/python/python3/0001-test_cmd-skip-bang-completion-test.patch
create mode 100644 meta/recipes-devtools/python/python3/0001-test_pyrepl-skip-test_unix_console.test_cursor_back_.patch
create mode 100644 meta/recipes-devtools/python/python3/0001-test_sysconfig-skip-test_sysconfig.test_sysconfigdat.patch
rename meta/recipes-devtools/python/{python3_3.13.9.bb => python3_3.14.0.bb} (95%)meta/classes-recipe/python3-dir.bbclass +1 -1
@@ -4,7 +4,7 @@ # SPDX-License-Identifier: MIT # -PYTHON_BASEVERSION = "3.13" +PYTHON_BASEVERSION = "3.14" PYTHON_ABI = "" PYTHON_DIR = "python${PYTHON_BASEVERSION}" PYTHON_PN = "python3"
meta/recipes-devtools/python/python3/0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch deleted +0 -1452
1,452 lines not on this page · raw message
meta/recipes-devtools/python/python3/0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch +24 -11
@@ -1,4 +1,4 @@ -From 3f4f3e917950e286d5729ea949ca342995eb3c3e Mon Sep 17 00:00:00 2001 +From e3c6e770e73e1329958db0a73883e42b01763ae3 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Fri, 17 Nov 2023 14:26:32 +0100 Subject: [PATCH] Lib/sysconfig.py: use prefix value from build configuration
@@ -9,23 +9,36 @@ native python. Upstream-Status: Inappropriate [oe-core cross builds] Signed-off-by: Alexander Kanavin <[email protected]> + +Refresh to apply on top of Python 3.14.0. + +Signed-off-by: Trevor Gamblin <[email protected]> --- - Lib/sysconfig/__init__.py | 5 +++++ - 1 file changed, 5 insertions(+) + Lib/sysconfig/__init__.py | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py -index f8e1c7d..0882526 100644 +index 2ecbff222fe..cec54cb23dc 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py -@@ -501,6 +501,11 @@ def _init_config_vars(): - _CONFIG_VARS['VPATH'] = sys._vpath - if os.name == 'posix': - _init_posix(_CONFIG_VARS) +@@ -538,12 +538,12 @@ def _init_config_vars(): + _CONFIG_VARS['py_version'] = _PY_VERSION + _CONFIG_VARS['py_version_short'] = _PY_VERSION_SHORT + _CONFIG_VARS['py_version_nodot'] = _PY_VERSION_SHORT_NO_DOT +- _CONFIG_VARS['installed_base'] = base_prefix +- _CONFIG_VARS['base'] = prefix +- _CONFIG_VARS['installed_platbase'] = base_exec_prefix +- _CONFIG_VARS['platbase'] = exec_prefix + _CONFIG_VARS['installed_base'] = _CONFIG_VARS['prefix'] + _CONFIG_VARS['base'] = _CONFIG_VARS['prefix'] + _CONFIG_VARS['installed_platbase'] = _CONFIG_VARS['prefix'] + _CONFIG_VARS['platbase'] = _CONFIG_VARS['prefix'] + _CONFIG_VARS['platlibdir'] = _CONFIG_VARS['PLATLIBDIR'] - if _HAS_USER_BASE: - # Setting 'userbase' is done below the call to the - # init function to enable using 'get_config_var' in + _CONFIG_VARS['projectbase'] = _PROJECT_BASE +- _CONFIG_VARS['platlibdir'] = sys.platlibdir + _CONFIG_VARS['implementation'] = _get_implementation() + _CONFIG_VARS['implementation_lower'] = _get_implementation().lower() + _CONFIG_VARS['abiflags'] = abiflags +-- +2.51.0 +
meta/recipes-devtools/python/python3/0001-Skip-failing-tests-due-to-load-variability-on-YP-AB.patch +27 -10
@@ -1,4 +1,4 @@ -From 8828a52ebace98199569404f01174398bcc64a00 Mon Sep 17 00:00:00 2001 +From 6341e23fedfdde20567c2e695b489119bdddf656 Mon Sep 17 00:00:00 2001 From: Yi Fan Yu <[email protected]> Date: Thu, 1 Apr 2021 13:08:37 -0700 Subject: [PATCH] Skip failing tests due to load variability on YP AB
@@ -16,17 +16,21 @@ Skip two additional tests due to suspected load variability failures. [YOCTO #15131] [YOCTO #15177] +Signed-off-by: Trevor Gamblin <[email protected]> + +Refresh to apply on top of Python 3.14.0. + Signed-off-by: Trevor Gamblin <[email protected]> --- Lib/test/_test_multiprocessing.py | 3 +++ - Lib/test/test_time.py | 2 ++ - 2 files changed, 5 insertions(+) + Lib/test/test_time.py | 9 +++++++++ + 2 files changed, 12 insertions(+) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py -index 5dae370..23eb971 100644 +index 9a72362c022..008e6a505a5 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py -@@ -701,6 +701,7 @@ class _TestProcess(BaseTestCase): +@@ -722,6 +722,7 @@ def test_close(self): close_queue(q) @support.requires_resource('walltime')
@@ -34,7 +38,7 @@ index 5dae370..23eb971 100644 def test_many_processes(self): if self.TYPE == 'threads': self.skipTest('test not appropriate for {}'.format(self.TYPE)) -@@ -2232,6 +2233,7 @@ class _TestBarrier(BaseTestCase): +@@ -2345,6 +2346,7 @@ def _test_timeout_f(cls, barrier, results): except threading.BrokenBarrierError: results.append(True)
@@ -42,7 +46,7 @@ index 5dae370..23eb971 100644 def test_timeout(self): """ Test wait(timeout) -@@ -5320,6 +5322,7 @@ class TestWait(unittest.TestCase): +@@ -5459,6 +5461,7 @@ def signal_and_sleep(cls, sem, period): time.sleep(period) @support.requires_resource('walltime')
@@ -51,18 +55,28 @@ index 5dae370..23eb971 100644 from multiprocessing.connection import wait diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py -index 293799f..1dbb623 100644 +index 5312faa5077..f158e34e91d 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py -@@ -548,6 +548,7 @@ class TimeTestCase(unittest.TestCase): +@@ -551,9 +551,17 @@ def test_perf_counter(self): @unittest.skipIf( support.is_wasi, "process_time not available on WASI" ) + @unittest.skip('timing related test, dependent on load') + @unittest.skipIf( + support.is_emscripten, "process_time present but doesn't exclude sleep" + ) ++ @unittest.skipIf( ++ support.is_wasi, "process_time not available on WASI" ++ ) ++ @unittest.skip('timing related test, dependent on load') ++ @unittest.skipIf( ++ support.is_wasi, "process_time not available on WASI" ++ ) def test_process_time(self): # process_time() should not include time spend during a sleep start = time.process_time() -@@ -561,6 +562,7 @@ class TimeTestCase(unittest.TestCase): +@@ -567,6 +575,7 @@ def test_process_time(self): self.assertTrue(info.monotonic) self.assertFalse(info.adjustable)
@@ -70,3 +84,6 @@ index 293799f..1dbb623 100644 def test_thread_time(self): if not hasattr(time, 'thread_time'): if sys.platform.startswith(('linux', 'android', 'win')): +-- +2.51.0 +
meta/recipes-devtools/python/python3/0001-test_active_children-skip-problematic-test.patch +12 -5
@@ -1,4 +1,4 @@ -From 540765b148d942a2339affa6c0d11445e9d0f26c Mon Sep 17 00:00:00 2001 +From 9c9aac87f48eaece5b99ea347b639c21eea84e6d Mon Sep 17 00:00:00 2001 From: Trevor Gamblin <[email protected]> Date: Thu, 13 Jun 2024 10:54:31 -0400 Subject: [PATCH] test_active_children: skip problematic test
@@ -8,20 +8,27 @@ similar nature to other failing/hanging tests, disable it for now. Upstream-Status: Inappropriate [OE-Specific] +Signed-off-by: Trevor Gamblin <[email protected]> + +Refresh to apply on top of Python 3.14.0. + Signed-off-by: Trevor Gamblin <[email protected]> --- Lib/test/_test_multiprocessing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py -index 23eb971..b1295b2 100644 +index 008e6a505a5..746de8945f0 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py -@@ -594,6 +594,7 @@ class _TestProcess(BaseTestCase): - self.assertTrue(type(cpus) is int) - self.assertTrue(cpus >= 1) +@@ -615,6 +615,7 @@ def test_cpu_count(self): + self.assertIsInstance(cpus, int) + self.assertGreaterEqual(cpus, 1) + @unittest.skip("skipping problematic test") def test_active_children(self): self.assertEqual(type(self.active_children()), list) +-- +2.51.0 +
meta/recipes-devtools/python/python3/0001-test_cmd-skip-bang-completion-test.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 614e3aefec85b51a611f85a55b6760f12e29b953 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Mon, 27 Oct 2025 09:52:46 -0400 +Subject: [PATCH] test_cmd: skip bang completion test + +We compile Python3 with editline support by default, which has tab completion +but not bang completion. If building with readline, +test_bang_completion_without_do_shell() passes. Skip the test because of this. + +Upstream-Status: Inappropriate [embedded-specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + Lib/test/test_cmd.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Lib/test/test_cmd.py b/Lib/test/test_cmd.py +index dbfec42fc21..c33dab8d10d 100644 +--- a/Lib/test/test_cmd.py ++++ b/Lib/test/test_cmd.py +@@ -295,6 +295,7 @@ def do_tab_completion_test(self, args): + self.assertIn(b'ab_completion_test', output) + self.assertIn(b'tab completion success', output) + ++ @unittest.skip('no bang completion without readline') + def test_bang_completion_without_do_shell(self): + script = textwrap.dedent(""" + import cmd +-- +2.51.0 +
meta/recipes-devtools/python/python3/0001-test_pyrepl-skip-test_unix_console.test_cursor_back_.patch new file +46 -0
46 lines not on this page · raw message
meta/recipes-devtools/python/python3/0001-test_sysconfig-skip-test_sysconfig.test_sysconfigdat.patch new file +32 -0
@@ -0,0 +1,32 @@ +From ac5635821ed9bead45a5bcddc3828e50647fbe77 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Mon, 27 Oct 2025 14:24:24 -0400 +Subject: [PATCH] test_sysconfig: skip test_sysconfig.test_sysconfigdata_json + +This test seems new as of 3.14.0 and fails due to various path and flag +differences in variables like CFLAGS. Since the test already has the +precedent of a skip put in place for Android builds due to prefix +changes, skip it for our situation too. + +Upstream-Status: Inappropriate [embedded-specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + Lib/test/test_sysconfig.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py +index 09eff11179e..14fcdedccba 100644 +--- a/Lib/test/test_sysconfig.py ++++ b/Lib/test/test_sysconfig.py +@@ -685,6 +685,7 @@ def test_makefile_overwrites_config_vars(self): + self.assertNotEqual(data['prefix'], data['base_prefix']) + self.assertNotEqual(data['exec_prefix'], data['base_exec_prefix']) + ++ @unittest.skip('OE adds/modifies various flags and paths/prefixes') + @unittest.skipIf(os.name != 'posix', '_sysconfig-vars JSON file is only available on POSIX') + @unittest.skipIf(is_wasi, "_sysconfig-vars JSON file currently isn't available on WASI") + @unittest.skipIf(is_android or is_apple_mobile, 'Android and iOS change the prefix') +-- +2.51.0 +
meta/recipes-devtools/python/python3/python3-manifest.json +2 -1
@@ -1040,7 +1040,8 @@ "core" ], "files": [ - "${libdir}/python${PYTHON_MAJMIN}/string.py" + "${libdir}/python${PYTHON_MAJMIN}/string/__init__.py", + "${libdir}/python${PYTHON_MAJMIN}/string/templatelib.py" ], "cached": [ "${libdir}/python${PYTHON_MAJMIN}/__pycache__/string.*.pyc"
meta/recipes-devtools/python/python3_3.14.0.bb renamed from meta/recipes-devtools/python/python3_3.13.9.bb +16 -4
@@ -4,7 +4,7 @@ DESCRIPTION = "Python is a programming language that lets you work more quickly LICENSE = "PSF-2.0" SECTION = "devel/python" -LIC_FILES_CHKSUM = "file://LICENSE;md5=3f64a4ff490f884d562feb77bf2435f1" +LIC_FILES_CHKSUM = "file://LICENSE;md5=224f30639105a6ab845e068c2d0903ff" SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ file://run-ptest \
@@ -29,20 +29,22 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ file://0001-test_deadlock-skip-problematic-test.patch \ file://0001-test_active_children-skip-problematic-test.patch \ file://0001-test_readline-skip-limited-history-test.patch \ - file://0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch \ + file://0001-test_cmd-skip-bang-completion-test.patch \ + file://0001-test_pyrepl-skip-test_unix_console.test_cursor_back_.patch \ + file://0001-test_sysconfig-skip-test_sysconfig.test_sysconfigdat.patch \ " SRC_URI:append:class-native = " \ file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \ " -SRC_URI[sha256sum] = "ed5ef34cda36cfa2f3a340f07cac7e7814f91c7f3c411f6d3562323a866c5c66" +SRC_URI[sha256sum] = "2299dae542d395ce3883aca00d3c910307cd68e0b2f7336098c8e7b7eee9f3e9" # exclude pre-releases for both python 2.x and 3.x UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar" CVE_PRODUCT = "python:python python_software_foundation:python cpython" -PYTHON_MAJMIN = "3.13" +PYTHON_MAJMIN = "3.14" S = "${UNPACKDIR}/Python-${PV}"
@@ -70,6 +72,7 @@ DEPENDS = "\ virtual/libintl \ xz \ zlib \ + zstd \ " DEPENDS:append:class-target = " python3-native"
@@ -298,6 +301,15 @@ py_package_preprocess () { #Remove the unneeded copy of target sysconfig data rm -rf ${PKGD}/${libdir}/python-sysconfigdata + + # Remove references to buildpaths in _sysconfig_vars JSON files + sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ + -e 's|${DEBUG_PREFIX_MAP}||g' \ + -e 's:${HOSTTOOLS_DIR}/::g' \ + -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 } # We want bytecode precompiled .py files (.pyc's) by default
Signature · 1 line
2.52.0
Re: [OE-core][PATCH 1/6] python3: upgrade 3.13.9 -> 3.14.0
Quoted 9 lines · Trevor Gamblin via lists.openembedded.org
-@@ -548,6 +548,7 @@ class TimeTestCase(unittest.TestCase):
+@@ -551,9 +551,17 @@ deftest_perf_counter(self):@unittest.skipIf( support.is_wasi, "process_time not available on WASI" )+ @unittest.skip('timing related test, dependent on load')
meta/recipes-devtools/python/python3/0001-Skip-failing-tests-due-to-load-variability-on-YP-AB.patch +3
-0+ @unittest.skipIf( + support.is_emscripten, "process_time present but doesn't exclude sleep" + )
meta/recipes-devtools/python/python3/0001-Skip-failing-tests-due-to-load-variability-on-YP-AB.patch index 5dae370..23eb971 100644 · line 78
Quoted 10 lines
meta/recipes-devtools/python/python3/0001-Skip-failing-tests-due-to-load-variability-on-YP-AB.patch +7
-0++ @unittest.skipIf( ++ support.is_wasi, "process_time not available on WASI" ++ ) ++ @unittest.skip('timing related test, dependent on load') ++ @unittest.skipIf( ++ support.is_wasi, "process_time not available on WASI" ++ ) def test_process_time(self): # process_time() should not include time spend during a sleep start = time.process_time()
This adds unrelated and/or duplicate lines, if I am reading 'diff of a diff' correctly? The needed skip is already there?
Alex
PATCH 2/6 python_pep517: add --prefix to nativepython3 call
In reply to Trevor GamblinWith Python 3.14, the default assumptions about install path in python_pep517 no longer seem to apply, and as a result we see QA errors during Python package builds like:
|ERROR: python3-unittest-automake-output-0.3-r0 do_package: QA Issue: python3-unittest-automake-output: Files/directories were installed but not shipped in any package: | /home | /home/tgamblin | /home/tgamblin/workspace | /home/tgamblin/workspace/yocto | /home/tgamblin/workspace/yocto/openembedded-core | /home/tgamblin/workspace/yocto/openembedded-core/build | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3 | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14 | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao-0.3.dist-info | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/__init__.py | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/pytest.py | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/unittest | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/__pycache__ | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/unittest/__init__.py | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/unittest/__main__.py | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/unittest/__pycache__ | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/unittest/__pycache__/__init__.cpython-314.pyc | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/unittest/__pycache__/__main__.cpython-314.pyc | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/__pycache__/__init__.cpython-314.pyc | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao/__pycache__/pytest.cpython-314.pyc | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao-0.3.dist-info/entry_points.txt | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao-0.3.dist-info/WHEEL | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao-0.3.dist-info/METADATA | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao-0.3.dist-info/licenses | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/python3-unittest-automake-output/0.3/recipe-sysroot-native/usr/lib/python3.14/site-packages/putao-0.3.dist-info/licenses/LICENSE |Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. |python3-unittest-automake-output: 34 installed and not shipped files. [installed-vs-shipped]
We need to add the --prefix flag to the nativepython3 call so that it avoids using the native Python's sysconfig prefix.
--- meta/classes-recipe/python_pep517.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/python_pep517.bbclass +1 -1
@@ -51,7 +51,7 @@ python_pep517_do_install () { bbfatal More than one wheel found in ${PEP517_WHEEL_PATH}, this should not happen fi - nativepython3 -m installer ${INSTALL_WHEEL_COMPILE_BYTECODE} --interpreter "${USRBINPATH}/env ${PEP517_INSTALL_PYTHON}" --destdir=${D} ${PEP517_WHEEL_PATH}/*.whl + nativepython3 -m installer ${INSTALL_WHEEL_COMPILE_BYTECODE} --interpreter "${USRBINPATH}/env ${PEP517_INSTALL_PYTHON}" --prefix=${prefix} --destdir=${D} ${PEP517_WHEEL_PATH}/*.whl find ${D} -path *.dist-info/RECORD -delete }
Signature · 1 line
2.52.0
PATCH 3/6 python3-bcrypt: upgrade 4.3.0 -> 5.0.0
In reply to Trevor GamblinChangelog (https://github.com/pyca/bcrypt/blob/main/CHANGELOG.rst):
- Bumped MSRV to 1.74.
- Added support for Python 3.14 and free-threaded Python 3.14.
- Added support for Windows on ARM.
- Passing hashpw a password longer than 72 bytes now raises a ValueError. Previously the password was silently truncated, following the behavior of the original OpenBSD bcrypt implementation.
---
.../python/python3-bcrypt-crates.inc | 90 ++++++++++---------
...crypt_4.3.0.bb => python3-bcrypt_5.0.0.bb} | 2 +-
2 files changed, 49 insertions(+), 43 deletions(-)
rename meta/recipes-devtools/python/{python3-bcrypt_4.3.0.bb => python3-bcrypt_5.0.0.bb} (86%)meta/recipes-devtools/python/python3-bcrypt-crates.inc +48 -42
@@ -2,45 +2,47 @@ # from src/_bcrypt/Cargo.lock SRC_URI += " \ - crate://crates.io/autocfg/1.4.0 \ + crate://crates.io/autocfg/1.5.0 \ crate://crates.io/base64/0.22.1 \ - crate://crates.io/bcrypt/0.17.0 \ + crate://crates.io/bcrypt/0.17.1 \ crate://crates.io/bcrypt-pbkdf/0.10.0 \ crate://crates.io/bitflags/2.8.0 \ crate://crates.io/block-buffer/0.10.4 \ crate://crates.io/blowfish/0.9.1 \ crate://crates.io/byteorder/1.5.0 \ - crate://crates.io/cfg-if/1.0.0 \ + crate://crates.io/cfg-if/1.0.3 \ crate://crates.io/cipher/0.4.4 \ crate://crates.io/cpufeatures/0.2.17 \ crate://crates.io/crypto-common/0.1.6 \ crate://crates.io/digest/0.10.7 \ crate://crates.io/generic-array/0.14.7 \ - crate://crates.io/getrandom/0.3.1 \ + crate://crates.io/getrandom/0.3.3 \ crate://crates.io/heck/0.5.0 \ - crate://crates.io/indoc/2.0.5 \ + crate://crates.io/indoc/2.0.6 \ crate://crates.io/inout/0.1.4 \ - crate://crates.io/libc/0.2.170 \ + crate://crates.io/libc/0.2.176 \ crate://crates.io/memoffset/0.9.1 \ - crate://crates.io/once_cell/1.20.3 \ + crate://crates.io/once_cell/1.21.3 \ crate://crates.io/pbkdf2/0.12.2 \ - crate://crates.io/portable-atomic/1.11.0 \ - crate://crates.io/proc-macro2/1.0.93 \ - crate://crates.io/pyo3/0.23.5 \ - crate://crates.io/pyo3-build-config/0.23.5 \ - crate://crates.io/pyo3-ffi/0.23.5 \ - crate://crates.io/pyo3-macros/0.23.5 \ - crate://crates.io/pyo3-macros-backend/0.23.5 \ - crate://crates.io/quote/1.0.38 \ - crate://crates.io/sha2/0.10.8 \ + crate://crates.io/portable-atomic/1.11.1 \ + crate://crates.io/proc-macro2/1.0.101 \ + crate://crates.io/pyo3/0.26.0 \ + crate://crates.io/pyo3-build-config/0.26.0 \ + crate://crates.io/pyo3-ffi/0.26.0 \ + crate://crates.io/pyo3-macros/0.26.0 \ + crate://crates.io/pyo3-macros-backend/0.26.0 \ + crate://crates.io/quote/1.0.40 \ + crate://crates.io/r-efi/5.3.0 \ + crate://crates.io/sha2/0.10.9 \ crate://crates.io/subtle/2.6.1 \ - crate://crates.io/syn/2.0.98 \ - crate://crates.io/target-lexicon/0.12.16 \ + crate://crates.io/syn/2.0.106 \ + crate://crates.io/target-lexicon/0.13.3 \ crate://crates.io/typenum/1.18.0 \ - crate://crates.io/unicode-ident/1.0.17 \ - crate://crates.io/unindent/0.2.3 \ + crate://crates.io/unicode-ident/1.0.19 \ + crate://crates.io/unindent/0.2.4 \ crate://crates.io/version_check/0.9.5 \ - crate://crates.io/wasi/0.13.3+wasi-0.2.2 \ + crate://crates.io/wasi/0.14.7+wasi-0.2.4 \ + crate://crates.io/wasip2/1.0.1+wasi-0.2.4 \ crate://crates.io/windows-targets/0.52.6 \ crate://crates.io/windows_aarch64_gnullvm/0.52.6 \ crate://crates.io/windows_aarch64_msvc/0.52.6 \
@@ -50,49 +52,52 @@ SRC_URI += " \ crate://crates.io/windows_x86_64_gnu/0.52.6 \ crate://crates.io/windows_x86_64_gnullvm/0.52.6 \ crate://crates.io/windows_x86_64_msvc/0.52.6 \ + crate://crates.io/wit-bindgen/0.46.0 \ crate://crates.io/wit-bindgen-rt/0.33.0 \ crate://crates.io/zeroize/1.8.1 \ " -SRC_URI[autocfg-1.4.0.sha256sum] = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" +SRC_URI[autocfg-1.5.0.sha256sum] = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" SRC_URI[base64-0.22.1.sha256sum] = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" -SRC_URI[bcrypt-0.17.0.sha256sum] = "92758ad6077e4c76a6cadbce5005f666df70d4f13b19976b1a8062eef880040f" +SRC_URI[bcrypt-0.17.1.sha256sum] = "abaf6da45c74385272ddf00e1ac074c7d8a6c1a1dda376902bd6a427522a8b2c" SRC_URI[bcrypt-pbkdf-0.10.0.sha256sum] = "6aeac2e1fe888769f34f05ac343bbef98b14d1ffb292ab69d4608b3abc86f2a2" SRC_URI[bitflags-2.8.0.sha256sum] = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" SRC_URI[block-buffer-0.10.4.sha256sum] = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" SRC_URI[blowfish-0.9.1.sha256sum] = "e412e2cd0f2b2d93e02543ceae7917b3c70331573df19ee046bcbc35e45e87d7" SRC_URI[byteorder-1.5.0.sha256sum] = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" -SRC_URI[cfg-if-1.0.0.sha256sum] = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +SRC_URI[cfg-if-1.0.3.sha256sum] = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" SRC_URI[cipher-0.4.4.sha256sum] = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" SRC_URI[cpufeatures-0.2.17.sha256sum] = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" SRC_URI[crypto-common-0.1.6.sha256sum] = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" SRC_URI[digest-0.10.7.sha256sum] = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" SRC_URI[generic-array-0.14.7.sha256sum] = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -SRC_URI[getrandom-0.3.1.sha256sum] = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" +SRC_URI[getrandom-0.3.3.sha256sum] = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" SRC_URI[heck-0.5.0.sha256sum] = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" -SRC_URI[indoc-2.0.5.sha256sum] = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" +SRC_URI[indoc-2.0.6.sha256sum] = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd" SRC_URI[inout-0.1.4.sha256sum] = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" -SRC_URI[libc-0.2.170.sha256sum] = "875b3680cb2f8f71bdcf9a30f38d48282f5d3c95cbf9b3fa57269bb5d5c06828" +SRC_URI[libc-0.2.176.sha256sum] = "58f929b4d672ea937a23a1ab494143d968337a5f47e56d0815df1e0890ddf174" SRC_URI[memoffset-0.9.1.sha256sum] = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" -SRC_URI[once_cell-1.20.3.sha256sum] = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" +SRC_URI[once_cell-1.21.3.sha256sum] = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" SRC_URI[pbkdf2-0.12.2.sha256sum] = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" -SRC_URI[portable-atomic-1.11.0.sha256sum] = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e" -SRC_URI[proc-macro2-1.0.93.sha256sum] = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" -SRC_URI[pyo3-0.23.5.sha256sum] = "7778bffd85cf38175ac1f545509665d0b9b92a198ca7941f131f85f7a4f9a872" -SRC_URI[pyo3-build-config-0.23.5.sha256sum] = "94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb" -SRC_URI[pyo3-ffi-0.23.5.sha256sum] = "e9f1b4c431c0bb1c8fb0a338709859eed0d030ff6daa34368d3b152a63dfdd8d" -SRC_URI[pyo3-macros-0.23.5.sha256sum] = "fbc2201328f63c4710f68abdf653c89d8dbc2858b88c5d88b0ff38a75288a9da" -SRC_URI[pyo3-macros-backend-0.23.5.sha256sum] = "fca6726ad0f3da9c9de093d6f116a93c1a38e417ed73bf138472cf4064f72028" -SRC_URI[quote-1.0.38.sha256sum] = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" -SRC_URI[sha2-0.10.8.sha256sum] = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +SRC_URI[portable-atomic-1.11.1.sha256sum] = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" +SRC_URI[proc-macro2-1.0.101.sha256sum] = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de" +SRC_URI[pyo3-0.26.0.sha256sum] = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383" +SRC_URI[pyo3-build-config-0.26.0.sha256sum] = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f" +SRC_URI[pyo3-ffi-0.26.0.sha256sum] = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105" +SRC_URI[pyo3-macros-0.26.0.sha256sum] = "2e64eb489f22fe1c95911b77c44cc41e7c19f3082fc81cce90f657cdc42ffded" +SRC_URI[pyo3-macros-backend-0.26.0.sha256sum] = "100246c0ecf400b475341b8455a9213344569af29a3c841d29270e53102e0fcf" +SRC_URI[quote-1.0.40.sha256sum] = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" +SRC_URI[r-efi-5.3.0.sha256sum] = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +SRC_URI[sha2-0.10.9.sha256sum] = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" SRC_URI[subtle-2.6.1.sha256sum] = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" -SRC_URI[syn-2.0.98.sha256sum] = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" -SRC_URI[target-lexicon-0.12.16.sha256sum] = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" +SRC_URI[syn-2.0.106.sha256sum] = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6" +SRC_URI[target-lexicon-0.13.3.sha256sum] = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c" SRC_URI[typenum-1.18.0.sha256sum] = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" -SRC_URI[unicode-ident-1.0.17.sha256sum] = "00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe" -SRC_URI[unindent-0.2.3.sha256sum] = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce" +SRC_URI[unicode-ident-1.0.19.sha256sum] = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d" +SRC_URI[unindent-0.2.4.sha256sum] = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3" SRC_URI[version_check-0.9.5.sha256sum] = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" -SRC_URI[wasi-0.13.3+wasi-0.2.2.sha256sum] = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" +SRC_URI[wasi-0.14.7+wasi-0.2.4.sha256sum] = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c" +SRC_URI[wasip2-1.0.1+wasi-0.2.4.sha256sum] = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" SRC_URI[windows-targets-0.52.6.sha256sum] = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" SRC_URI[windows_aarch64_gnullvm-0.52.6.sha256sum] = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" SRC_URI[windows_aarch64_msvc-0.52.6.sha256sum] = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
@@ -102,5 +107,6 @@ SRC_URI[windows_i686_msvc-0.52.6.sha256sum] = "240948bc05c5e7c6dabba28bf89d89ffc SRC_URI[windows_x86_64_gnu-0.52.6.sha256sum] = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" SRC_URI[windows_x86_64_gnullvm-0.52.6.sha256sum] = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" SRC_URI[windows_x86_64_msvc-0.52.6.sha256sum] = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" +SRC_URI[wit-bindgen-0.46.0.sha256sum] = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" SRC_URI[wit-bindgen-rt-0.33.0.sha256sum] = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" SRC_URI[zeroize-1.8.1.sha256sum] = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
meta/recipes-devtools/python/python3-bcrypt_5.0.0.bb renamed from meta/recipes-devtools/python/python3-bcrypt_4.3.0.bb +1 -1
@@ -6,7 +6,7 @@ HOMEPAGE = "https://pypi.org/project/bcrypt/" DEPENDS += "python3-cffi-native" LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '-fuse-ld=bfd', '', d)}" -SRC_URI[sha256sum] = "3a3fd2204178b6d2adcf09cb4f6426ffef54762577a7c9b54c159008cb288c18" +SRC_URI[sha256sum] = "f748f7c2d6fd375cc93d3fba7ef4a9e3a092421b8dbf34d8d4dc06be9492dfdd" inherit pypi python_setuptools3_rust cargo-update-recipe-crates ptest-python-pytest
Signature · 1 line
2.52.0
PATCH 4/6 rpm: handle CMake Python paths in do_configure
In reply to Trevor GamblinWith the Python 3.14.0 upgrade, rpm is finding the wrong paths with CMake, leading to a QA issue for files that we have listed in FILES already:
|ERROR: QA Issue: rpm: Files/directories were installed but not shipped in any package: | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm-4.20.1-py3.14.egg-info | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/_rpm.so | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/transaction.py | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/__init__.py |Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. |rpm: 4 installed and not shipped files. [installed-vs-shipped]
Add a do_configure:prepend() step to make sure the right ones are found.
--- meta/recipes-devtools/rpm/rpm_4.20.1.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta/recipes-devtools/rpm/rpm_4.20.1.bb +5 -0
@@ -101,6 +101,11 @@ WRAPPER_TOOLS = " \ base_bindir_progs = "sed tar rm mv mkdir cp cat chown chmod gzip grep" +do_configure:prepend() { + # Force CMake to use target Python paths, not native + sed -i 's|${Python3_SITEARCH}|${PYTHON_SITEPACKAGES_DIR}|g' ${S}/python/CMakeLists.txt +} + do_install:append:class-native() { for tool in ${WRAPPER_TOOLS}; do test -x ${D}$tool && create_wrapper ${D}$tool \
Signature · 1 line
2.52.0
Re: [OE-core][PATCH 4/6] rpm: handle CMake Python paths in do_configure
Quoted 14 lines · Trevor Gamblin via lists.openembedded.org
With the Python 3.14.0 upgrade, rpm is finding the wrong paths with CMake, leading to a QA issue for files that we have listed in FILES already:
|ERROR: QA Issue: rpm: Files/directories were installed but not shipped in any package: | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm-4.20.1-py3.14.egg-info | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/_rpm.so | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/transaction.py | /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/rpm/4.20.1/recipe-sysroot-native/usr/lib/python3.14/site-packages/rpm/__init__.py |Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. |rpm: 4 installed and not shipped files. [installed-vs-shipped]Add a do_configure:prepend() step to make sure the right ones are found.
...
meta/recipes-devtools/rpm/rpm_4.20.1.bb WRAPPER_TOOLS = " \ · line 108
Quoted 5 lines
meta/recipes-devtools/rpm/rpm_4.20.1.bb +5
-0+do_configure:prepend() { + # Force CMake to use target Python paths, not native + sed -i 's|${Python3_SITEARCH}|${PYTHON_SITEPACKAGES_DIR}|g' ${S}/python/CMakeLists.txt +} +
This kind of tweak should be done with a proper patch.
But before that, it would be good to investigate why the correct value was returned before and now it is not: even if we work around it in oe-core like this, the issue may pop up in other layers too. It's possible something needs to be fixed in python recipe still.
Alex
PATCH 5/6 python3-pytest: add python3-misc to RDEPENDS
In reply to Trevor Gamblinpytest depends on the annotationlib module, which is in the python3-misc split. Without this, many of the other packages' ptests will fail right away when pytest tries to import the missing module.
--- meta/recipes-devtools/python/python3-pytest_8.4.2.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-pytest_8.4.2.bb +1 -0
@@ -17,6 +17,7 @@ RDEPENDS:${PN} += " \ python3-doctest \ python3-iniconfig \ python3-json \ + python3-misc \ python3-packaging \ python3-pluggy \ python3-pygments \
Signature · 1 line
2.52.0
PATCH 6/6 python3-jsonpointer: add python3-misc to RDEPENDS
In reply to Trevor Gamblinjsonpointer's ptest uses unittest, which depends on the internal _py_warnings module. This is part of the python3-misc split. However, there is also a warning displayed when simply trying to import jsonpointer in an interpreter running on the target:
|warning: can't use pyrepl: No module named '_py_warnings'
Add python3-misc to the package RDEPENDS to deal with both issues.
--- meta/recipes-devtools/python/python3-jsonpointer_3.0.0.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-jsonpointer_3.0.0.bb +1 -0
@@ -17,6 +17,7 @@ do_install_ptest() { RDEPENDS:${PN} += " \ python3-json \ + python3-misc \ " RDEPENDS:${PN}-ptest += " \
Signature · 1 line
2.52.0
Quoted 7 lines · Trevor Gamblin
Here goes the first attempt at upgrading the python3 recipe to 3.14.0. This will likely break some stuff, so it'd be good to start testing it early before Wrynose begins the build phase. You can see the specific commits for more details, but I will note that in addition to the buildall-qemu, reproducibility, and ptest checks I've reported in the python3 upgrade patch itself, I've also done the following on my build machine (F43):
Quoted 5 lines
- bitbake core-image-ptest-all (which is how I found the problems fixed by the bcrypt, jsonpointer, and pytest changes);
- bitbake -k world (which IIRC is where I found the rpm issue).Trevor Gamblin (6):
Hi Trevor,
Thanks for your patches.
It looks like we do have some issues on the autobuilder.
A first one, maybe only with alternate distro?
Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/qemux86-alt/build/layers/openembedded-core/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/srv/pokybuild/yocto-worker/qemux86-alt/build/layers/openembedded-core/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/srv/pokybuild/yocto-worker/qemux86-alt/build/layers/openembedded-core/meta/lib/oeqa/runtime/cases/gi.py", line 20, in test_python
self.assertEqual(status, 0, msg="Python failed (%s)" % (output))
AssertionError: 1 != 0 : Python failed (Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.14/site-packages/gi/__init__.py", line 40, in <module>
from . import _gi
File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in <module>
from .base_events import *
File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in <module>
import concurrent.futures
File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in <module>
from concurrent.futures._base import (FIRST_COMPLETED,
File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in <module>
import logging
File "/usr/lib/python3.14/logging/__init__.py", line 26, in <module>
import sys, os, time, io, re, traceback, warnings, weakref, collections.abc
File "/usr/lib/python3.14/traceback.py", line 8, in <module>
import warnings
File "/usr/lib/python3.14/warnings.py", line 15, in <module>
from _py_warnings import (
ModuleNotFoundError: No module named '_py_warnings')
...
RESULTS - gi.GObjectIntrospectionTest.test_python: FAILED (0.67s)
https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/2793
https://autobuilder.yoctoproject.org/valkyrie/#/builders/9/builds/2804
https://autobuilder.yoctoproject.org/valkyrie/#/builders/95/builds/2785
And another one here:
Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/qemuarmv5/build/layers/openembedded-core/meta/lib/oeqa/sdk/cases/maturin.py", line 30, in test_maturin_list_python
self.assertIn(expected, output)
AssertionError: '3.14 at /srv/pokybuild/yocto-worker/qemuarmv5/build/build/tmp/work/qemuarmv5-poky-linux-gnueabi/core-image-sato/1.0/testsdkext/buildtools/sysroots/x86_64-pokysdk-linux/usr/bin/python3' not found in '🐍 1 python interpreter found:\n - CPython 3.9 at /srv/pokybuild/buildbot-venv/bin/python3.9\n'
...
core-image-sato esdk (poky-glibc-x86_64-core-image-sato-armv5e-qemuarmv5-toolchain-ext-5.2.99+snapshot.sh:environment-setup-armv5e-poky-linux-gnueabi) - Ran 30 tests in 616.844s
core-image-sato esdk - FAIL - Required tests failed (successes=19, skipped=10, failures=1, errors=0)
ERROR: core-image-sato-1.0-r0 do_testsdkext: core-image-sato - FAILED - check the task log and the commands log
...
RESULTS - maturin.MaturinTest.test_maturin_list_python: FAILED (3.43s)
https://autobuilder.yoctoproject.org/valkyrie/#/builders/80/builds/2661
Can you try to fix these?
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com