Source: mutter
Version: 44.5-2
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, that you can
apply today.

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 mutter-44.5/debian/changelog mutter-44.5/debian/changelog
--- mutter-44.5/debian/changelog	2023-09-25 11:14:07.000000000 +0200
+++ mutter-44.5/debian/changelog	2023-12-03 12:44:14.000000000 +0100
@@ -1,3 +1,10 @@
+mutter (44.5-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use udevdir from udev.pc to determine udev rules install path
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sun, 03 Dec 2023 12:44:14 +0100
+
 mutter (44.5-2) unstable; urgency=medium
 
   * Team upload
diff -Nru mutter-44.5/debian/control mutter-44.5/debian/control
--- mutter-44.5/debian/control	2023-09-25 11:14:07.000000000 +0200
+++ mutter-44.5/debian/control	2023-12-03 12:44:14.000000000 +0100
@@ -6,7 +6,7 @@
 Section: x11
 Priority: optional
 Maintainer: Debian GNOME Maintainers <pkg-gnome-maintain...@lists.alioth.debian.org>
-Uploaders: Jeremy Bícha <jbi...@ubuntu.com>, Marco Trevisan (Treviño) <ma...@ubuntu.com>
+Uploaders: Jeremy Bicha <jbi...@ubuntu.com>
 Build-Depends: debhelper-compat (= 13),
                dh-exec,
                dh-sequence-gir,
diff -Nru mutter-44.5/debian/.gitignore mutter-44.5/debian/.gitignore
--- mutter-44.5/debian/.gitignore	2023-09-25 11:14:07.000000000 +0200
+++ mutter-44.5/debian/.gitignore	1970-01-01 01:00:00.000000000 +0100
@@ -1,14 +0,0 @@
-/*.debhelper.log
-/*.substvars
-/.debhelper/
-/debhelper-build-stamp
-/files
-/gir1.2-mutter-*/
-/libmutter-*-0/
-/libmutter-*-dev/
-/libmutter-test-*/
-/mutter-*-tests/
-/mutter-common-bin/
-/mutter-common/
-/mutter/
-/tmp/
diff -Nru mutter-44.5/debian/mutter-common.install mutter-44.5/debian/mutter-common.install
--- mutter-44.5/debian/mutter-common.install	2023-09-25 11:14:07.000000000 +0200
+++ mutter-44.5/debian/mutter-common.install	2023-12-03 12:27:34.000000000 +0100
@@ -1,5 +1,5 @@
 #!/usr/bin/dh-exec
-[linux-any] lib/udev/rules.d/*-mutter.rules
+[linux-any] ${env:deb_udevdir}/rules.d/*-mutter.rules
 usr/share/GConf
 usr/share/glib-2.0
 usr/share/gnome-control-center
diff -Nru mutter-44.5/debian/rules mutter-44.5/debian/rules
--- mutter-44.5/debian/rules	2023-09-25 11:14:07.000000000 +0200
+++ mutter-44.5/debian/rules	2023-12-03 12:24:35.000000000 +0100
@@ -28,6 +28,7 @@
 	-Degl_device=true \
 	-Dremote_desktop=true \
 	-Dwayland_eglstream=true
+export deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,)
 else
 CONFFLAGS = \
 	-Dsystemd=false \
@@ -40,6 +41,7 @@
 	-Dprofiler=false \
 	-Dremote_desktop=false
 PROFILER=-Dprofiler=false
+export deb_udevdir =
 endif
 
 override_dh_auto_configure:

Reply via email to