Your message dated Sun, 10 Dec 2023 13:20:51 +0000
with message-id <[email protected]>
and subject line Bug#1056938: fixed in rear 2.7+dfsg-1.1
has caused the Debian Bug report #1056938,
regarding rear: Move files into /usr (incl. DEP17 P7 mitigation)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1056938: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056938
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rear
Version: 2.7+dfsg-1
Severity: important
Tags: patch
User: [email protected]
Usertags: dep17p7
X-Debbugs-Cc: [email protected]
Dear Maintainer,
rear contains udev files which are installed to /lib; these files need
to be moved to /usr/lib as part of Debian's usr-merge effort.
Because your package is Multi-Arch: same, an unfortunate corner-case
can occur whereby shared files (such as the udev files) may be
erroneously removed on upgrades (please see DEP17[1] P7: Shared
multiarch file loss).
You will find a patch attached to move the udev files, including the
mitigation for the file loss scenario.
Please consider applying this patch at your earliest convenience. This
bug will be upgraded to release critical soon, as it blocks the overall
usr-merge effort which is being undertaken for the trixie release.
Many thanks,
Chris
1. https://subdivi.de/~helmut/dep17.html
diff -Nru rear-2.7+dfsg/debian/changelog rear-2.7+dfsg/debian/changelog
--- rear-2.7+dfsg/debian/changelog 2023-01-11 15:33:42.000000000 +0100
+++ rear-2.7+dfsg/debian/changelog 2023-11-27 01:36:54.000000000 +0100
@@ -1,3 +1,11 @@
+rear (2.7+dfsg-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Move udev files from /lib to /usr/lib, including protective diversion
+ against Multi-Arch: same file loss scenario (DEP17 P7 M10). (Closes: #-1)
+
+ -- Chris Hofstaedtler <[email protected]> Mon, 27 Nov 2023 01:36:54 +0100
+
rear (2.7+dfsg-1) unstable; urgency=medium
* Update to new upstream version 2.7.
diff -Nru rear-2.7+dfsg/debian/rear.lintian-overrides
rear-2.7+dfsg/debian/rear.lintian-overrides
--- rear-2.7+dfsg/debian/rear.lintian-overrides 2023-01-11 15:33:42.000000000
+0100
+++ rear-2.7+dfsg/debian/rear.lintian-overrides 2023-11-27 01:36:54.000000000
+0100
@@ -7,6 +7,10 @@
rear: package-contains-documentation-outside-usr-share-doc
usr/share/rear/restore/readme
rear: package-contains-documentation-outside-usr-share-doc
usr/share/rear/wrapup/readme
+# begin-remove-after: released:forky
+rear: diversion-for-unknown-file lib/udev/rules.d/60-rear.rules [*]
+# end-remove-after
+
package-contains-empty-directory
package-supports-alternative-init-but-no-init.d-script
systemd-service-file-missing-documentation-key
diff -Nru rear-2.7+dfsg/debian/rear.postinst rear-2.7+dfsg/debian/rear.postinst
--- rear-2.7+dfsg/debian/rear.postinst 2023-01-11 15:33:42.000000000 +0100
+++ rear-2.7+dfsg/debian/rear.postinst 2023-11-27 01:34:11.000000000 +0100
@@ -10,6 +10,16 @@
chmod 0600 /etc/rear/local.conf
echo "[Done]"
fi
+
+ # begin-remove-after: released:forky
+ # protective diversion of files moved from / to /usr, to avoid file
loss.
+ # Only for upgrades.
+ # At this point, the package will have installed the same file in
*/usr*.
+ dpkg-divert --package usr-is-merged --no-rename \
+ --divert /lib/udev/rules.d/60-rear.rules.usr-is-merged \
+ --remove /lib/udev/rules.d/60-rear.rules
+ # end-remove-after
+
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff -Nru rear-2.7+dfsg/debian/rear.postrm rear-2.7+dfsg/debian/rear.postrm
--- rear-2.7+dfsg/debian/rear.postrm 1970-01-01 01:00:00.000000000 +0100
+++ rear-2.7+dfsg/debian/rear.postrm 2023-11-27 01:33:01.000000000 +0100
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+# begin-remove-after: released:forky
+# protective diversion of files moved from / to /usr, to avoid file loss.
+# Only for upgrades.
+if [ "$1" = "remove" ] && [ "$DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT" = "1" ]; then
+ # Cleanup in case package is removed before upgrade is finished (postinst
ran).
+ dpkg-divert --package usr-is-merged --no-rename \
+ --divert /lib/udev/rules.d/60-rear.rules.usr-is-merged \
+ --remove /lib/udev/rules.d/60-rear.rules
+fi
+# end-remove-after
+
+#DEBHELPER#
+
diff -Nru rear-2.7+dfsg/debian/rear.preinst rear-2.7+dfsg/debian/rear.preinst
--- rear-2.7+dfsg/debian/rear.preinst 1970-01-01 01:00:00.000000000 +0100
+++ rear-2.7+dfsg/debian/rear.preinst 2023-11-27 01:33:01.000000000 +0100
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+# begin-remove-after: released:forky
+# protective diversion of files moved from / to /usr, to avoid file loss.
+# Only for upgrades.
+if [ "$1" = "upgrade" ]; then
+ dpkg-divert --package usr-is-merged --no-rename \
+ --divert /lib/udev/rules.d/60-rear.rules.usr-is-merged \
+ --add /lib/udev/rules.d/60-rear.rules
+fi
+# end-remove-after
+
+#DEBHELPER#
+
diff -Nru rear-2.7+dfsg/debian/rules rear-2.7+dfsg/debian/rules
--- rear-2.7+dfsg/debian/rules 2023-01-11 15:33:42.000000000 +0100
+++ rear-2.7+dfsg/debian/rules 2023-11-27 01:36:37.000000000 +0100
@@ -22,6 +22,12 @@
rm -fr debian/tmp/usr/share/rear/conf/examples
dh_install
+override_dh_installudev:
+ dh_installudev
+ # This should become harmless when dh_installudev changes the install
location.
+ set -e; if test -d debian/rear/lib/udev/rules.d; then mv
debian/rear/lib/udev debian/rear/usr/lib; fi
+ set -e; if test -d debian/rear/lib; then rmdir debian/rear/lib; fi
+
override_dh_fixperms:
# Stick to install-config permissions
dh_fixperms --exclude debian/rear/etc/rear
--- End Message ---
--- Begin Message ---
Source: rear
Source-Version: 2.7+dfsg-1.1
Done: Chris Hofstaedtler <[email protected]>
We believe that the bug you reported is fixed in the latest version of
rear, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Hofstaedtler <[email protected]> (supplier of updated rear package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 03 Dec 2023 13:35:48 +0100
Source: rear
Architecture: source
Version: 2.7+dfsg-1.1
Distribution: unstable
Urgency: medium
Maintainer: Frédéric Bonnard <[email protected]>
Changed-By: Chris Hofstaedtler <[email protected]>
Closes: 1056938
Changes:
rear (2.7+dfsg-1.1) unstable; urgency=medium
.
* Non-maintainer upload.
.
[ Helmut Grohne ]
* Drop Multi-Arch: same to avoid DEP17 P7 (multiarch same shared file loss).
This was added by the m-a:hinter opportunistically, but since rear depends
on e.g. binutils it was never co-installable and the hinter will not
suggest re-adding m-a:same. Dropping m-a:same reliably prevents DEP17 P7.
(Closes: #1056938)
Checksums-Sha1:
822755a70aa0ab0677e5f5fdbdc6ffd258a17b0f 1958 rear_2.7+dfsg-1.1.dsc
3c30675be2c228815d41a298f115981f40a90dcf 5476 rear_2.7+dfsg-1.1.debian.tar.xz
67f9d6ae8d0673a5aedabc5cf03705c6e24dbe23 7081 rear_2.7+dfsg-1.1_amd64.buildinfo
Checksums-Sha256:
fc7b34cc20e6eeb34320e797dff401454f62e0455d17bce17bc7632406cd75c1 1958
rear_2.7+dfsg-1.1.dsc
d9a308303298983690f512388c1796301c2be7cca44f3550e8a66f9bf37e6add 5476
rear_2.7+dfsg-1.1.debian.tar.xz
01a77380aa5f316ac858d8e0c58b9d630953cad59e5f5d275e68dd68b1dc7d6e 7081
rear_2.7+dfsg-1.1_amd64.buildinfo
Files:
06c4a0b17a6f0d3de787a5601f3e8fe6 1958 admin optional rear_2.7+dfsg-1.1.dsc
14040573d558ef26869448bfa7562c08 5476 admin optional
rear_2.7+dfsg-1.1.debian.tar.xz
b43267352dffe51589ea725d24f0a81e 7081 admin optional
rear_2.7+dfsg-1.1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEfRrP+tnggGycTNOSXBPW25MFLgMFAmVsdrMACgkQXBPW25MF
LgMZtw/+NmxcfwtChLVF39QTEEyfEuyT5rCdVSmDU9EWMzBuJZNitygnpn0w6fKI
uAPCwNpg6ybbB4nOn4X79WWd/vTWtVp+CuoGdmFqZJ0P1N26r6TQm8PsdjTRs6Ik
ItNpV2EWtn3A4IGeofCelaxKw76o7J6aysEzg1JjhVxUeAjr41sGDOWAeDVeavgz
9jgD0emJ2bLKoC8e7tI4EU+KcMa733D+XfNv4EFHlcZBaHOMim0c72ggTbfVyox3
TExYtL1mKuu4hMqFEJxgxPL8qUmeCdjUVebM88ClmTaZHCjsUqB/cQ7v6dnE2BPA
cBYo7XDSh2PfHYouJL/pg0vXBOegVE4ZB/bxwpN6+aFrK7Kg3bOY4R4zrKR8lwO6
DUb1fxCLj80Dr1sE/EacTHJNR/IUh0OV2JejrLiyORe+n41giiNwoHtDzD0zBUYX
C1z1fd5y22XGO/K8dOcd+NFcngci43y99XmAU83EMiJN+AucjpsNkU3moeWzsZvI
/D4+QMZSESxuPmF5VXZfJhem7SVhu4/om/9azWaQ1oxut8Jz6gf5WaR0Elsk2IOM
WJKjXLkJ39LqU1tGM4ZhYfPM3+9NQxxZGeN3hdahi3qqnraPxJ3HNdyD+aNJOQzQ
xEim8yCtYmriqFSgKL7DFDHQHBRZn81/HNivcLfFXoVM9zr9z6A=
=DWQN
-----END PGP SIGNATURE-----
--- End Message ---