diff --git a/get_llvm_tool_names-llvm17.patch b/get_llvm_tool_names-llvm17.patch new file mode 100644 index 0000000..559e88f --- /dev/null +++ b/get_llvm_tool_names-llvm17.patch @@ -0,0 +1,22 @@ +From d0b09898c703f6c10ec5a6b2aeace0df2e3570aa Mon Sep 17 00:00:00 2001 +From: Christoph Reiter +Date: Sat, 23 Sep 2023 17:21:43 +0200 +Subject: [PATCH] get_llvm_tool_names: add llvm 17 + +this fixes the "frameworks: 15 llvm" tests with llvm 17 +--- + mesonbuild/environment.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py +index 53cb1206fef..5c7d78b9028 100644 +--- a/mesonbuild/environment.py ++++ b/mesonbuild/environment.py +@@ -157,6 +157,7 @@ def get_llvm_tool_names(tool: str) -> T.List[str]: + # unless it becomes a stable release. + suffixes = [ + '', # base (no suffix) ++ '-17', '17', + '-16', '16', + '-15', '15', + '-14', '14', diff --git a/meson.changes b/meson.changes index 7a366dd..ef6a1e3 100644 --- a/meson.changes +++ b/meson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 23 20:58:26 UTC 2023 - Aaron Puchert + +- Port back get_llvm_tool_names-llvm17.patch to accept LLVM 17. + ------------------------------------------------------------------- Tue Aug 8 14:35:16 UTC 2023 - Dominique Leuenberger diff --git a/meson.spec b/meson.spec index 3afa31d..24f22ee 100644 --- a/meson.spec +++ b/meson.spec @@ -50,6 +50,8 @@ Patch0: meson-test-installed-bin.patch Patch1: extend-test-timeout-on-qemu-builds.patch # PATCH-FIX-OPENSUSE meson-distutils.patch -- meson is ring0 and therefor setuptools is not available Patch2: meson-distutils.patch +# PATCH-FIX-UPSTREAM get_llvm_tool_names-llvm17.patch -- Accept LLVM 17. +Patch3: get_llvm_tool_names-llvm17.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -172,6 +174,7 @@ Vim/NeoVim. %if !%{with setuptools} %patch2 -p1 %endif +%patch3 -p1 %if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000 # AddressSanitizer fails here because of ulimit.