Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ispc for openSUSE:Factory checked in 
at 2026-07-17 18:49:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ispc (Old)
 and      /work/SRC/openSUSE:Factory/.ispc.new.24530 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ispc"

Fri Jul 17 18:49:17 2026 rev:19 rq:1366335 version:1.31.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ispc/ispc.changes        2026-07-15 
16:58:39.849153715 +0200
+++ /work/SRC/openSUSE:Factory/.ispc.new.24530/ispc.changes     2026-07-17 
18:50:31.711382283 +0200
@@ -1,0 +2,8 @@
+Thu Jul 16 21:23:11 UTC 2026 - Marcus Rueckert <[email protected]>
+
+- Prepare for building with locked llvm/clang versions similar to
+  the force gcc version
+
+  https://nordisch.org/posts/rpm-spec-files-conditionals-and-forcing/
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ispc.spec ++++++
--- /var/tmp/diff_new_pack.2KqCFH/_old  2026-07-17 18:50:33.831454019 +0200
+++ /var/tmp/diff_new_pack.2KqCFH/_new  2026-07-17 18:50:33.839454290 +0200
@@ -19,6 +19,12 @@
 
 %define libname libispcrt1
 
+%define minimum_llvm_version 20
+
+#if 0%{?suse_version} < 1699
+#define force_llvm_version 21
+#endif
+
 # LLVM is build with OpenMP support only on 64bit archs and x86
 %ifarch aarch64 ppc64 ppc64le %{ix86} x86_64
 %bcond_without openmp_task_model
@@ -37,12 +43,12 @@
 Source1:        series
 Patch1:         skip-tests.patch
 BuildRequires:  bison
-BuildRequires:  clang-devel
+BuildRequires:  clang%{?force_llvm_version}-devel >= %{minimum_llvm_version}
 BuildRequires:  cmake >= 3.13
 BuildRequires:  flex
-BuildRequires:  llvm-devel
+BuildRequires:  llvm%{?force_llvm_version}-devel >= %{minimum_llvm_version}
 %if %{with openmp_task_model}
-BuildRequires:  libomp-devel
+BuildRequires:  libomp%{?force_llvm_version}-devel >= %{minimum_llvm_version}
 %else
 BuildRequires:  tbb-devel
 %endif
@@ -93,9 +99,21 @@
 sed -i -e '/build_ispcrt(STATIC/ s@.*@#\0@' ispcrt/CMakeLists.txt
 
 %build
+%if 0%{?force_llvm_version}
+perl -p -i -e "s:'clang':'clang-%{force_llvm_version}':g; 
s:'clang++':'clang++-%{force_llvm_version}':g" tests/lit-tests/lit.cfg
+perl -p -i -e "s:llvm-dis:llvm-dis-%{force_llvm_version}:g" 
tests/lit-tests/avx10.2dmr-x8.ispc
+%endif
+
 %define _lto_cflags "-flto=thin"
 echo "optflags: %{optflags}"
 %cmake \
+%if 0%{?force_llvm_version}
+        -DCLANG_EXECUTABLE:STRING="clang-%{force_llvm_version}" \
+        -DCLANGPP_EXECUTABLE:STRING="clang++-%{force_llvm_version}" \
+        -DLLVM_AS_EXECUTABLE:STRING="llvm-as-%{force_llvm_version}" \
+        -DCMAKE_C_COMPILER:STRING="clang-%{force_llvm_version}" \
+        -DCMAKE_CXX_COMPILER:STRING="clang++-%{force_llvm_version}" \
+%endif
         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
         -DCMAKE_C_FLAGS:STRING="$CFLAGS %{optflags} -fPIE" \
         -DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS %{optflags} -fPIE" \

Reply via email to