Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package go1.26 for openSUSE:Factory checked in at 2026-06-13 18:44:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/go1.26 (Old) and /work/SRC/openSUSE:Factory/.go1.26.new.1981 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "go1.26" Sat Jun 13 18:44:58 2026 rev:12 rq:1358776 version:1.26.4 Changes: -------- --- /work/SRC/openSUSE:Factory/go1.26/go1.26.changes 2026-06-09 14:15:04.915627435 +0200 +++ /work/SRC/openSUSE:Factory/.go1.26.new.1981/go1.26.changes 2026-06-13 18:45:18.348367753 +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.26.spec ++++++ --- /var/tmp/diff_new_pack.emNye4/_old 2026-06-13 18:45:20.776468900 +0200 +++ /var/tmp/diff_new_pack.emNye4/_new 2026-06-13 18:45:20.784469233 +0200 @@ -57,19 +57,13 @@ # which denotes its priority %define go_libalternatives 126 -# 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 @@ -164,11 +158,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 @@ -454,25 +449,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
