Source: libfli
Version: 2.0+20221221182632-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 libfli-2.0+20221221182632/debian/changelog libfli-2.0+20221221182632/debian/changelog
--- libfli-2.0+20221221182632/debian/changelog	2022-12-21 19:27:47.000000000 +0100
+++ libfli-2.0+20221221182632/debian/changelog	2023-12-08 18:14:45.000000000 +0100
@@ -1,3 +1,10 @@
+libfli (2.0+20221221182632-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Delegate placement of udev files to pkg-config data
+
+ -- Chris Hofstaedtler <z...@debian.org>  Fri, 08 Dec 2023 18:14:45 +0100
+
 libfli (2.0+20221221182632-1) unstable; urgency=medium
 
   * build version from git
diff -Nru libfli-2.0+20221221182632/debian/control libfli-2.0+20221221182632/debian/control
--- libfli-2.0+20221221182632/debian/control	2022-12-21 19:26:36.000000000 +0100
+++ libfli-2.0+20221221182632/debian/control	2023-12-08 18:14:42.000000000 +0100
@@ -7,6 +7,8 @@
 	, cmake
 	, libusb-1.0-0-dev
 	, libindi-dev
+	, pkg-config
+	, systemd-dev
 Standards-Version: 4.6.0
 Homepage: https://github.com/indilib/indi-3rdparty
 Rules-Requires-Root: no
diff -Nru libfli-2.0+20221221182632/debian/libfli2.install libfli-2.0+20221221182632/debian/libfli2.install
--- libfli-2.0+20221221182632/debian/libfli2.install	2022-12-21 19:26:36.000000000 +0100
+++ libfli-2.0+20221221182632/debian/libfli2.install	2023-12-08 18:14:27.000000000 +0100
@@ -1,3 +1,3 @@
 usr/lib/*/libfli.so.2.0
 usr/lib/*/libfli.so.2
-lib/udev/rules.d
+${env:deb_udevdir}
diff -Nru libfli-2.0+20221221182632/debian/rules libfli-2.0+20221221182632/debian/rules
--- libfli-2.0+20221221182632/debian/rules	2022-12-21 19:26:36.000000000 +0100
+++ libfli-2.0+20221221182632/debian/rules	2023-12-08 18:14:45.000000000 +0100
@@ -1,4 +1,8 @@
 #!/usr/bin/make -f
+export deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,)
 
 %:
 	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DUDEVRULES_INSTALL_DIR=/$(deb_udevdir)/rules.d

Reply via email to