Package: libtirpc3t64
Version: 1.3.4+ds-1.1~exp1
Severity: serious
Tags: patch
Control: affects -1 + libtirpc3
User: helmutg@debian.org
Usertags: dep17p1
X-Debbugs-Cc: vorlon@debian.org
Hi Steve,
thanks for having tried to handle /usr-move upfront for tirpc.
Unfortunately, you got it wrong. I don't want to interefere here. Hence,
I am attching a patch that corrects the issues. Tested with piuparts.
Helmut
diff --minimal -Nru libtirpc-1.3.4+ds/debian/changelog libtirpc-1.3.4+ds/debian/changelog
--- libtirpc-1.3.4+ds/debian/changelog 2024-02-02 19:28:08.000000000 +0100
+++ libtirpc-1.3.4+ds/debian/changelog 2024-02-03 11:35:46.000000000 +0100
@@ -1,3 +1,10 @@
+libtirpc (1.3.4+ds-1.1~exp1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix /usr-move mitigation. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sat, 03 Feb 2024 11:35:46 +0100
+
libtirpc (1.3.4+ds-1.1~exp1) experimental; urgency=medium
* Non-maintainer upload.
diff --minimal -Nru libtirpc-1.3.4+ds/debian/clean libtirpc-1.3.4+ds/debian/clean
--- libtirpc-1.3.4+ds/debian/clean 2024-02-02 19:28:07.000000000 +0100
+++ libtirpc-1.3.4+ds/debian/clean 2024-02-03 11:35:46.000000000 +0100
@@ -1,2 +1,3 @@
src/config.h
debian/libtirpc3t64.preinst
+debian/libtirpc3t64.postrm
diff --minimal -Nru libtirpc-1.3.4+ds/debian/libtirpc3t64.postrm.in libtirpc-1.3.4+ds/debian/libtirpc3t64.postrm.in
--- libtirpc-1.3.4+ds/debian/libtirpc3t64.postrm.in 1970-01-01 01:00:00.000000000 +0100
+++ libtirpc-1.3.4+ds/debian/libtirpc3t64.postrm.in 2024-02-03 11:35:46.000000000 +0100
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+# per Helmut, these can't be safely removed again (in package postinst)
+# until forky
+case $1 in
+ remove)
+ for file in libtirpc.so.3 libtirpc.so.3.0.0; do
+ dpkg-divert --package libtirpc3t64 --no-rename \
+ --remove --divert \
+ /lib/#DEB_HOST_MULTIARCH#/$file.usr-is-merged \ + /lib/#DEB_HOST_MULTIARCH#/$file
+ done
+ ;;
+esac
+
+#DEBHELPER#
diff --minimal -Nru libtirpc-1.3.4+ds/debian/rules libtirpc-1.3.4+ds/debian/rules
--- libtirpc-1.3.4+ds/debian/rules 2024-02-02 19:28:07.000000000 +0100
+++ libtirpc-1.3.4+ds/debian/rules 2024-02-03 11:35:46.000000000 +0100
@@ -30,6 +30,8 @@
rm -rf build-deb build-udeb
rm -rf debian/tmp-udeb
-override_dh_installdeb:
+execute_before_dh_installdeb:
sed -e"s/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/" \
debian/libtirpc3t64.preinst.in > debian/libtirpc3t64.preinst
+ sed -e"s/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/" \
+ debian/libtirpc3t64.postrm.in > debian/libtirpc3t64.postrm
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 08:36:17 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,200 |