Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ruby4.0 for openSUSE:Factory checked in at 2026-10-29 18:18:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby4.0 (Old) and /work/SRC/openSUSE:Factory/.ruby4.0.new.1255 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby4.0" Thu Oct 29 18:18:18 2026 rev:14 rq:1393474 version:4.0.9 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby4.0/ruby4.0.changes 2026-10-23 20:22:48.669784466 +0200 +++ /work/SRC/openSUSE:Factory/.ruby4.0.new.1255/ruby4.0.changes 2026-10-29 18:18:23.428772159 +0100 @@ -1,0 +2,9 @@ +Wed Oct 28 16:17:49 UTC 2026 - Eduardo Navarro <[email protected]> + +- Set the alternative names inside the loop in %post and %preun. + They were set before it, while $bin was still empty, so without + libalternatives /usr/bin/.ruby4.0 was registered instead of the + versioned alternatives (bundle.ruby4.0, rake.ruby4.0, ...), and + their symlinks dangled. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby4.0.spec ++++++ --- /var/tmp/diff_new_pack.gPJa28/_old 2026-10-29 18:18:25.013838578 +0100 +++ /var/tmp/diff_new_pack.gPJa28/_new 2026-10-29 18:18:25.020838872 +0100 @@ -458,9 +458,9 @@ %if %{without alts} %post -full_bin_name="${bin}.ruby%{rb_binary_suffix}" -ruby_versioned_name="${bin}%{rb_binary_suffix}" for bin in %{ua_binaries}; do + full_bin_name="${bin}.ruby%{rb_binary_suffix}" + ruby_versioned_name="${bin}%{rb_binary_suffix}" %{_sbindir}/update-alternatives --install \ %{_bindir}/$bin $bin %{_bindir}/$bin.ruby%{rb_binary_suffix} %{rb_ua_weight} %{_sbindir}/update-alternatives --install \ @@ -468,10 +468,10 @@ done %preun -full_bin_name="${bin}.ruby%{rb_binary_suffix}" -ruby_versioned_name="${bin}%{rb_binary_suffix}" if [ "$1" = 0 ] ; then for bin in %{ua_binaries}; do + full_bin_name="${bin}.ruby%{rb_binary_suffix}" + ruby_versioned_name="${bin}%{rb_binary_suffix}" %{_sbindir}/update-alternatives --remove $bin %{_bindir}/$bin.ruby%{rb_binary_suffix} %{_sbindir}/update-alternatives --remove ${ruby_versioned_name} %{_bindir}/$bin.ruby%{rb_binary_suffix} done
