On Mon, Nov 27, 2023 at 02:03:46AM +0100, Chris Hofstaedtler wrote: > 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.
After considering the situation, let me propose a different patch. rear is Architecture:any in order to avoid it being installed on unsupported architectures. #898970 has a bit of background. Later, the Multi-Arch hinter came around and added Multi-Arch:same cause that was technically correct. That Multi-Arch:same annotation never had much benefit though since rear also depends on e.g. binutils and therefore wasn't concurrently installable. It still is concurrently unpackable leading to the problem at hand. In the mean time, the hinter was updated to add Multi-Arch:same less aggressively and will no longer emit the hint for rear. Therefore I suggest to drop Multi-Arch:same again. Doing that will reliably prevent the P7 situation and is a much simpler mitigation than the diversions without actually removing an important capability. Helmut
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 09:21:26.000000000 +0100 @@ -1,3 +1,14 @@ +rear (2.7+dfsg-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Drop Multi-Arch: same to avoid DEP17 P7 (multiarch same shared file loss). + (Closes: #-1) 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. + + -- Helmut Grohne <hel...@subdivi.de> Mon, 27 Nov 2023 09:21:26 +0100 + rear (2.7+dfsg-1) unstable; urgency=medium * Update to new upstream version 2.7. diff -Nru rear-2.7+dfsg/debian/control rear-2.7+dfsg/debian/control --- rear-2.7+dfsg/debian/control 2023-01-11 15:33:42.000000000 +0100 +++ rear-2.7+dfsg/debian/control 2023-11-27 09:21:24.000000000 +0100 @@ -26,7 +26,6 @@ Package: rear Architecture: amd64 i386 ia64 ppc64el -Multi-Arch: same Depends: attr, bc, binutils,