Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-bootstrap for openSUSE:Factory checked in at 2026-11-27 19:44:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-bootstrap (Old) and /work/SRC/openSUSE:Factory/.ghc-bootstrap.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-bootstrap" Fri Nov 27 19:44:50 2026 rev:37 rq:1401143 version:9.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-bootstrap/ghc-bootstrap.changes 2025-11-03 18:56:06.684088756 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-bootstrap.new.1340718/ghc-bootstrap.changes 2026-11-27 19:49:03.578118959 +0100 @@ -1,0 +2,13 @@ +Wed Nov 25 07:05:25 UTC 2026 - Peter Simons <[email protected]> + +- Fix the LLVM dependencies: + * Use llvm15 on Leap 16.x and llvm18 on Tumbleweed. The previous + 'suse_version == 1600' test sent Leap 16.1 to the Tumbleweed branch, + which asked for llvm18. Leap 16.1 doesn't have it. + * Require clang/llvm only on s390x, the only architecture where + ghc 9.10.1 uses the LLVM backend. + * Point the llc, opt, and llvm-as commands in the settings file at the + versioned binaries. The unversioned names don't exist in the build + environment, so the s390x builds failed with 'could not execute: opt'. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-bootstrap.spec ++++++ --- /var/tmp/diff_new_pack.kNEYVq/_old 2026-11-27 19:49:07.013264130 +0100 +++ /var/tmp/diff_new_pack.kNEYVq/_new 2026-11-27 19:49:07.016264257 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-bootstrap # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,12 @@ # -%if 0%{suse_version} == 1600 -%global llvm_major 15 -%else +# ghc 9.10.1 supports LLVM 13 to 15. Leap 16.x ships llvm15. Tumbleweed has +# nothing older than llvm18, which works but triggers a version warning. +%if 0%{?suse_version} >= 1690 %global llvm_major 18 +%else +%global llvm_major 15 %endif %ifarch ppc64le @@ -89,10 +91,13 @@ %ifnarch s390x BuildRequires: libnuma-devel %endif -Requires: clang%{llvm_major} Requires: libffi-devel Requires: libnuma-devel +%ifarch s390x +# ghc 9.10.1 has no native code generator on s390x and needs LLVM. +Requires: clang%{llvm_major} Requires: llvm%{llvm_major} +%endif %description This package contains a binary distribution of "The Glorious Glasgow @@ -128,6 +133,17 @@ chrpath -d $i done +# Refer to the versioned LLVM tools explicitly. The binary distribution uses +# the unversioned names, which our llvmNN packages don't reliably provide. +sed -i \ + -e 's|("LLVM llc command", "[^"]*")|("LLVM llc command", "%{_bindir}/llc-%{llvm_major}")|' \ + -e 's|("LLVM opt command", "[^"]*")|("LLVM opt command", "%{_bindir}/opt-%{llvm_major}")|' \ + -e 's|("LLVM llvm-as command", "[^"]*")|("LLVM llvm-as command", "%{_bindir}/clang-%{llvm_major}")|' \ + %{buildroot}/opt/lib/ghc-%{version}/lib/settings +grep -q '"%{_bindir}/llc-%{llvm_major}"' %{buildroot}/opt/lib/ghc-%{version}/lib/settings +grep -q '"%{_bindir}/opt-%{llvm_major}"' %{buildroot}/opt/lib/ghc-%{version}/lib/settings +grep -q '"%{_bindir}/clang-%{llvm_major}"' %{buildroot}/opt/lib/ghc-%{version}/lib/settings + rm %{buildroot}/opt/lib/ghc-%{version}/lib/package.conf.d/.stamp (cd %{buildroot}/opt/lib/ghc-%{version}/lib/package.conf.d/ for i in *.conf; do
