Source: gfs2-utils
Version: 3.5.1-1
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 gfs2-utils-3.5.1/debian/changelog gfs2-utils-3.5.1/debian/changelog
--- gfs2-utils-3.5.1/debian/changelog	2023-06-22 23:37:36.000000000 +0200
+++ gfs2-utils-3.5.1/debian/changelog	2023-12-08 00:56:31.000000000 +0100
@@ -1,3 +1,10 @@
+gfs2-utils (3.5.1-1.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:56:31 +0100
+
 gfs2-utils (3.5.1-1) unstable; urgency=medium
 
   * New upstream version 3.5.1
diff -Nru gfs2-utils-3.5.1/debian/control gfs2-utils-3.5.1/debian/control
--- gfs2-utils-3.5.1/debian/control	2023-02-11 15:04:22.000000000 +0100
+++ gfs2-utils-3.5.1/debian/control	2023-12-08 00:55:40.000000000 +0100
@@ -16,6 +16,7 @@
  libncurses-dev,
  libtool,
  pkg-config,
+ systemd-dev,
  zlib1g-dev
 Standards-Version: 4.6.2
 Rules-Requires-Root: no
diff -Nru gfs2-utils-3.5.1/debian/rules gfs2-utils-3.5.1/debian/rules
--- gfs2-utils-3.5.1/debian/rules	2022-11-20 14:28:09.000000000 +0100
+++ gfs2-utils-3.5.1/debian/rules	2023-12-08 00:56:16.000000000 +0100
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+udevdir = $(shell pkg-config --variable=udevdir udev)
+
 # build fails when format hardening is on
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
@@ -12,8 +14,8 @@
 		bzip2_CFLAGS=' ' \
 		bzip2_LIBS=-lbz2 \
 		bzip2_VERSION=' ' \
-		--libexecdir=/lib/udev \
-		--with-udevdir=/lib/udev
+		--libexecdir=$(udevdir) \
+		--with-udevdir=$(udevdir)
 
 override_dh_auto_install:
 	dh_auto_install

Reply via email to