Package: libpam0t64
Version: 1.5.3-2
Severity: serious
Tags: patch
Control: affects -1 + libpam0g
User: helm...@debian.org
Usertags: dep17p1

Hi Steve,

pam also runs in to /usr-move breakage. This one looks fairly straight
forward. I'm attaching a patch to avoid interfering with the time64
transition. As with others, the diversions shall be removed in forky.

Helmut
diff --minimal -Nru pam-1.5.3/debian/changelog pam-1.5.3/debian/changelog
--- pam-1.5.3/debian/changelog  2024-02-02 19:27:45.000000000 +0100
+++ pam-1.5.3/debian/changelog  2024-02-03 12:18:52.000000000 +0100
@@ -1,3 +1,10 @@
+pam (1.5.3-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Mitigate /usr-move file loss. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 03 Feb 2024 12:18:52 +0100
+
 pam (1.5.3-2) experimental; urgency=medium
 
   * New Swedish Translations, Thanks Martin Bagge / brother, Closes: #1057775
diff --minimal -Nru pam-1.5.3/debian/clean pam-1.5.3/debian/clean
--- pam-1.5.3/debian/clean      2023-09-15 19:17:35.000000000 +0200
+++ pam-1.5.3/debian/clean      2024-02-03 12:17:11.000000000 +0100
@@ -1 +1,3 @@
 debian/local/pam_getenv.8
+debian/libpam0t64.preinst
+debian/libpam0t64.postrm
diff --minimal -Nru pam-1.5.3/debian/libpam0t64.postrm.in 
pam-1.5.3/debian/libpam0t64.postrm.in
--- pam-1.5.3/debian/libpam0t64.postrm.in       1970-01-01 01:00:00.000000000 
+0100
+++ pam-1.5.3/debian/libpam0t64.postrm.in       2024-02-03 12:18:52.000000000 
+0100
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = remove ]; then
+       for file in libpam.so.0 libpam.so.0.85.1 libpam_misc.so.0 
libpam_misc.so.0.82.1 libpamc.so.0 libpamc.so.0.82.1; do
+               dpkg-divert --package libpam0t64 --no-rename --remove --divert 
"/lib/#DEB_HOST_MULTIARCH#/$file.usr-is-merged" 
"/lib/#DEB_HOST_MULTIARCH#/$file"
+       done
+fi
+
+#DEBHELPER#
+
+exit 0
diff --minimal -Nru pam-1.5.3/debian/libpam0t64.preinst.in 
pam-1.5.3/debian/libpam0t64.preinst.in
--- pam-1.5.3/debian/libpam0t64.preinst.in      1970-01-01 01:00:00.000000000 
+0100
+++ pam-1.5.3/debian/libpam0t64.preinst.in      2024-02-03 12:18:52.000000000 
+0100
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = install ]; then
+       for file in libpam.so.0 libpam.so.0.85.1 libpam_misc.so.0 
libpam_misc.so.0.82.1 libpamc.so.0 libpamc.so.0.82.1; do
+               dpkg-divert --package libpam0t64 --no-rename --add --divert 
"/lib/#DEB_HOST_MULTIARCH#/$file.usr-is-merged" 
"/lib/#DEB_HOST_MULTIARCH#/$file"
+       done
+fi
+
+#DEBHELPER#
+
+exit 0
diff --minimal -Nru pam-1.5.3/debian/rules pam-1.5.3/debian/rules
--- pam-1.5.3/debian/rules      2024-01-15 23:58:49.000000000 +0100
+++ pam-1.5.3/debian/rules      2024-02-03 12:18:50.000000000 +0100
@@ -76,3 +76,8 @@
 
 override_dh_installchangelogs:
        dh_installchangelogs NEWS
+
+debian/%:debian/%.in
+       sed -e 's/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/g' $< > $@
+
+execute_before_dh_installdeb:debian/libpam0t64.preinst debian/libpam0t64.postrm

Reply via email to