[Pkg-alsa-devel] Bug#1057240: alsa-utils: will FTBFS when udev.pc changes udevdir

Chris Hofstaedtler zeha at debian.org
Sat Dec 2 00:59:36 GMT 2023


Source: alsa-utils
Version: 1.2.10-1
Severity: normal
Tags: ftbfs patch
User: helmutg at 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

PS: alsa-utils also seems to hardcode the install location of systemd
units, i.e. they always get installed into /lib/systemd/system. These
should also move to /usr; the patch does not change this for now. If you
can use dh_installsystemd, I would recommend using that.
-------------- next part --------------
diff -Nru alsa-utils-1.2.10/debian/changelog alsa-utils-1.2.10/debian/changelog
--- alsa-utils-1.2.10/debian/changelog	2023-09-13 15:45:59.000000000 +0200
+++ alsa-utils-1.2.10/debian/changelog	2023-12-02 01:32:07.000000000 +0100
@@ -1,3 +1,10 @@
+alsa-utils (1.2.10-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use udevdir from udev.pc to determine udev rules install path.
+
+ -- Chris <zeha at debian.org>  Sat, 02 Dec 2023 01:32:07 +0100
+
 alsa-utils (1.2.10-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru alsa-utils-1.2.10/debian/install alsa-utils-1.2.10/debian/install
--- alsa-utils-1.2.10/debian/install	2022-07-06 03:17:35.000000000 +0200
+++ alsa-utils-1.2.10/debian/install	2023-12-02 01:32:00.000000000 +0100
@@ -1,6 +1,6 @@
 debian/utils.sh /usr/share/alsa
 lib/systemd
-lib/udev
+${env:deb_udevdir}/rules.d
 usr/bin
 usr/lib/*/alsa-topology/*.so
 usr/sbin
diff -Nru alsa-utils-1.2.10/debian/rules alsa-utils-1.2.10/debian/rules
--- alsa-utils-1.2.10/debian/rules	2023-09-13 15:45:07.000000000 +0200
+++ alsa-utils-1.2.10/debian/rules	2023-12-02 01:32:00.000000000 +0100
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,)
 
 %:
 	dh $@


More information about the Pkg-alsa-devel mailing list