From e6076495e9f79d9d70f2f334ef588eb9330e083bcb3843f3faf268fb4b1a6fb8 Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Thu, 7 Mar 2024 01:03:49 +0000 Subject: [PATCH] Accepting request 1155404 from home:mgorse:branches:devel:tools:compiler - Explicitly define PYTHON3_EXECUTABLE, since python 3.11 is being pulled in by cmake in SLE-15-SP6. OBS-URL: https://build.opensuse.org/request/show/1155404 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm17?expand=0&rev=23 --- llvm17.changes | 6 ++++++ llvm17.spec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/llvm17.changes b/llvm17.changes index 040c8e1..041adce 100644 --- a/llvm17.changes +++ b/llvm17.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 6 03:20:24 UTC 2024 - Michael Gorse + +- Explicitly define PYTHON3_EXECUTABLE, since python 3.11 is being + pulled in by cmake in SLE-15-SP6. + ------------------------------------------------------------------- Mon Mar 4 21:29:51 UTC 2024 - Aaron Puchert diff --git a/llvm17.spec b/llvm17.spec index a68f610..1b44df3 100644 --- a/llvm17.spec +++ b/llvm17.spec @@ -967,6 +967,7 @@ avail_mem=$(awk '/MemAvailable/ { print $2 }' /proc/meminfo) %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS:BOOL=OFF \ + -DPython3_EXECUTABLE=%{_bindir}/python3 \ -DLLVM_HOST_TRIPLE=%{host_triple} \ -DLLVM_BUILD_LLVM_DYLIB:BOOL=OFF \ -DLLVM_LINK_LLVM_DYLIB:BOOL=OFF \ @@ -1049,6 +1050,7 @@ export LD_LIBRARY_PATH=%{sourcedir}/build/%{_lib} %cmake \ -DCMAKE_C_COMPILER="%{sourcedir}/stage1/bin/clang" \ -DCMAKE_CXX_COMPILER="%{sourcedir}/stage1/bin/clang++" \ + -DPython3_EXECUTABLE=%{_bindir}/python3 \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DLLVM_HOST_TRIPLE=%{host_triple} \ -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \