From: Leon Anavi Date: Mon, 3 Aug 2026 10:52:35 +0000 (+0300) Subject: python3-numpy: Upgrade 2.5.0 -> 2.5.1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ef4fd816f99b02979e20b714c4b7f053bf68cd3;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git python3-numpy: Upgrade 2.5.0 -> 2.5.1 Upgrade to release 2.5.1: - The minimum supported GCC version has been updated from 9.3.0 to 10.3.0 - Bug fixes Drop 0001-python-sysroot.patch because the vendored fork of Meson in numpy has been upgraded to include patches from 1.12.0rc2, including the specific sysroot fix available since since 1.10.0. Signed-off-by: Leon Anavi Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/python/python3-numpy/0001-python-sysroot.patch b/meta/recipes-devtools/python/python3-numpy/0001-python-sysroot.patch deleted file mode 100644 index 681876fa521..00000000000 --- a/meta/recipes-devtools/python/python3-numpy/0001-python-sysroot.patch +++ /dev/null @@ -1,34 +0,0 @@ -From ced528318cddfef6c5e676c2815e64b5caa45c64 Mon Sep 17 00:00:00 2001 -From: Ross Burton -Date: Wed, 21 Jan 2026 14:12:36 +0000 -Subject: [PATCH] Add sysroot to pkgconfig libdir - -When Meson uses pkg-config to introspect the Python install it resets PKG_CONFIG_PATH -and PKG_CONFIG_LIBDIR. However, when it writes to PKG_CONFIG_LIBDIR it uses the -_target_ library directory without prefixing this with the sysroot, which breaks -the build if _LIBDIR is the primary search path. - -This has been fixed in Meson since 1.10.0[1] but numpy has a vendored fork of Meson -that is currently at 1.9.2, so backport the specific fix to solve this problem. - -[1] meson 59c3dd1fd ("python: add a python.build_config option (PEP 739)") - -Upstream-Status: Backport -Signed-off-by: Ross Burton ---- - vendored-meson/meson/mesonbuild/dependencies/python.py | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/vendored-meson/meson/mesonbuild/dependencies/python.py b/vendored-meson/meson/mesonbuild/dependencies/python.py -index 7f9bd20..fdcf714 100644 ---- a/vendored-meson/meson/mesonbuild/dependencies/python.py -+++ b/vendored-meson/meson/mesonbuild/dependencies/python.py -@@ -412,6 +412,8 @@ def python_factory(env: 'Environment', for_machine: 'MachineChoice', - if DependencyMethods.PKGCONFIG in methods: - if from_installation: - pkg_libdir = installation.info['variables'].get('LIBPC') -+ sysroot = env.properties[for_machine].get_sys_root() or '' -+ pkg_libdir = sysroot + pkg_libdir - pkg_embed = '-embed' if embed and mesonlib.version_compare(installation.info['version'], '>=3.8') else '' - pkg_name = f'python-{pkg_version}{pkg_embed}' - diff --git a/meta/recipes-devtools/python/python3-numpy_2.5.0.bb b/meta/recipes-devtools/python/python3-numpy_2.5.1.bb similarity index 95% rename from meta/recipes-devtools/python/python3-numpy_2.5.0.bb rename to meta/recipes-devtools/python/python3-numpy_2.5.1.bb index 43ecdb2c42b..88786dc0168 100644 --- a/meta/recipes-devtools/python/python3-numpy_2.5.0.bb +++ b/meta/recipes-devtools/python/python3-numpy_2.5.1.bb @@ -9,9 +9,8 @@ SRCNAME = "numpy" SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${SRCNAME}-${PV}.tar.gz \ file://run-ptest \ - file://0001-python-sysroot.patch \ " -SRC_URI[sha256sum] = "5a129578019311b6e56bdd714250f19b518f7dceeeb8d1af5490f4942d3f891c" +SRC_URI[sha256sum] = "a48a113e6afea91f5608793bafa7ef2ad481fefbda87ec5069f483de61cb9fa3" GITHUB_BASE_URI = "https://github.com/numpy/numpy/releases" UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P\d+(\.\d+)+)$"