Source: libinovasdk
Version: 1.3.6-3
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 libinovasdk-1.3.6/debian/changelog libinovasdk-1.3.6/debian/changelog
--- libinovasdk-1.3.6/debian/changelog	2022-05-14 23:30:36.000000000 +0200
+++ libinovasdk-1.3.6/debian/changelog	2023-12-17 00:19:11.000000000 +0100
@@ -1,3 +1,10 @@
+libinovasdk (1.3.6-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use udev.pc to place udev files. (Closes: #-1)
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sun, 17 Dec 2023 00:19:11 +0100
+
 libinovasdk (1.3.6-3) unstable; urgency=medium
 
   * manual build on: i386 amd64 arm64
diff -Nru libinovasdk-1.3.6/debian/control libinovasdk-1.3.6/debian/control
--- libinovasdk-1.3.6/debian/control	2022-05-14 23:30:36.000000000 +0200
+++ libinovasdk-1.3.6/debian/control	2023-12-17 00:18:39.000000000 +0100
@@ -6,6 +6,8 @@
 Build-Depends: debhelper-compat (= 13)
 	, cmake
 	, libusb-1.0-0-dev
+	, pkgconf
+	, systemd-dev
 	, zlib1g-dev
 Standards-Version: 4.6.0
 Homepage: https://github.com/indilib/indi-3rdparty
diff -Nru libinovasdk-1.3.6/debian/libinovasdk1.install libinovasdk-1.3.6/debian/libinovasdk1.install
--- libinovasdk-1.3.6/debian/libinovasdk1.install	2022-05-14 23:30:36.000000000 +0200
+++ libinovasdk-1.3.6/debian/libinovasdk1.install	2023-12-17 00:19:11.000000000 +0100
@@ -1,2 +1,2 @@
 usr/lib/*/libinovasdk.so.*
-lib/udev/rules.d/99-inovaplx.rules
+${env:deb_udevdir}/rules.d/99-inovaplx.rules
diff -Nru libinovasdk-1.3.6/debian/rules libinovasdk-1.3.6/debian/rules
--- libinovasdk-1.3.6/debian/rules	2022-05-14 23:30:36.000000000 +0200
+++ libinovasdk-1.3.6/debian/rules	2023-12-17 00:19:11.000000000 +0100
@@ -1,8 +1,13 @@
 #!/usr/bin/make -f
+export deb_udevdir = $(shell pkg-config --variable=udevdir udev)
 
 %:
 	dh $@
 
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		-DUDEVRULES_INSTALL_DIR=$(deb_udevdir)/rules.d
+
 override_dh_auto_install:
 	find
 	dh_auto_install

Reply via email to