From 651588ceaa1cfff181906b6401740b4cee8058bebc9236d495cc60142e98abaf Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Sun, 10 Mar 2024 13:45:51 +0000 Subject: [PATCH] - Disable LLDB Python bindings on SLE/Leap. They now require Swig 4 which isn't available there. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm18?expand=0&rev=3 --- llvm18.changes | 2 ++ llvm18.spec | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/llvm18.changes b/llvm18.changes index e8246d5..7c009cf 100644 --- a/llvm18.changes +++ b/llvm18.changes @@ -30,6 +30,8 @@ Sat Mar 9 22:37:29 UTC 2024 - Aaron Puchert * llvm-fix-cov-test-i586.patch - Restructure version macros in specfile for new versioning scheme. - Fix packaging of ld.lld as ld alternative. +- Disable LLDB Python bindings on SLE/Leap. They now require Swig 4 + which isn't available there. ------------------------------------------------------------------- Wed Mar 6 03:20:24 UTC 2024 - Michael Gorse diff --git a/llvm18.spec b/llvm18.spec index 37a6c78..65820c5 100644 --- a/llvm18.spec +++ b/llvm18.spec @@ -49,8 +49,13 @@ %ifarch aarch64 x86_64 %bcond_without lldb +%if %{suse_version} > 1600 %bcond_without lldb_python %else +# LLDB Python bindings require Swig 4, which SLE/Leap don't have. +%bcond_with lldb_python +%endif +%else %bcond_with lldb %bcond_with lldb_python %endif