Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cpio for openSUSE:Factory checked in 
at 2025-06-01 21:36:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cpio (Old)
 and      /work/SRC/openSUSE:Factory/.cpio.new.16005 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cpio"

Sun Jun  1 21:36:03 2025 rev:70 rq:1281149 version:2.15

Changes:
--------
--- /work/SRC/openSUSE:Factory/cpio/cpio.changes        2025-03-26 
21:16:16.208724804 +0100
+++ /work/SRC/openSUSE:Factory/.cpio.new.16005/cpio.changes     2025-06-01 
21:36:08.092247749 +0200
@@ -1,0 +2,8 @@
+Thu May 29 05:28:30 UTC 2025 - Martin Schreiner <martin.schrei...@suse.com>
+
+- Migrate away from update-alternatives (bsc#1240092).
+  cpio-mt now conflicts with other providers of /usr/bin/mt.
+- Upon installation of the newer packages, the cpio-mt alternatives
+  are purged from the system.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ cpio.spec ++++++
--- /var/tmp/diff_new_pack.6oZm6j/_old  2025-06-01 21:36:08.872280058 +0200
+++ /var/tmp/diff_new_pack.6oZm6j/_new  2025-06-01 21:36:08.872280058 +0200
@@ -61,8 +61,8 @@
 Group:          Productivity/Archiving/Backup
 Requires:       %{name} = %{version}
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
 Provides:       mt
+Conflicts:      mt
 
 %description mt
 This package includes the 'mt', a local tape drive control program.
@@ -88,9 +88,6 @@
 %install
 mkdir -p %{buildroot}/{usr/bin,bin}
 %make_install
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-ln -sf %{_sysconfdir}/alternatives/mt %{buildroot}%{_bindir}/mt
-ln -sf %{_sysconfdir}/alternatives/mt.1%{ext_man} 
%{buildroot}%{_mandir}/man1/mt.1%{ext_man}
 %if 0%{?suse_version} < 1550
 ln -sf %{_bindir}/cpio %{buildroot}/bin
 %endif
@@ -101,9 +98,9 @@
 make %{?_smp_mflags} check
 
 %post mt
-%{_sbindir}/update-alternatives --force \
-    --install %{_bindir}/mt mt %{_bindir}/gnumt 10 \
-    --slave %{_mandir}/man1/mt.1%{ext_man} mt.1%{ext_man} 
%{_mandir}/man1/gnumt.1%{ext_man}
+if [ ! -f %{_bindir}/gnumt ] ; then
+   "%{_sbindir}/update-alternatives" --remove mt %{_bindir}/gnumt
+fi
 
 %post
 %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
@@ -111,11 +108,6 @@
 %preun
 %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
 
-%postun mt
-if [ ! -f %{_bindir}/gnumt ] ; then
-   "%{_sbindir}/update-alternatives" --remove mt %{_bindir}/gnumt
-fi
-
 %files
 %license COPYING
 %doc NEWS ChangeLog
@@ -131,8 +123,6 @@
 %{_bindir}/gnumt
 %ghost %{_mandir}/man1/mt.1%{ext_man}
 %{_mandir}/man1/gnumt.1%{?ext_man}
-%ghost %{_sysconfdir}/alternatives/mt
-%ghost %{_sysconfdir}/alternatives/mt.1%{ext_man}
 
 %files lang -f %{name}.lang
 

Reply via email to