Source: v4l-utils
Version: 1.26.0-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.
Also available as a merge request on salsa:
  https://salsa.debian.org/debian/libv4l/-/merge_requests/5

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

>From 6d800fb23b74571e0c9454ecf3a6b2b30a3b7e4e Mon Sep 17 00:00:00 2001
From: Chris Hofstaedtler <z...@debian.org>
Date: Sat, 2 Dec 2023 03:53:59 +0100
Subject: [PATCH 1/2] Lookup udev install directory from udev.pc

---
 debian/ir-keytable.install | 2 --
 debian/rules               | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/ir-keytable.install b/debian/ir-keytable.install
index 5cd29e16..008e5265 100644
--- a/debian/ir-keytable.install
+++ b/debian/ir-keytable.install
@@ -3,5 +3,3 @@ usr/share/man/man1/ir-keytable.1
 usr/share/man/man5/rc_keymap.5
 etc/rc_maps.cfg
 etc/rc_keymaps
-lib/udev/rc_keymaps
-lib/udev/rules.d/70-infrared.rules
diff --git a/debian/rules b/debian/rules
index 23b0985f..d5ca14b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,7 @@ endif
 
 ifeq ($(DEB_HOST_ARCH_OS),linux)
 deb_systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
+deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,)
 endif
 
 %:
@@ -40,6 +41,7 @@ ifeq ($(DEB_HOST_ARCH_OS),linux)
 	# this file is only conditionally created (clang availablility, enabled systemd filters)
 	cp -f debian/ir-keytable.install debian/ir-keytable.install.$(DEB_HOST_ARCH)
 	test ! -f debian/tmp/$(deb_systemdsystemunitdir)/systemd-udevd.service.d/50-rc_keymap.conf || echo $(deb_systemdsystemunitdir)/systemd-udevd.service.d/50-rc_keymap.conf >> debian/ir-keytable.install.$(DEB_HOST_ARCH)
+	echo $(deb_udevdir) >> debian/ir-keytable.install.$(DEB_HOST_ARCH)
 endif
 
 	dh_install
-- 
2.39.2

Reply via email to