Source: xr-hardware
Version: 1.1.0-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 xr-hardware-1.1.0/debian/changelog xr-hardware-1.1.0/debian/changelog
--- xr-hardware-1.1.0/debian/changelog	2022-09-19 20:02:27.000000000 +0200
+++ xr-hardware-1.1.0/debian/changelog	2023-12-16 22:13:25.000000000 +0100
@@ -1,3 +1,10 @@
+xr-hardware (1.1.0-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:13:25 +0100
+
 xr-hardware (1.1.0-1) unstable; urgency=medium
 
   * New upstream version 1.1.0
diff -Nru xr-hardware-1.1.0/debian/control xr-hardware-1.1.0/debian/control
--- xr-hardware-1.1.0/debian/control	2022-09-19 20:02:27.000000000 +0200
+++ xr-hardware-1.1.0/debian/control	2023-12-16 22:13:25.000000000 +0100
@@ -3,9 +3,11 @@
 Uploaders: Andrew Lee (李健秋) <ajq...@debian.org>
 Section: utils
 Priority: optional
-Build-Depends: debhelper-compat (= 12),
+Build-Depends: debhelper-compat (= 13),
+               pkgconf,
                python3 (>= 3.7),
-               python3-flake8
+               python3-flake8,
+               systemd-dev
 Standards-Version: 4.6.1
 Vcs-Browser: https://salsa.debian.org/monado-team/xr-hardware
 Vcs-Git: https://salsa.debian.org/monado-team/xr-hardware.git
diff -Nru xr-hardware-1.1.0/debian/rules xr-hardware-1.1.0/debian/rules
--- xr-hardware-1.1.0/debian/rules	2022-09-19 20:02:27.000000000 +0200
+++ xr-hardware-1.1.0/debian/rules	2023-12-16 22:13:25.000000000 +0100
@@ -8,6 +8,8 @@
 # output every command that modifies files on the build system.
 # export DH_VERBOSE = 1
 
+export deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,)
+
 %:
 	dh $@
 
diff -Nru xr-hardware-1.1.0/debian/xr-hardware.install xr-hardware-1.1.0/debian/xr-hardware.install
--- xr-hardware-1.1.0/debian/xr-hardware.install	2022-09-19 20:02:27.000000000 +0200
+++ xr-hardware-1.1.0/debian/xr-hardware.install	2023-12-16 22:13:25.000000000 +0100
@@ -1 +1 @@
-70-xrhardware.rules lib/udev/rules.d/
+70-xrhardware.rules ${env:deb_udevdir}/rules.d/

Reply via email to