Source: bcache-tools Version: 1.0.8-4 Severity: normal Tags: patch User: helm...@debian.org Usertags: dep17m2
Dear Maintainer, your package installs files related to udev, into /lib. These files need to be moved to /usr/lib as part of Debian's usr-merge effort [1]. Attached you will find a patch using udev.pc to place the udev files (using pkg-config). This works today in unstable and also for bookworm, and is safe to do now. Once udev.pc in unstable points to /usr/lib your package will benefit automatically after a binNMU or any other upload. If during the trixie cycle your package will undergo structural changes or any other file moves, please see the wiki and upload to experimental first when these changes are done. Later during the trixie cycle I expect this bug class to raise in priority. Thank you for considering, Chris [1] https://wiki.debian.org/UsrMerge
diff -Nru bcache-tools-1.0.8/debian/bcache-tools.dirs bcache-tools-1.0.8/debian/bcache-tools.dirs --- bcache-tools-1.0.8/debian/bcache-tools.dirs 2020-05-20 14:41:11.000000000 +0200 +++ bcache-tools-1.0.8/debian/bcache-tools.dirs 2023-12-16 19:13:46.000000000 +0100 @@ -1,4 +1,3 @@ -lib/udev/rules.d/ usr/sbin/ usr/share/initramfs-tools/hooks/ usr/share/man/man8/ diff -Nru bcache-tools-1.0.8/debian/changelog bcache-tools-1.0.8/debian/changelog --- bcache-tools-1.0.8/debian/changelog 2020-05-20 14:41:11.000000000 +0200 +++ bcache-tools-1.0.8/debian/changelog 2023-12-16 19:14:01.000000000 +0100 @@ -1,3 +1,10 @@ +bcache-tools (1.0.8-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Use udev.pc to place udev files. (Closes: #-1) + + -- Chris Hofstaedtler <z...@debian.org> Sat, 16 Dec 2023 19:14:01 +0100 + bcache-tools (1.0.8-4) unstable; urgency=medium [ Debian Janitor ] diff -Nru bcache-tools-1.0.8/debian/control bcache-tools-1.0.8/debian/control --- bcache-tools-1.0.8/debian/control 2020-05-20 14:41:11.000000000 +0200 +++ bcache-tools-1.0.8/debian/control 2023-12-16 19:14:01.000000000 +0100 @@ -5,7 +5,7 @@ Section: utils Priority: optional Standards-Version: 4.1.3 -Build-Depends: debhelper-compat (= 12), libblkid-dev, pkg-config, uuid-dev +Build-Depends: debhelper-compat (= 12), libblkid-dev, pkg-config, systemd-dev, uuid-dev Vcs-Browser: https://salsa.debian.org/debian/bcache-tools Vcs-Git: https://salsa.debian.org/debian/bcache-tools.git Homepage: https://bcache.evilpiepirate.org/ diff -Nru bcache-tools-1.0.8/debian/rules bcache-tools-1.0.8/debian/rules --- bcache-tools-1.0.8/debian/rules 2020-05-20 14:41:11.000000000 +0200 +++ bcache-tools-1.0.8/debian/rules 2023-12-16 19:14:01.000000000 +0100 @@ -1,6 +1,9 @@ #!/usr/bin/make -f +export deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,) + %: dh $@ override_dh_auto_install: - dh_auto_install -- DRACUTLIBDIR=/usr/lib/dracut + install -d debian/bcache-tools/$(deb_udevdir)/rules.d + dh_auto_install -- DRACUTLIBDIR=/usr/lib/dracut UDEVLIBDIR=/$(deb_udevdir)