gupnp-igd: Bound each ptest with a timeout
PATCH 1/4 gupnp-igd: Bound each ptest with a timeout
gupnp-simple-igd blocks in g_main_loop_run() until the UPnP exchange over loopback completes, with no timeout of its own. It hung once on qemux86-64 for 9+ hours; 15 back-to-back reruns passed in ~10s each. Its GLib debug output keeps flowing while it waits, so ptest-runner's inactivity timeout never fires. Wrap each test in timeout(1) and pull in coreutils, since busybox in ptest images lacks the applet.
AI-Generated: Uses Claude Code
--- meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/run-ptest | 2 +- meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.6.0.bb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/run-ptest +1 -1
@@ -3,7 +3,7 @@ RET=0 cd test for t in $(find . -type f -executable); do - if ./$t; then + if timeout 300 ./$t; then echo PASS: $t else echo FAIL: $t
meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.6.0.bb +2 -0
@@ -12,6 +12,8 @@ SRC_URI[archive.sha256sum] = "4099978339ab22126d4968f2a332b6d094fc44c78797860781 GTKDOC_MESON_OPTION = "gtk_doc" +RDEPENDS:${PN}-ptest += "coreutils" + do_install_ptest(){ cd ${B}/tests/gtest for t in $(find . -type f -executable); do
PATCH 2/4 python3-geojson: Allow building with Python 3.15
setup.py exits unless the interpreter is 3.10 - 3.14, so do_compile fails now that oe-core ships Python 3.15. Upstream main still has the same bound; raise it to 3.15.
AI-Generated: Uses Claude Code
--- .../0001-setup.py-Allow-Python-3.15.patch | 38 +++++++++++++++++++ .../python/python3-geojson_3.3.0.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-geojson/0001-setup.py-Allow-Python-3.15.patch
meta-python/recipes-devtools/python/python3-geojson/0001-setup.py-Allow-Python-3.15.patch new file +38 -0
@@ -0,0 +1,38 @@ +From b0ebb91bc05e240a1acee4133662e3cc2127a9e3 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 19 Nov 2026 10:21:40 -0800 +Subject: [PATCH] setup.py: Allow Python 3.15 + +setup.py refuses to run on anything newer than 3.14, so the package +cannot be built with Python 3.15. Raise the upper bound and add the +classifier. + +Upstream-Status: Submitted [https://github.com/jazzband/geojson/pull/264] +Signed-off-by: Khem Raj <[email protected]> +--- + setup.py | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 05ce9cd..427c434 100644 +--- a/setup.py ++++ b/setup.py +@@ -17,8 +17,8 @@ else: + + + major_version, minor_version = sys.version_info[:2] +-if not (major_version == 3 and 10 <= minor_version <= 14): +- sys.stderr.write("Sorry, only Python 3.10 - 3.14 are " ++if not (major_version == 3 and 10 <= minor_version <= 15): ++ sys.stderr.write("Sorry, only Python 3.10 - 3.15 are " + "supported at this time.\n") + exit(1) + +@@ -52,6 +52,7 @@ setup( + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ++ "Programming Language :: Python :: 3.15", + "Topic :: Scientific/Engineering :: GIS", + ] + )
meta-python/recipes-devtools/python/python3-geojson_3.3.0.bb +1 -0
@@ -3,6 +3,7 @@ HOMEPAGE = "https://pypi.org/project/geojson/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=127b4a863485faf7c57d12dc2c1f60b3" +SRC_URI += "file://0001-setup.py-Allow-Python-3.15.patch" SRC_URI[sha256sum] = "92e83b9cb378a450b42f1207bb9b2a031f9fc89185f335153c44369b8b8b71fd" inherit pypi setuptools3 ptest-python-pytest
PATCH 3/4 python3-pytokens: Fix mypyc build with Python 3.15
In reply to Khem Rajpytokens is compiled with mypyc, which builds its runtime with -Werror. The mypy 1.17 runtime (misc_ops.c and friends) uses _Py_IDENTIFIER, _PyUnicode_FromId and _PyObject_GetAttrId, which Python 3.15 marks deprecated, so the build fails with 19 -Wdeprecated-declarations errors. mypy 1.20 dropped these calls, but upgrading needs new librt and ast-serialize recipes. Downgrade the warning from an error until then; the APIs are still present in 3.15.
AI-Generated: Uses Claude Code
--- meta-python/recipes-devtools/python/python3-pytokens_0.4.1.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pytokens_0.4.1.bb +2 -0
@@ -10,4 +10,6 @@ SRC_URI[sha256sum] = "292052fe80923aae2260c073f822ceba21f3872ced9a68bb7953b348e5 DEPENDS += "python3-mypy-native" +CFLAGS += "-Wno-error=deprecated-declarations" + BBCLASSEXTEND = "native nativesdk"
PATCH 4/4 libldb, samba: Use exec_module() in cross module check
In reply to Khem RajPython 3.15 removed the deprecated importlib Loader.load_module(), so the CHECK_BUNDLED_SYSTEM_PYTHON change carried by the "do not import target module while cross compile" patch fails at configure time:
AttributeError: 'ExtensionFileLoader' object has no attribute 'load_module'. Did you mean '.exec_module' instead of '.load_module'?
Call exec_module() on the module created by module_from_spec(), which is the matching API and works with older Python versions too.
AI-Generated: Uses Claude Code
--- .../0002-do-not-import-target-module-while-cross-compile.patch | 2 +- .../0001-do-not-import-target-module-while-cross-compile.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch +1 -1
@@ -44,7 +44,7 @@ index 2300565..26d9e8c 100644 - version = m.__version__ - except AttributeError: + module = importlib.util.module_from_spec(spec) -+ spec.loader.load_module(module) ++ spec.loader.exec_module(module) + except ImportError: found = False +
meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch +1 -1
@@ -46,7 +46,7 @@ index 2300565..26d9e8c 100644 - version = m.__version__ - except AttributeError: + module = importlib.util.module_from_spec(spec) -+ spec.loader.load_module(module) ++ spec.loader.exec_module(module) + except ImportError: found = False +