Source: switcheroo-control
Version: 2.6-1
Severity: normal
Tags: patch
User: helm...@debian.org
Usertags: dep17m2

Dear Maintainer,

your package installs files related to udev and systemd, both into
/lib. These files need to be moved to /usr/lib as part of Debian's
usr-merge effort [1].

The upstream build system can use pkg-config to detect the correct
install locations. A patch is attached implementing this.

This works today in unstable and also for bookworm, and is safe to
do now.

Additional info: currently in unstable, systemd.pc is already
changed. udev.pc will follow shortly.  Once this happens, 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 switcheroo-control-2.6/debian/changelog switcheroo-control-2.6/debian/changelog
--- switcheroo-control-2.6/debian/changelog	2022-08-25 05:34:40.000000000 +0200
+++ switcheroo-control-2.6/debian/changelog	2023-12-17 02:43:37.000000000 +0100
@@ -1,3 +1,10 @@
+switcheroo-control (2.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Let meson use pkg-config to place udev/systemd files. (Closes: #-1)
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sun, 17 Dec 2023 02:43:37 +0100
+
 switcheroo-control (2.6-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru switcheroo-control-2.6/debian/control switcheroo-control-2.6/debian/control
--- switcheroo-control-2.6/debian/control	2022-08-25 05:34:40.000000000 +0200
+++ switcheroo-control-2.6/debian/control	2023-12-17 02:43:37.000000000 +0100
@@ -19,6 +19,7 @@
                python3-gi,
                python3-dbus,
                python3-dbusmock,
+               systemd-dev,
                udev,
                umockdev,
 Standards-Version: 4.6.1
diff -Nru switcheroo-control-2.6/debian/control.in switcheroo-control-2.6/debian/control.in
--- switcheroo-control-2.6/debian/control.in	2022-08-25 05:34:40.000000000 +0200
+++ switcheroo-control-2.6/debian/control.in	2023-12-17 02:42:36.000000000 +0100
@@ -15,6 +15,7 @@
                python3-gi,
                python3-dbus,
                python3-dbusmock,
+               systemd-dev,
                udev,
                umockdev,
 Standards-Version: 4.6.1
diff -Nru switcheroo-control-2.6/debian/rules switcheroo-control-2.6/debian/rules
--- switcheroo-control-2.6/debian/rules	2022-08-25 05:34:40.000000000 +0200
+++ switcheroo-control-2.6/debian/rules	2023-12-17 02:43:11.000000000 +0100
@@ -9,8 +9,6 @@
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		-Dgtk_doc=false \
-		-Dsystemdsystemunitdir=/lib/systemd/system \
-		-Dhwdbdir=/lib/udev/hwdb.d \
 		-Dtests=true
 
 execute_before_dh_install:

Reply via email to