Skip to contentSkip to conversation

systemd: add missing libucontext dependency on musl

PATCH Superseded Ross Burton 1 participant 4 messages Aug 5 – Aug 7

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 systemd: add missing libucontext dependency on musl

This library is needed when building with musl since v261[1].

[1] systemd 8533513aff ("Introduce support for running code in fibers")

---
 meta/recipes-core/systemd/systemd_261.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/systemd/systemd_261.1.bb +1 -0
index 575717bb893..b025580bab4 100644
@@ -5,6 +5,7 @@ PROVIDES = "udev"
 PE = "1"
 
 DEPENDS = "gperf-native libcap util-linux python3-jinja2-native"
+DEPENDS:append:libc-musl = " libucontext"
 
 SECTION = "base/shell"
 
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/3 python3-numpy: remove HOSTTOOLS_DIR from __config__.py

If ccache is enabled then HOSTTOOLS_DIR ends up in __config__.py, so remove that path too.

Also remove redundant entries: there's no need to remove both ${RECIPE_SYSROOT}= and ${RECIPE_SYSROOT}.

---
 meta/recipes-devtools/python/python3-numpy_2.5.1.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-devtools/python/python3-numpy_2.5.1.bb +3 -3
index 88786dc0168..d053cc56932 100644
@@ -29,10 +29,10 @@ do_install:append() {
     sed -i \
         -e 's|${S}=||g' \
         -e 's|${B}=||g' \
-        -e 's|${RECIPE_SYSROOT_NATIVE}=||g' \
         -e 's|${RECIPE_SYSROOT_NATIVE}||g' \
-        -e 's|${RECIPE_SYSROOT}=||g' \
-        -e 's|${RECIPE_SYSROOT}||g' ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
+        -e 's|${RECIPE_SYSROOT}||g' \
+        -e 's|${HOSTTOOLS_DIR}||g' \
+        ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
 
     nativepython3 -mcompileall -s ${D} ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
 }
Signature · 1 line
2.43.0
#2 lore raw

Re: [OE-core] [PATCH 2/3] python3-numpy: remove HOSTTOOLS_DIR from __config__.py

Quoted 2 lines · Ross Burton via lists.openembedded.org

Also remove redundant entries: there's no need to remove both ${RECIPE_SYSROOT}= and ${RECIPE_SYSROOT}.

Just realised this isn’t deleting lines so there is a difference. v2 incoming.

Ross

#3 lore raw

PATCH 3/3 python3-packaging: upgrade 26.2 -> 26.3

In reply to Ross Burton

- Add a public VersionRange API and SpecifierSet.to_range(), representing the versions a specifier set accepts as an interval set that supports intersection, union, difference, complement, set relations, membership tests, and filtering. VersionRange.to_specifier_set() converts a range back to a SpecifierSet where a PEP 440 form exists.
- PEP 808: accept Metadata-Version: 2.6.
- Add a limit argument to parse_tag() for compressed tag sets.
- Add a prefer_sdist_predicate argument to Pylock.select() to prefer source distributions over wheels for selected packages.
- Add pure_python_tags() to generate the pure-Python tags for a Python version without touching the running platform.
- Add SpecifierSet.is_subset(), SpecifierSet.is_superset(), and SpecifierSet.is_disjoint(), which compare the versions two specifier sets accept.
- Drop support for Python 3.8; packaging now requires Python 3.9 or later.
- Prefer native linux_* platform tags over manylinux and musllinux tags on Linux. - Add a musl/Alpine test job and make the test suite pass on musl.

The tests now work on musl so don't skip the manylinux tests.

---
 .../{python3-packaging_26.2.bb => python3-packaging_26.3.bb}  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
 rename meta/recipes-devtools/python/{python3-packaging_26.2.bb => python3-packaging_26.3.bb} (76%)
meta/recipes-devtools/python/python3-packaging_26.3.bb renamed from meta/recipes-devtools/python/python3-packaging_26.2.bb +1 -3
similarity index 76%
rename from meta/recipes-devtools/python/python3-packaging_26.2.bb
rename to meta/recipes-devtools/python/python3-packaging_26.3.bb
index 81ae6f27329..424ee12ceed 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/pypa/packaging"
 LICENSE = "Apache-2.0 OR BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
 
-SRC_URI[sha256sum] = "ff452ff5a3e828ce110190feff1178bb1f2ea2281fa2075aadb987c2fb221661"
+SRC_URI[sha256sum] = "94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79"
 
 SRC_URI += "file://run-ptest.in"
 
@@ -15,8 +15,6 @@ RDEPENDS:${PN} += "python3-profile"
 
 # This test needs tomli_w which isn't currently in meta/
 SKIPLIST = "--ignore=tests/test_pylock.py"
-# Tests don't handle manylinux+musl (https://github.com/pypa/packaging/issues/850)
-SKIPLIST:append:libc-musl = " --deselect=tests/test_manylinux.py::test_is_manylinux_compatible_old --deselect=tests/test_tags.py::TestManylinuxPlatform --deselect=tests/test_tags.py::TestSysTags"
 
 do_compile:class-native () {
     python_flit_core_do_manual_build
Signature · 1 line
2.43.0