Source: madfuload
Version: 1.2-4.2
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 using udev.pc to place the udev files
(using pkg-config). This works today in unstable and also for
bookworm, and is safe to do now.
Once udev.pc in unstable points to /usr/lib, your package will
benefit automatically after a binNMU or any other upload.

If during the trixie cycle your package will undergo structural
changes or any other file moves, please see the wiki and upload
to experimental first when these changes are done.

Later during the trixie cycle I expect this bug class to raise in
priority.

Thank you for considering,
Chris

[1] https://wiki.debian.org/UsrMerge
diff -Nru madfuload-1.2/debian/changelog madfuload-1.2/debian/changelog
--- madfuload-1.2/debian/changelog	2017-07-12 13:28:24.000000000 +0200
+++ madfuload-1.2/debian/changelog	2023-12-17 00:04:46.000000000 +0100
@@ -1,3 +1,12 @@
+madfuload (1.2-4.3) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use udev.pc to place udev files. (Closes: #-1)
+  * Assume upgrades from 2009 are completed, drop preinst cleaning up
+    old udev rules in /etc.
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sun, 17 Dec 2023 00:04:46 +0100
+
 madfuload (1.2-4.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru madfuload-1.2/debian/control madfuload-1.2/debian/control
--- madfuload-1.2/debian/control	2017-07-12 13:28:24.000000000 +0200
+++ madfuload-1.2/debian/control	2023-12-17 00:04:46.000000000 +0100
@@ -3,6 +3,8 @@
 Priority: extra
 Maintainer: Free Ekanayaka <fr...@debian.org>
 Build-Depends: debhelper (>= 10),
+               pkgconf,
+               systemd-dev,
                udev (>= 136),
 Standards-Version: 3.8.4
 Homepage: http://usb-midi-fw.sourceforge.net/
diff -Nru madfuload-1.2/debian/preinst madfuload-1.2/debian/preinst
--- madfuload-1.2/debian/preinst	2015-11-28 23:59:17.000000000 +0100
+++ madfuload-1.2/debian/preinst	1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = install ] || [ "$1" = upgrade ]; then
-	if [ -e "/etc/udev/rules.d/42-madfuload.rules" ]; then
-		if [ "`md5sum \"/etc/udev/rules.d/42-madfuload.rules\" | sed -e \"s/ .*//\"`" = \
-		     "`dpkg-query -W -f='${Conffiles}' madfuload | sed -n -e \"\\\\' /etc/udev/rules.d/42-madfuload.rules's/.* //p\"`" ]
-		then
-			rm -f "/etc/udev/rules.d/42-madfuload.rules"
-		fi
-	fi
-fi
-
-#DEBHELPER#
diff -Nru madfuload-1.2/debian/rules madfuload-1.2/debian/rules
--- madfuload-1.2/debian/rules	2017-07-12 13:28:24.000000000 +0200
+++ madfuload-1.2/debian/rules	2023-12-17 00:04:46.000000000 +0100
@@ -3,4 +3,4 @@
 	dh $@
 
 override_dh_auto_configure:
-	dh_auto_configure -- --with-udev=/lib/udev
+	dh_auto_configure -- --with-udev=$(shell pkg-config --variable=udevdir udev)

Reply via email to