Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package drbd-utils for openSUSE:Factory 
checked in at 2023-03-24 15:20:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/drbd-utils (Old)
 and      /work/SRC/openSUSE:Factory/.drbd-utils.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "drbd-utils"

Fri Mar 24 15:20:59 2023 rev:54 rq:1073917 version:9.19.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/drbd-utils/drbd-utils.changes    2023-03-13 
12:41:27.895907139 +0100
+++ /work/SRC/openSUSE:Factory/.drbd-utils.new.31432/drbd-utils.changes 
2023-03-24 15:21:09.871120520 +0100
@@ -1,0 +2,6 @@
+Thu Mar 23 06:22:17 UTC 2023 - Nicholas Yang <[email protected]>
+
+- bsc#1208922: fails to replace directory /lib/drbd with symlink
+  * modify drbd-utils.spec to manipulate the symlink in %postun and %posttrans 
script
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ drbd-utils.spec ++++++
--- /var/tmp/diff_new_pack.MyCKFK/_old  2023-03-24 15:21:10.447123524 +0100
+++ /var/tmp/diff_new_pack.MyCKFK/_new  2023-03-24 15:21:10.451123545 +0100
@@ -141,20 +141,8 @@
 
 rm -rf %{buildroot}%{libdir}/drbd/crm-*fence-peer.sh     # bsc#1204276
 
-%if 0%{?suse_version} < 1550
-    # create symlink for bsc#1206364
-    rmdir %{buildroot}/lib/drbd
-    ln -sf %{libdir}/drbd %{buildroot}/lib/drbd
-%endif
-
 %pre
 %service_add_pre %{services}
-%if 0%{?suse_version} < 1550
-if [ ! -L /lib/drbd ] && [ -d /lib/drbd ]; then
-    rm -rf /lib/drbd.rpmmoved
-    mv /lib/drbd /lib/drbd.rpmmoved
-fi
-%endif
 
 %post
 %tmpfiles_create %{_tmpfilesdir}/drbd.conf
@@ -178,6 +166,22 @@
 %postun
 %service_del_postun %{services}
 
+%if 0%{?suse_version} < 1550
+if [ -d /lib/drbd ]; then
+  rm -rf /lib/drbd.rpmmoved
+  mv /lib/drbd /lib/drbd.rpmmoved
+elif [ ! -e %{libdir}/drbd ] && [ -L /lib/drbd ]; then
+  rm /lib/drbd
+fi
+%endif
+
+%posttrans
+%if 0%{?suse_version} < 1550
+if [ ! -e /lib/drbd ]; then
+  ln -sf %{libdir}/drbd /lib/drbd
+fi
+%endif
+
 %files -n drbd-utils
 %config(noreplace) %{_sysconfdir}/drbd.conf
 %config(noreplace) %{_sysconfdir}/drbd.d/global_common.conf
@@ -198,11 +202,6 @@
 %dir %{_sysconfdir}/multipath
 %dir %{_sysconfdir}/multipath/conf.d
 %{libdir}/drbd
-%if 0%{?suse_version} < 1550
-    # symlink for bsc#1206364
-    /lib/drbd
-    %ghost /lib/drbd.rpmmoved
-%endif
 %{sbindir}/drbdadm
 %{sbindir}/drbdsetup
 %{sbindir}/drbdmeta

Reply via email to