On 3/13/20 1:54 PM, Debian Bug Tracking System wrote:


This a possible solution

diff -Naur xfsdump-3.1.9/debian/xfsdump.postinst 
xfsdump-3.1.9+nmu1/debian/xfsdump.postinst
--- xfsdump-3.1.9/debian/xfsdump.postinst       1970-01-01 01:00:00.000000000 
+0100
+++ xfsdump-3.1.9+nmu1/debian/xfsdump.postinst  2020-03-13 13:54:21.000000000 
+0100
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = 'configure' ]; then
+  for file in xfsdump xfsrestore; do
+    if [ ! -e /usr/sbin/$file ]; then
+      ln -s /sbin/$file /usr/sbin/$file
+    fi
+  done
+fi
+
+#DEBHELPER#
diff -Naur xfsdump-3.1.9/debian/xfsdump.postrm 
xfsdump-3.1.9+nmu1/debian/xfsdump.postrm
--- xfsdump-3.1.9/debian/xfsdump.postrm 1970-01-01 01:00:00.000000000 +0100
+++ xfsdump-3.1.9+nmu1/debian/xfsdump.postrm    2020-03-13 13:54:41.000000000 
+0100
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = 'remove' ]; then
+  for file in xfsdump xfsrestore; do
+    if [ -L /usr/sbin/$file ]; then
+      rm /usr/sbin/$file
+    fi
+  done
+fi
+
+#DEBHELPER#
diff -Naur xfsdump-3.1.9/dump/Makefile xfsdump-3.1.9+nmu1/dump/Makefile
--- xfsdump-3.1.9/dump/Makefile 2020-01-31 18:30:58.000000000 +0100
+++ xfsdump-3.1.9+nmu1/dump/Makefile    2020-03-13 13:50:57.000000000 +0100
@@ -100,9 +100,6 @@
        $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
        $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
        $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
-       # skip symlink when /sbin is alread symlinked to /usr/sbin, like on 
Fedora
-       test $(PKG_ROOT_SBIN_DIR) -ef $(PKG_SBIN_DIR) || \
-               $(INSTALL) -S $(PKG_ROOT_SBIN_DIR)/$(LTCOMMAND) 
$(PKG_SBIN_DIR)/$(LTCOMMAND)
 install-dev:
.dep: $(COMMINCL) $(COMMON) $(INVINCL) $(INVCOMMON)
diff -Naur xfsdump-3.1.9/restore/Makefile xfsdump-3.1.9+nmu1/restore/Makefile
--- xfsdump-3.1.9/restore/Makefile      2020-01-31 18:30:58.000000000 +0100
+++ xfsdump-3.1.9+nmu1/restore/Makefile 2020-03-13 13:51:11.000000000 +0100
@@ -115,8 +115,6 @@
        $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
        $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
        # skip symlink when /sbin is alread symlinked to /usr/sbin, like on 
Fedora
-       test $(PKG_ROOT_SBIN_DIR) -ef $(PKG_SBIN_DIR) || \
-               $(INSTALL) -S $(PKG_ROOT_SBIN_DIR)/$(LTCOMMAND) 
$(PKG_SBIN_DIR)/$(LTCOMMAND)
 install-dev:
.dep: $(COMMINCL) $(COMMON) $(INVINCL) $(INVCOMMON)

--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5

Reply via email to