]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
python3-numpy: backport a Meson patch to fix pkg-config lookups
authorRoss Burton <ross.burton@arm.com>
Mon, 9 Feb 2026 12:56:21 +0000 (12:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Feb 2026 17:27:28 +0000 (17:27 +0000)
commit7ecbb214fa8f6388be38c3323f3dba73e9049404
tree4b5fd3cbc34e45fd062a555d84bae3e6335a5db0
parentd4bb6a4e452b783a6a317ca2e4c14e843cfe0400
python3-numpy: backport a Meson patch to fix pkg-config lookups

When Meson uses pkg-config to introspect the Python install it resets
PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR to the location that the running
python3 says is the library directory. 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.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-numpy/0001-python-sysroot.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3-numpy_2.3.5.bb