Source: libnitrokey
Version: 3.7-1
Severity: normal
Tags: ftbfs patch
User: helm...@debian.org
Usertags: dep17m2

Dear Maintainer,

your package installs a udev rule, great. For the ongoing UsrMerge
effort [1], we want to change "udevdir" in udev.pc. When this happens,
your package will FTBFS. The upstream build system will install the udev
rules into the new path, but the Debian packaging expects them in the
old path.

For your convenience I'm attaching a patch to fix this.

Please apply at your earliest convenience. Per the wiki [1], it is
useful to first upload to experimental and wait a few days for the dumat
tool evaluating the change, and only then upload to unstable.

I expect udev.pc will change soon, and then this bug will become
release-critical.

Thanks for considering,
Chris

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

diff -Nru libnitrokey-3.7/debian/changelog libnitrokey-3.7/debian/changelog
--- libnitrokey-3.7/debian/changelog	2022-05-20 17:30:38.000000000 +0200
+++ libnitrokey-3.7/debian/changelog	2023-12-02 02:41:09.000000000 +0100
@@ -1,3 +1,10 @@
+libnitrokey (3.7-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use udevdir from udev.pc to determine udev rules install path.
+
+ -- Chris <z...@debian.org>  Sat, 02 Dec 2023 02:41:09 +0100
+
 libnitrokey (3.7-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru libnitrokey-3.7/debian/libnitrokey-common.install libnitrokey-3.7/debian/libnitrokey-common.install
--- libnitrokey-3.7/debian/libnitrokey-common.install	2022-05-20 17:06:46.000000000 +0200
+++ libnitrokey-3.7/debian/libnitrokey-common.install	2023-12-02 02:41:09.000000000 +0100
@@ -1 +1 @@
-lib/udev/rules.d/41-nitrokey.rules
+${env:deb_udevdir}/rules.d
diff -Nru libnitrokey-3.7/debian/rules libnitrokey-3.7/debian/rules
--- libnitrokey-3.7/debian/rules	2022-05-20 17:06:46.000000000 +0200
+++ libnitrokey-3.7/debian/rules	2023-12-02 02:41:09.000000000 +0100
@@ -5,5 +5,7 @@
 #export DH_VERBOSE=1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+export deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,)
+
 %:
 	dh $@ --with pkgkde_symbolshelper

Reply via email to