Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mold for openSUSE:Factory checked in 
at 2026-03-14 22:21:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mold (Old)
 and      /work/SRC/openSUSE:Factory/.mold.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mold"

Sat Mar 14 22:21:39 2026 rev:61 rq:1338709 version:2.40.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/mold/mold.changes        2025-06-10 
09:09:27.389780501 +0200
+++ /work/SRC/openSUSE:Factory/.mold.new.8177/mold.changes      2026-03-14 
22:22:37.069683895 +0100
@@ -1,0 +2,5 @@
+Fri Mar 13 08:42:06 UTC 2026 - Richard Biener <[email protected]>
+
+- Remove update-alternative usage, prepare migration to libalternatives
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ mold.spec ++++++
--- /var/tmp/diff_new_pack.SJ1wGT/_old  2026-03-14 22:22:37.681709248 +0100
+++ /var/tmp/diff_new_pack.SJ1wGT/_new  2026-03-14 22:22:37.685709414 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mold
 #
-# Copyright (c) 2025 SUSE LLC
+# 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
@@ -48,7 +48,10 @@
 %endif
 BuildRequires:  zlib-devel
 BuildRequires:  zstd
-PreReq:         update-alternatives
+OrderWithRequires(pre): update-alternatives
+Suggests:       update-alternatives
+BuildRequires:  alts
+Requires:       alts
 
 %if %{suse_version} < 1600
 %define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF 
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
@@ -76,6 +79,10 @@
 
 %install
 %cmake_install
+mkdir -p %{buildroot}%{_datadir}/libalternatives/ld
+cat > %{buildroot}%{_datadir}/libalternatives/ld/5.conf <<EOF
+binary=%{_bindir}/ld.mold
+EOF
 
 %check
 %if %{suse_version} < 1550
@@ -85,22 +92,14 @@
 %endif
 %ctest
 
-%post
-"%_sbindir/update-alternatives" --install \
-       "%_bindir/ld" ld "%_bindir/ld.mold" 1
-
 %pre
-if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
-       "%_sbindir/update-alternatives" --remove ld "%_bindir/ld.mold";
-fi;
-
-%postun
-if [ ! -f %{_bindir}/lld ] ; then
-    "%{_sbindir}/update-alternatives" --remove ld "%{_bindir}/ld.mold"
+if [ $1 -eq 2 ] && [ -f %{_sbindir}/update-alternatives ] && [ -f 
%{_sysconfdir}/alternatives/ld ] ; then
+  "%_sbindir/update-alternatives" --remove ld "%_bindir/ld.mold"
 fi
 
 %files
-%ghost %_sysconfdir/alternatives/ld
+%dir %{_datadir}/libalternatives/ld
+%{_datadir}/libalternatives/ld/5.conf
 %{_bindir}/mold
 %{_bindir}/ld.mold
 %dir %{_libdir}/mold

Reply via email to