Source: mfgtools
Version: 1.5.139-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 to delegate the exact placement of
the udev files to udev.pc (using pkg-config). This should work today
in unstable and, if necessary, for bookworm. Once udev.pc in
unstable points to /usr/lib your package will benefit automatically
after a binNMU or any other upload.

Later during the trixie cycle I expect this bug class to raise in
priority.

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.

Thank you for considering,
Chris

[1] https://wiki.debian.org/UsrMerge

diff -Nru mfgtools-1.5.139/debian/changelog mfgtools-1.5.139/debian/changelog
--- mfgtools-1.5.139/debian/changelog	2023-11-05 21:46:29.000000000 +0100
+++ mfgtools-1.5.139/debian/changelog	2023-12-09 01:25:56.000000000 +0100
@@ -1,3 +1,10 @@
+mfgtools (1.5.139-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use udev.pc to place udev rules file
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sat, 09 Dec 2023 01:25:56 +0100
+
 mfgtools (1.5.139-1) unstable; urgency=medium
 
   * Cleanup generated .tarball-version (Closes: #1049209)
diff -Nru mfgtools-1.5.139/debian/control mfgtools-1.5.139/debian/control
--- mfgtools-1.5.139/debian/control	2023-03-13 14:37:59.000000000 +0100
+++ mfgtools-1.5.139/debian/control	2023-12-09 01:25:20.000000000 +0100
@@ -14,6 +14,7 @@
  libusb-1.0-0-dev,
  libssl-dev,
  pkg-config,
+ systemd-dev,
  zlib1g-dev,
 Standards-Version: 4.6.0
 Rules-Requires-Root: no
diff -Nru mfgtools-1.5.139/debian/rules mfgtools-1.5.139/debian/rules
--- mfgtools-1.5.139/debian/rules	2023-09-17 13:31:06.000000000 +0200
+++ mfgtools-1.5.139/debian/rules	2023-12-09 01:25:45.000000000 +0100
@@ -7,6 +7,8 @@
 export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
 endif
 
+deb_udevdir = $(shell pkg-config --variable=udevdir udev)
+
 %:
 	dh $@
 
@@ -23,5 +25,5 @@
 
 # generate udev rules
 execute_after_dh_auto_install:
-	test -e debian/uuu && mkdir -p debian/uuu/lib/udev/rules.d
-	debian/uuu/usr/bin/uuu -udev > debian/uuu/lib/udev/rules.d/70-uuu.rules 2>/dev/null
+	test -e debian/uuu && mkdir -p debian/uuu$(deb_udevdir)/rules.d
+	debian/uuu/usr/bin/uuu -udev > debian/uuu$(deb_udevdir)/rules.d/70-uuu.rules 2>/dev/null

Reply via email to