Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc for openSUSE:Factory checked in 
at 2026-11-27 19:44:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc (Old)
 and      /work/SRC/openSUSE:Factory/.ghc.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc"

Fri Nov 27 19:44:49 2026 rev:123 rq:1401142 version:9.14.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc/ghc.changes  2026-11-24 12:27:25.142963555 
+0100
+++ /work/SRC/openSUSE:Factory/.ghc.new.1340718/ghc.changes     2026-11-27 
19:49:01.673038450 +0100
@@ -1,0 +2,14 @@
+Wed Nov 25 10:37:30 UTC 2026 - Peter Simons <[email protected]>
+
+- Fix the LLVM dependencies:
+  * Use llvm19 on all distributions. It's the newest version ghc 9.14.1
+    supports that Tumbleweed, Leap 16.0, and Leap 16.1 all ship. The
+    previous 'suse_version == 1600' test picked llvm15 on Leap 16.0 and
+    llvm19 everywhere else.
+  * Pass LLC, OPT, and LLVMAS to both configure runs. Before, only the
+    source tree's configure saw LLC and OPT, so the installed settings file
+    referred to whatever unversioned llc, opt, and clang were on the PATH.
+  * Fail the build if the installed settings file doesn't refer to the
+    versioned LLVM tools.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ ghc.spec ++++++
--- /var/tmp/diff_new_pack.wyxk4q/_old  2026-11-27 19:49:03.147100744 +0100
+++ /var/tmp/diff_new_pack.wyxk4q/_new  2026-11-27 19:49:03.154101040 +0100
@@ -17,11 +17,10 @@
 %define full_version 9.14.1
 %define short_version 9.14.1
 
-%if 0%{suse_version} == 1600
-%global llvm_major 15
-%else
+# ghc 9.14.1 supports LLVM 13 to 20. llvm19 is available on Tumbleweed,
+# Leap 16.0 (SLFO), and Leap 16.1 (Backports).
 %global llvm_major 19
-%endif
+%global llvm_tools LLC=%{_bindir}/llc-%{llvm_major} 
OPT=%{_bindir}/opt-%{llvm_major} LLVMAS=%{_bindir}/clang-%{llvm_major}
 
 %ifarch s390x
 %bcond releasebuild 0
@@ -105,6 +104,8 @@
 BuildRequires:  libelf-devel
 BuildRequires:  libffi-devel
 BuildRequires:  libtool
+# Needed on all architectures: configure records the LLVM tool paths in the
+# settings file only if it can run them and they have a supported version.
 BuildRequires:  clang%{llvm_major}
 BuildRequires:  llvm%{llvm_major}
 BuildRequires:  memory-constraints
@@ -296,8 +297,7 @@
 
 export LANG=C.utf8
 export CC=%{_bindir}/gcc
-export LLC=%{_bindir}/llc-%{llvm_major}
-export OPT=%{_bindir}/opt-%{llvm_major}
+export %{llvm_tools}
 export LD=%{_bindir}/ld
 
 autoupdate
@@ -339,10 +339,15 @@
 
 (
 cd _build/bindist/ghc-%{version}-*
-./configure --prefix=%{buildroot}%{ghclibdir} --bindir=%{buildroot}%{_bindir} 
--libdir=%{buildroot}%{_libdir} --mandir=%{buildroot}%{_mandir} 
--docdir=%{buildroot}%{_docdir}/%{name}-%{version}
+./configure --prefix=%{buildroot}%{ghclibdir} --bindir=%{buildroot}%{_bindir} 
--libdir=%{buildroot}%{_libdir} --mandir=%{buildroot}%{_mandir} 
--docdir=%{buildroot}%{_docdir}/%{name}-%{version} %{llvm_tools}
 make install
 )
 
+# Make sure the installed compiler refers to the versioned LLVM tools.
+grep -q '"%{_bindir}/llc-%{llvm_major}"' %{buildroot}%{ghcliblib}/settings
+grep -q '"%{_bindir}/opt-%{llvm_major}"' %{buildroot}%{ghcliblib}/settings
+grep -q '"%{_bindir}/clang-%{llvm_major}"' %{buildroot}%{ghcliblib}/settings
+
 mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
 
 export LD_PATH=$(realpath %{buildroot}%{ghclibplatform} | sed 
"s|^%{buildroot}||")

Reply via email to