Script 'mail_helper' called by obssrc
Hello community,

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

Package is "go1.23"

Fri Jun 12 19:27:25 2026 rev:18 rq:1358788 version:1.23.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/go1.23/go1.23.changes    2026-06-09 
14:25:38.941826061 +0200
+++ /work/SRC/openSUSE:Factory/.go1.23.new.1981/go1.23.changes  2026-06-12 
19:28:23.200355425 +0200
@@ -1,0 +2,7 @@
+Thu Jun 11 19:27:58 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.23.spec ++++++
--- /var/tmp/diff_new_pack.S6FJgI/_old  2026-06-12 19:28:24.436407144 +0200
+++ /var/tmp/diff_new_pack.S6FJgI/_new  2026-06-12 19:28:24.440407312 +0200
@@ -55,19 +55,13 @@
 # which denotes its priority and numbered as go_api sans dot separator
 %define go_libalternatives 123
 
-# 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
+# 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
 
@@ -154,11 +148,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
 
@@ -421,25 +416,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