From biebl at debian.org Fri Feb 14 22:22:46 2025 From: biebl at debian.org (Michael Biebl) Date: Fri, 14 Feb 2025 23:22:46 +0100 Subject: [Pkg-raspi-maintainers] Bug#1092279: rpi.gpio-common: /usr/lib/udev/rules.d/60-rpi.gpio-common.rules may get lost in upgrade due to /usr-move (DEP17) In-Reply-To: <20250106124346.GA1328358@subdivi.de> References: <20250106124346.GA1328358@subdivi.de> <20250106124346.GA1328358@subdivi.de> <20250106124346.GA1328358@subdivi.de> Message-ID: <3a0fd24a-c0d2-4a5b-9cd3-aa66f745c0f2@debian.org> Hi Dominik, poking you directly as I'm not sure if you received this RC bug mail. Regards, Michael On Mon, 6 Jan 2025 13:43:46 +0100 Helmut Grohne wrote: > Package: rpi.gpio-common > Version: 0.7.1~a4-1.1 > Severity: serious > Justification: file loss in upgrade > Tags: trixie sid > User: helmutg at debian.org > Usertags: dep17p7 > User: debian-arm at lists.debian.org > Usertags: armel armhf arm64 > X-Debbugs-Cc: zeha at debian.org > > In an an upgrade from bookworm to trixie, rpi.gpio-common may loose > /usr/lib/udev/rules.d/60-rpi.gpio-common.rules, because it is a file > shared in a Multi-Arch: same package and being moved from /lib to > /usr/lib during the upgrade. For more information refer to > https://subdivi.de/~helmut/dep17.html section P7. > > As I was wondering about a good way to fix this, I failed to find a > reason for rpi.gpio-common to exist as a separate package from > python3-rpi.gpio. I was made aware that there formerly was a Python 2 > package that would benefit from a -common package sharing the udev rules > file, but now no such package exists anymore. This leaves the question > of whether you would prefer keeping (and fixing) the rpi.gpio-common > package or merging its content into python3-rpi.gpio (thus reducing the > number of packages in the archive for good). > > In case you want to keep rpi.gpio-common, allow me to suggest dropping > Multi-Arch: same for one release. You cannot actually coinstall > python3-rpi.gpio, so coinstalling rpi.gpio-common is of very limited > use. I guess that the Multi-Arch hinter opportunistically suggested > adding Multi-Arch: same, but here it is one precondition to actually > loosing the file. A very simple way of working around the problem at > hand could be: > > -Multi-Arch: same > +# begin-remove-after: released:trixie > +# Avoid being Multi-Arch: same for the trixie upgrade to avoid a DEP17 > +# P7 file loss of the udev fules file being moved from /lib to /usr/lib. > +Multi-Arch: no > +# end-remove-after > > I offer writing a patch (including the workarounds for the /usr-move) > for the other ways. Please let me know if you want to accept my offer > and indicate which path you prefer. > > Helmut > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: