Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package go1.25 for openSUSE:Factory checked 
in at 2026-06-12 19:27:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/go1.25 (Old)
 and      /work/SRC/openSUSE:Factory/.go1.25.new.1981 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "go1.25"

Fri Jun 12 19:27:17 2026 rev:20 rq:1358777 version:1.25.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/go1.25/go1.25.changes    2026-06-09 
14:25:34.093625666 +0200
+++ /work/SRC/openSUSE:Factory/.go1.25.new.1981/go1.25.changes  2026-06-12 
19:28:10.091806936 +0200
@@ -1,0 +2,7 @@
+Thu Jun 11 19:27:01 UTC 2026 - Martin Schreiner <[email protected]>
+
+- Use libalternatives only on suse_version >= 1610 and keep
+  update-alternatives support for older distributions.
+- Drop the update-alternatives migration path for libalternatives builds. 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ go1.25.spec ++++++
--- /var/tmp/diff_new_pack.pWsBMk/_old  2026-06-12 19:28:10.911841249 +0200
+++ /var/tmp/diff_new_pack.pWsBMk/_new  2026-06-12 19:28:10.911841249 +0200
@@ -53,19 +53,13 @@
 # which denotes its priority
 %define go_libalternatives 125
 
-# with_libalternatives denotes whether or not libalternatives should be used
-# if it is not used, then update-alternatives is used instead
-%define with_libalternatives 0
-# Enable libalternatives for SLE16.1+ and Tumbleweed
-%if 0%{suse_version} >= 1610
+# Use libalternatives for SLE 16.1+ and Tumbleweed.
+# Older distributions keep using update-alternatives, as before.
+%if 0%{?suse_version} >= 1610
 %define with_libalternatives 1
-%endif
-
-# with_update_alternatives is automatically defined, based on the
-# value of with_libalternatives
-%if %{with_libalternatives}
 %define with_update_alternatives 0
 %else
+%define with_libalternatives 0
 %define with_update_alternatives 1
 %endif
 
@@ -159,11 +153,12 @@
 Obsoletes:      go-emacs <= 1.3.3
 Obsoletes:      go-vim <= 1.3.3
 ExclusiveArch:  %ix86 x86_64 %arm aarch64 ppc64 ppc64le s390x riscv64 
loongarch64
-Requires(post): update-alternatives
 %if %{with_libalternatives}
 BuildRequires:  alts
 Requires:       alts
-%else
+%endif
+%if %{with_update_alternatives}
+Requires(post): update-alternatives
 Requires(postun): update-alternatives
 %endif
 
@@ -444,25 +439,14 @@
 
 %fdupes -s %{buildroot}%{_prefix}
 
-%post
 %if %{with_update_alternatives}
+%post
 update-alternatives \
   --install %{_bindir}/go go %{_libdir}/go/%{go_label}/bin/go $((20+$(echo 
%{go_label} | cut -d. -f2))) \
   --slave %{_bindir}/gofmt gofmt %{_libdir}/go/%{go_label}/bin/gofmt \
   --slave %{_sysconfdir}/gdbinit.d/go.gdb go.gdb 
%{_libdir}/go/%{go_label}/bin/gdbinit.d/go.gdb
-%endif
-
-# this is invoked when a user is migrating from update-alternatives to
-# libalternatives, hence why we always require update-alternatives
-# during %post
-%if %{with_libalternatives}
-if [ $1 -eq 0 ] ; then
-       update-alternatives --remove go %{_libdir}/go/%{go_label}/bin/go
-fi
-%endif
 
 %postun
-%if %{with_update_alternatives}
 if [ $1 -eq 0 ] ; then
        update-alternatives --remove go %{_libdir}/go/%{go_label}/bin/go
 fi

Reply via email to