summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-04-02 18:02:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-03 11:06:20 +0100
commita6dbc53b4330d3a0bf833adaad2814c6d459f28a (patch)
treec5f289cfb7dec16721bd4e21b3aacefa080bf38a
parent4fabfa60a0ed3a48d62a4a0ea85811d1fc9727cb (diff)
downloadpoky-a6dbc53b4330d3a0bf833adaad2814c6d459f28a.tar.gz
meson: upgrade to 1.7.1
Drop 0001-dependencies-dev-prepend-sysroot-when-searching-for-.patch as this is now upstreamed. Remove the deletion of a .pyc because it uses frozenset(), this bug in Python has been fixed since 3.11[1] [1] https://github.com/python/cpython/commit/51999c960e7fc45feebd629421dec6524a5fc803 (From OE-Core rev: ec524490bfa860a2caf7c3f77924c4dafeb631bf) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/meson/meson/0001-dependencies-dev-prepend-sysroot-when-searching-for-.patch33
-rw-r--r--meta/recipes-devtools/meson/meson_1.7.1.bb (renamed from meta/recipes-devtools/meson/meson_1.7.0.bb)13
2 files changed, 1 insertions, 45 deletions
diff --git a/meta/recipes-devtools/meson/meson/0001-dependencies-dev-prepend-sysroot-when-searching-for-.patch b/meta/recipes-devtools/meson/meson/0001-dependencies-dev-prepend-sysroot-when-searching-for-.patch
deleted file mode 100644
index b6579c824e..0000000000
--- a/meta/recipes-devtools/meson/meson/0001-dependencies-dev-prepend-sysroot-when-searching-for-.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From 17117c2732c33ebec39e3fec2ecd5a3515dc7d71 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Wed, 20 Nov 2024 13:09:38 +0000
4Subject: [PATCH] dependencies/dev: prepend sysroot when searching for GTest
5 sources
6
7Don't hardcode paths in /usr when looking for the GTest sources, as in
8cross-compile or other builds with a sysroot this will find the host
9sources, not ones that we want to use in the sysroot.
10
11Closes #12690.
12
13Upstream-Status: Backport [17117c2732c33ebec39e3fec2ecd5a3515dc7d71]
14Signed-off-by: Ross Burton <ross.burton@arm.com>
15---
16 mesonbuild/dependencies/dev.py | 4 +++-
17 1 file changed, 3 insertions(+), 1 deletion(-)
18
19diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py
20index 2725a7bb4e88..0c8886b81a04 100644
21--- a/mesonbuild/dependencies/dev.py
22+++ b/mesonbuild/dependencies/dev.py
23@@ -56,7 +56,9 @@ class GTestDependencySystem(SystemDependency):
24 def __init__(self, name: str, environment: 'Environment', kwargs: T.Dict[str, T.Any]) -> None:
25 super().__init__(name, environment, kwargs, language='cpp')
26 self.main = kwargs.get('main', False)
27- self.src_dirs = ['/usr/src/gtest/src', '/usr/src/googletest/googletest/src']
28+
29+ sysroot = environment.properties[self.for_machine].get_sys_root() or ''
30+ self.src_dirs = [sysroot + '/usr/src/gtest/src', sysroot + '/usr/src/googletest/googletest/src']
31 if not self._add_sub_dependency(threads_factory(environment, self.for_machine, {})):
32 self.is_found = False
33 return
diff --git a/meta/recipes-devtools/meson/meson_1.7.0.bb b/meta/recipes-devtools/meson/meson_1.7.1.bb
index 44872a5f7b..d83a5efbf5 100644
--- a/meta/recipes-devtools/meson/meson_1.7.0.bb
+++ b/meta/recipes-devtools/meson/meson_1.7.1.bb
@@ -14,9 +14,8 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/meson-${PV}.tar.gz \
14 file://0001-python-module-do-not-manipulate-the-environment-when.patch \ 14 file://0001-python-module-do-not-manipulate-the-environment-when.patch \
15 file://0001-Make-CPU-family-warnings-fatal.patch \ 15 file://0001-Make-CPU-family-warnings-fatal.patch \
16 file://0002-Support-building-allarch-recipes-again.patch \ 16 file://0002-Support-building-allarch-recipes-again.patch \
17 file://0001-dependencies-dev-prepend-sysroot-when-searching-for-.patch \
18 " 17 "
19SRC_URI[sha256sum] = "08efbe84803eed07f863b05092d653a9d348f7038761d900412fddf56deb0284" 18SRC_URI[sha256sum] = "155780a5be87f6dd7f427ad8bcbf0f2b2c5f62ee5fdacca7caa9de8439a24b89"
20UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)$" 19UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)$"
21 20
22inherit python_setuptools_build_meta github-releases 21inherit python_setuptools_build_meta github-releases
@@ -25,16 +24,6 @@ RDEPENDS:${PN} = "ninja python3-modules python3-pkg-resources"
25 24
26FILES:${PN} += "${datadir}/polkit-1" 25FILES:${PN} += "${datadir}/polkit-1"
27 26
28do_install:append () {
29 # As per the same issue in the python recipe itself:
30 # Unfortunately the following pyc files are non-deterministc due to 'frozenset'
31 # being written without strict ordering, even with PYTHONHASHSEED = 0
32 # Upstream is discussing ways to solve the issue properly, until then let's
33 # just not install the problematic files.
34 # More info: http://benno.id.au/blog/2013/01/15/python-determinism
35 rm -f ${D}${libdir}/python*/site-packages/mesonbuild/dependencies/__pycache__/mpi.cpython*
36}
37
38BBCLASSEXTEND = "native nativesdk" 27BBCLASSEXTEND = "native nativesdk"
39 28
40inherit meson-routines 29inherit meson-routines