Source: digimend-dkms
Version: 11-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 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.

Per the wiki, it is advisable to upload to experimental first, and
wait a few days for the dumat tool to check your package. The same
is advisable when any structural changes are done in the trixie
cycle.

Thank you for considering,
Chris

[1] https://wiki.debian.org/UsrMerge
diff -Nru digimend-dkms-11/debian/changelog digimend-dkms-11/debian/changelog
--- digimend-dkms-11/debian/changelog	2023-06-16 05:52:28.000000000 +0200
+++ digimend-dkms-11/debian/changelog	2023-12-08 00:03:31.000000000 +0100
@@ -1,3 +1,10 @@
+digimend-dkms (11-3.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 00:03:31 +0100
+
 digimend-dkms (11-3) unstable; urgency=medium
 
   * debian/control
diff -Nru digimend-dkms-11/debian/control digimend-dkms-11/debian/control
--- digimend-dkms-11/debian/control	2023-06-16 05:52:28.000000000 +0200
+++ digimend-dkms-11/debian/control	2023-12-08 00:01:47.000000000 +0100
@@ -5,6 +5,8 @@
 Build-Depends:
  debhelper-compat (= 13),
  dh-sequence-dkms,
+ pkgconf,
+ systemd-dev,
 Standards-Version: 4.6.2
 Homepage: https://github.com/DIGImend/digimend-kernel-drivers
 Vcs-Git: https://salsa.debian.org/debian/digimend-dkms.git
diff -Nru digimend-dkms-11/debian/patches/series digimend-dkms-11/debian/patches/series
--- digimend-dkms-11/debian/patches/series	2023-06-16 05:52:28.000000000 +0200
+++ digimend-dkms-11/debian/patches/series	2023-12-08 00:00:53.000000000 +0100
@@ -1,2 +1,3 @@
 skip-without-CONFIG_USB_HID.patch
 support-kernel-6.3.patch
+udev-udevdir.patch
diff -Nru digimend-dkms-11/debian/patches/udev-udevdir.patch digimend-dkms-11/debian/patches/udev-udevdir.patch
--- digimend-dkms-11/debian/patches/udev-udevdir.patch	1970-01-01 01:00:00.000000000 +0100
+++ digimend-dkms-11/debian/patches/udev-udevdir.patch	2023-12-08 00:01:36.000000000 +0100
@@ -0,0 +1,19 @@
+Index: digimend-dkms-11/Makefile
+===================================================================
+--- digimend-dkms-11.orig/Makefile
++++ digimend-dkms-11/Makefile
+@@ -7,11 +7,12 @@ KVERSION := $(shell uname -r)
+ KDIR := /lib/modules/$(KVERSION)/build
+ PWD := $(shell pwd)
+ DESTDIR =
+-UDEV_RULES = $(DESTDIR)/lib/udev/rules.d/90-digimend.rules
++UDEVDIR = $(shell pkg-config --variable=udevdir udev)
++UDEV_RULES = $(DESTDIR)$(UDEVDIR)/rules.d/90-digimend.rules
+ DEPMOD_CONF = $(DESTDIR)/etc/depmod.d/digimend.conf
+ DRACUT_CONF_DIR = $(DESTDIR)/usr/lib/dracut/dracut.conf.d
+ DRACUT_CONF = $(DRACUT_CONF_DIR)/90-digimend.conf
+-HID_REBIND = $(DESTDIR)/lib/udev/hid-rebind
++HID_REBIND = $(DESTDIR)$(UDEVDIR)/hid-rebind
+ DIGIMEND_DEBUG = $(DESTDIR)/usr/sbin/digimend-debug
+ XORG_CONF := $(DESTDIR)/usr/share/X11/xorg.conf.d/50-digimend.conf
+ PACKAGE_NAME = digimend-kernel-drivers

Reply via email to