Source: usbauth
Version: 1.0.5-1
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 usbauth-1.0.5/debian/changelog usbauth-1.0.5/debian/changelog
--- usbauth-1.0.5/debian/changelog	2023-01-11 09:51:24.000000000 +0100
+++ usbauth-1.0.5/debian/changelog	2023-12-16 22:35:58.000000000 +0100
@@ -1,3 +1,10 @@
+usbauth (1.0.5-1.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 22:35:58 +0100
+
 usbauth (1.0.5-1) unstable; urgency=medium
 
   [ Kun-Hung Tsai (蔡昆宏) ]
diff -Nru usbauth-1.0.5/debian/control usbauth-1.0.5/debian/control
--- usbauth-1.0.5/debian/control	2023-01-11 09:50:44.000000000 +0100
+++ usbauth-1.0.5/debian/control	2023-12-16 22:34:58.000000000 +0100
@@ -11,7 +11,9 @@
                libudev-dev,
                libusbauth-configparser-dev,
                libdbus-1-dev,
-               m4
+               m4,
+               pkgconf,
+               systemd-dev
 Standards-Version: 4.6.1
 Homepage: https://github.com/kochstefan/usbauth-all/tree/master/usbauth
 Vcs-Git: https://salsa.debian.org/debian/usbauth.git
diff -Nru usbauth-1.0.5/debian/rules usbauth-1.0.5/debian/rules
--- usbauth-1.0.5/debian/rules	2023-01-11 09:50:44.000000000 +0100
+++ usbauth-1.0.5/debian/rules	2023-12-16 22:35:51.000000000 +0100
@@ -6,5 +6,8 @@
 %:
 	dh $@
 
+override_dh_auto_install:
+	dh_auto_install -- udevrulesdir=$(shell pkg-config --variable=udevdir udev)/rules.d
+
 override_dh_missing:
 	dh_missing --fail-missing

Reply via email to