summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-09-27 11:41:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-02 11:28:02 +0100
commit1996c092722d20523c86ce3849a5163669430579 (patch)
tree15660cdd82088594229eb4bac6e07a4f454edbf9 /meta
parent7e8ecd48bbf8efad0bc44f656ba016dd264212dd (diff)
downloadpoky-1996c092722d20523c86ce3849a5163669430579.tar.gz
meson: upgrade to 1.9.1
Changes in this release: 751b09390 Bump versions to 1.9.1 for release d0abb2133 Boost python must have a library component. e6732c220 Check for header only Boost libraries. 08429813b get_llvm_tool_names: add llvm 21 f3b383217 docs: fix pre-1.8 order for per-subproject options a2d395498 Revert "test cases: do not pass global option on command line" d0f82544e Revert "tests: skip test common/223 in the -Ddefault_library=... jobs" 2abdb2f0b options: put back in place 1.7 ordering of opt=value vs subp:opt=value 83cbc65c2 Fix not passing user option args to scan-build build e746db0b4 Document internal dep support in pkgconfig.generate `requires` arg f6ab732b7 msetup: not-found subprojects do not have known options 5d21e653a utils: make .wraplock optional d1e219cb8 Fix Cygwin test failure. 0fc77e2d7 coredata: do not write None to cmd_line.txt 533ba5cb3 options: do not raise exception for unknown options in -U command ae822d1d4 test cases/common/32 has header: disable undef with libcxx c58f0d951 rustdoc: skip --crate-type option b8e0e9d3d fix transient failure on rust/12 bindgen 75cf757b7 coredata: check for per-subproject compiler and linker arguments a747c4ea8 coredata: check for per-subproject compiler options Drop the two backported patches. (From OE-Core rev: 3acddf6cae1449591227b2f07fed13195cad0b82) 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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/meson/meson/0001-Check-for-header-only-Boost-libraries.patch58
-rw-r--r--meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch6
-rw-r--r--meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch8
-rw-r--r--meta/recipes-devtools/meson/meson/0002-Boost-python-must-have-a-library-component.patch34
-rw-r--r--meta/recipes-devtools/meson/meson/0002-Support-building-allarch-recipes-again.patch2
-rw-r--r--meta/recipes-devtools/meson/meson_1.9.1.bb (renamed from meta/recipes-devtools/meson/meson_1.9.0.bb)4
6 files changed, 9 insertions, 103 deletions
diff --git a/meta/recipes-devtools/meson/meson/0001-Check-for-header-only-Boost-libraries.patch b/meta/recipes-devtools/meson/meson/0001-Check-for-header-only-Boost-libraries.patch
deleted file mode 100644
index 3d2810aff9..0000000000
--- a/meta/recipes-devtools/meson/meson/0001-Check-for-header-only-Boost-libraries.patch
+++ /dev/null
@@ -1,58 +0,0 @@
1From f16897135c394d36656da0078613864076300e07 Mon Sep 17 00:00:00 2001
2From: Jussi Pakkanen <jussi.pakkanen@mailbox.org>
3Date: Fri, 29 Aug 2025 14:57:06 +0300
4Subject: [PATCH] Check for header only Boost libraries.
5
6Upstream-Status: Backport [https://github.com/mesonbuild/meson/commit/6a9a81619c139d0f6ae3d265f7366e61615d92a1]
7Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
8---
9 mesonbuild/dependencies/boost.py | 22 ++++++++++++++++++++--
10 1 file changed, 20 insertions(+), 2 deletions(-)
11
12diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py
13index 662f985..e153e8f 100644
14--- a/mesonbuild/dependencies/boost.py
15+++ b/mesonbuild/dependencies/boost.py
16@@ -452,6 +452,10 @@ class BoostDependency(SystemDependency):
17 break
18 libs = sorted(set(libs))
19
20+ any_libs_found = len(libs) > 0
21+ if not any_libs_found:
22+ return False
23+
24 modules = ['boost_' + x for x in self.modules]
25 for inc in inc_dirs:
26 mlog.debug(f' - found boost {inc.version} include dir: {inc.path}')
27@@ -462,7 +466,7 @@ class BoostDependency(SystemDependency):
28 mlog.debug(f' - {j}')
29
30 # 3. Select the libraries matching the requested modules
31- not_found: T.List[str] = []
32+ not_found_as_libs: T.List[str] = []
33 selected_modules: T.List[BoostLibraryFile] = []
34 for mod in modules:
35 found = False
36@@ -472,7 +476,21 @@ class BoostDependency(SystemDependency):
37 found = True
38 break
39 if not found:
40- not_found += [mod]
41+ not_found_as_libs += [mod]
42+
43+ # If a lib is not found, but an include directory exists,
44+ # assume it is a header only module.
45+ not_found: T.List[str] = []
46+ for boost_modulename in not_found_as_libs:
47+ assert boost_modulename.startswith('boost_')
48+ include_subdir = boost_modulename.replace('boost_', 'boost/', 1)
49+ headerdir_found = False
50+ for inc_dir in inc_dirs:
51+ if (inc_dir.path / include_subdir).is_dir():
52+ headerdir_found = True
53+ break
54+ if not headerdir_found:
55+ not_found.append(boost_modulename)
56
57 # log the result
58 mlog.debug(' - found:')
diff --git a/meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch b/meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch
index 98ca08c2ca..46754bf508 100644
--- a/meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch
+++ b/meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch
@@ -1,4 +1,4 @@
1From c01e5e29953e0302988f2d60adc50ebfa0e5d670 Mon Sep 17 00:00:00 2001 1From 9854e557b77612afb095e9868bb7cba12bc1b1cb Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com> 2From: Ross Burton <ross.burton@intel.com>
3Date: Tue, 3 Jul 2018 13:59:09 +0100 3Date: Tue, 3 Jul 2018 13:59:09 +0100
4Subject: [PATCH] Make CPU family warnings fatal 4Subject: [PATCH] Make CPU family warnings fatal
@@ -26,10 +26,10 @@ index 43fad0c..27be871 100644
26 endian = literal['endian'] 26 endian = literal['endian']
27 if endian not in ('little', 'big'): 27 if endian not in ('little', 'big'):
28diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py 28diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
29index 2a9cf16..6b2bd6b 100644 29index 489ef50..1567efa 100644
30--- a/mesonbuild/environment.py 30--- a/mesonbuild/environment.py
31+++ b/mesonbuild/environment.py 31+++ b/mesonbuild/environment.py
32@@ -436,10 +436,8 @@ def detect_cpu_family(compilers: CompilersDict) -> str: 32@@ -438,10 +438,8 @@ def detect_cpu_family(compilers: CompilersDict) -> str:
33 if compilers and not any_compiler_has_define(compilers, '__mips64'): 33 if compilers and not any_compiler_has_define(compilers, '__mips64'):
34 trial = 'mips' 34 trial = 'mips'
35 35
diff --git a/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch b/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
index f654447013..c1b8293593 100644
--- a/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
+++ b/meta/recipes-devtools/meson/meson/0001-python-module-do-not-manipulate-the-environment-when.patch
@@ -1,4 +1,4 @@
1From 6c3734f533ee7ad493188c8fc17bb1c65b65f0bd Mon Sep 17 00:00:00 2001 1From c0ffc404415a52bfa3358e32ecd17f064a241b38 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 19 Nov 2018 14:24:26 +0100 3Date: Mon, 19 Nov 2018 14:24:26 +0100
4Subject: [PATCH] python module: do not manipulate the environment when calling 4Subject: [PATCH] python module: do not manipulate the environment when calling
@@ -12,10 +12,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12 1 file changed, 1 insertion(+), 5 deletions(-) 12 1 file changed, 1 insertion(+), 5 deletions(-)
13 13
14diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py 14diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
15index ab040b5..a34b271 100644 15index b028d9f..3d7cd9b 100644
16--- a/mesonbuild/dependencies/python.py 16--- a/mesonbuild/dependencies/python.py
17+++ b/mesonbuild/dependencies/python.py 17+++ b/mesonbuild/dependencies/python.py
18@@ -412,9 +412,6 @@ def python_factory(env: 'Environment', for_machine: 'MachineChoice', 18@@ -418,9 +418,6 @@ def python_factory(env: 'Environment', for_machine: 'MachineChoice',
19 empty.name = 'python' 19 empty.name = 'python'
20 return empty 20 return empty
21 21
@@ -25,7 +25,7 @@ index ab040b5..a34b271 100644
25 try: 25 try:
26 return PythonPkgConfigDependency(name, env, kwargs, installation, True) 26 return PythonPkgConfigDependency(name, env, kwargs, installation, True)
27 finally: 27 finally:
28@@ -423,8 +420,7 @@ def python_factory(env: 'Environment', for_machine: 'MachineChoice', 28@@ -429,8 +426,7 @@ def python_factory(env: 'Environment', for_machine: 'MachineChoice',
29 os.environ[name] = value 29 os.environ[name] = value
30 elif name in os.environ: 30 elif name in os.environ:
31 del os.environ[name] 31 del os.environ[name]
diff --git a/meta/recipes-devtools/meson/meson/0002-Boost-python-must-have-a-library-component.patch b/meta/recipes-devtools/meson/meson/0002-Boost-python-must-have-a-library-component.patch
deleted file mode 100644
index c03c47534e..0000000000
--- a/meta/recipes-devtools/meson/meson/0002-Boost-python-must-have-a-library-component.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From d0644d543f4df39cf2ba14337000ee019cb20b6d Mon Sep 17 00:00:00 2001
2From: Jussi Pakkanen <jussi.pakkanen@mailbox.org>
3Date: Fri, 29 Aug 2025 22:51:48 +0300
4Subject: [PATCH] Boost python must have a library component.
5
6Upstream-Status: Backport [https://github.com/mesonbuild/meson/commit/80917ca8c1a5af499cc6e004ad5d5a050da9045e]
7Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
8---
9 mesonbuild/dependencies/boost.py | 5 +++++
10 1 file changed, 5 insertions(+)
11
12diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py
13index e153e8f..fdb35d4 100644
14--- a/mesonbuild/dependencies/boost.py
15+++ b/mesonbuild/dependencies/boost.py
16@@ -440,6 +440,8 @@ class BoostDependency(SystemDependency):
17 mlog.debug(' - potential library dirs: {}'.format([x.as_posix() for x in lib_dirs]))
18 mlog.debug(' - potential include dirs: {}'.format([x.path.as_posix() for x in inc_dirs]))
19
20+ must_have_library = ['boost_python']
21+
22 # 2. Find all boost libraries
23 libs: T.List[BoostLibraryFile] = []
24 for i in lib_dirs:
25@@ -483,6 +485,9 @@ class BoostDependency(SystemDependency):
26 not_found: T.List[str] = []
27 for boost_modulename in not_found_as_libs:
28 assert boost_modulename.startswith('boost_')
29+ if boost_modulename in must_have_library:
30+ not_found.append(boost_modulename)
31+ continue
32 include_subdir = boost_modulename.replace('boost_', 'boost/', 1)
33 headerdir_found = False
34 for inc_dir in inc_dirs:
diff --git a/meta/recipes-devtools/meson/meson/0002-Support-building-allarch-recipes-again.patch b/meta/recipes-devtools/meson/meson/0002-Support-building-allarch-recipes-again.patch
index ed35498c30..2e294b5b7f 100644
--- a/meta/recipes-devtools/meson/meson/0002-Support-building-allarch-recipes-again.patch
+++ b/meta/recipes-devtools/meson/meson/0002-Support-building-allarch-recipes-again.patch
@@ -1,4 +1,4 @@
1From e123195e5990c3071385defd96dfab1211e98c08 Mon Sep 17 00:00:00 2001 1From fac479734d7f6e04eba71c8193623465d9eb0228 Mon Sep 17 00:00:00 2001
2From: Peter Kjellerstedt <pkj@axis.com> 2From: Peter Kjellerstedt <pkj@axis.com>
3Date: Thu, 26 Jul 2018 16:32:49 +0200 3Date: Thu, 26 Jul 2018 16:32:49 +0200
4Subject: [PATCH] Support building allarch recipes again 4Subject: [PATCH] Support building allarch recipes again
diff --git a/meta/recipes-devtools/meson/meson_1.9.0.bb b/meta/recipes-devtools/meson/meson_1.9.1.bb
index 10ac7d9697..4738484bbb 100644
--- a/meta/recipes-devtools/meson/meson_1.9.0.bb
+++ b/meta/recipes-devtools/meson/meson_1.9.1.bb
@@ -14,10 +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-Check-for-header-only-Boost-libraries.patch \
18 file://0002-Boost-python-must-have-a-library-component.patch \
19 " 17 "
20SRC_URI[sha256sum] = "cd27277649b5ed50d19875031de516e270b22e890d9db65ed9af57d18ebc498d" 18SRC_URI[sha256sum] = "4e076606f2afff7881d195574bddcd8d89286f35a17b4977a216f535dc0c74ac"
21UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)$" 19UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)$"
22 20
23inherit python_setuptools_build_meta github-releases 21inherit python_setuptools_build_meta github-releases