Accepting request 1157064 from home:aaronpuchert:llvm-next

- Add get_llvm_tool_names-llvm18.patch to accept LLVM 18.1.

OBS-URL: https://build.opensuse.org/request/show/1157064
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=279
This commit is contained in:
Dominique Leuenberger 2024-03-12 11:23:03 +00:00 committed by Git OBS Bridge
parent b435cbc06a
commit 44ab067d92
3 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,14 @@
Similar to commit 67afddbf431140c1ee064bf79a2fa5a95575488e with title
"environment: Add LLVM 18 support to get_llvm_tool_names()", but with
minor version following the upstream versioning change.
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -188,6 +188,7 @@ def get_llvm_tool_names(tool: str) -> T.List[str]:
# unless it becomes a stable release.
suffixes = [
'', # base (no suffix)
+ '-18.1', '181',
'-17', '17',
'-16', '16',
'-15', '15',

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 11 22:48:56 UTC 2024 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Add get_llvm_tool_names-llvm18.patch to accept LLVM 18.1.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 14 07:42:56 UTC 2024 - ecsos <ecsos@opensuse.org> Wed Feb 14 07:42:56 UTC 2024 - ecsos <ecsos@opensuse.org>

View File

@ -50,6 +50,8 @@ Patch0: meson-test-installed-bin.patch
Patch1: extend-test-timeout-on-qemu-builds.patch Patch1: extend-test-timeout-on-qemu-builds.patch
# PATCH-FIX-OPENSUSE meson-distutils.patch -- meson is ring0 and therefor setuptools is not available # PATCH-FIX-OPENSUSE meson-distutils.patch -- meson is ring0 and therefor setuptools is not available
Patch2: meson-distutils.patch Patch2: meson-distutils.patch
# PATCH-FIX-UPSTREAM get_llvm_tool_names-llvm18.patch -- Accept LLVM 18.1.
Patch3: get_llvm_tool_names-llvm18.patch
BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module base >= 3.7}
BuildRequires: fdupes BuildRequires: fdupes
@ -69,7 +71,7 @@ ExclusiveArch: x86_64
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: bison BuildRequires: bison
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000 %if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
BuildRequires: clang17 >= 15 BuildRequires: clang17
%else %else
BuildRequires: clang >= 15 BuildRequires: clang >= 15
%endif %endif
@ -185,6 +187,7 @@ Vim/NeoVim.
%if !%{with setuptools} %if !%{with setuptools}
%patch -P 2 -p1 %patch -P 2 -p1
%endif %endif
%patch -P 3 -p1
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000 %if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000
# AddressSanitizer fails here because of ulimit. # AddressSanitizer fails here because of ulimit.