Source: irqbalance
Version: 1.9.2-1
Tags: patch
User: helm...@debian.org
Usertags: dep17m2

We want to move all aliased files from / to /usr to finalize the
/usr-merge transition via DEP17. irqbalance is affected, because it
ships a systemd unit in /lib. Rather than just moving it to /usr, I
recommend letting dh_installsystemd choose its placement. If irqbalance
gets backported to bookworm, this will revert to /lib and thus honour
the file move moratorium that still covers bookworm. I'm attaching a
patch for your convenience.

Helmut
diff -Nru irqbalance-1.9.2/debian/changelog irqbalance-1.9.2/debian/changelog
--- irqbalance-1.9.2/debian/changelog   2023-02-10 00:23:32.000000000 +0100
+++ irqbalance-1.9.2/debian/changelog   2023-10-15 20:17:42.000000000 +0200
@@ -1,3 +1,10 @@
+irqbalance (1.9.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Let dh_installsystemd install irqbalance.service. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 15 Oct 2023 20:17:42 +0200
+
 irqbalance (1.9.2-1) unstable; urgency=medium
 
   * New upstream version 1.9.2
diff -Nru irqbalance-1.9.2/debian/clean irqbalance-1.9.2/debian/clean
--- irqbalance-1.9.2/debian/clean       1970-01-01 01:00:00.000000000 +0100
+++ irqbalance-1.9.2/debian/clean       2023-10-15 20:17:25.000000000 +0200
@@ -0,0 +1 @@
+debian/irqbalance.service
diff -Nru irqbalance-1.9.2/debian/irqbalance.install 
irqbalance-1.9.2/debian/irqbalance.install
--- irqbalance-1.9.2/debian/irqbalance.install  2021-10-30 12:55:55.000000000 
+0200
+++ irqbalance-1.9.2/debian/irqbalance.install  2023-10-15 20:17:28.000000000 
+0200
@@ -1,3 +1,2 @@
 #!/usr/bin/dh-exec
 misc/irqbalance.env => /etc/default/irqbalance
-misc/irqbalance.service /lib/systemd/system
diff -Nru irqbalance-1.9.2/debian/rules irqbalance-1.9.2/debian/rules
--- irqbalance-1.9.2/debian/rules       2022-07-04 22:21:33.000000000 +0200
+++ irqbalance-1.9.2/debian/rules       2023-10-15 20:17:39.000000000 +0200
@@ -17,9 +17,7 @@
 override_dh_auto_configure:
        dh_auto_configure -- $(confflags)
 
-override_dh_install:
-       dh_install
-
+execute_before_dh_installsystemd:
        # Treat '/path/to/irqbalance.env' in the upstream service file as a
        # template and substitute it, rather than handling it with a patch.
-       sed -i 's|/path/to/irqbalance.env|/etc/default/irqbalance|' 
$(CURDIR)/debian/irqbalance/lib/systemd/system/irqbalance.service
+       sed 's|/path/to/irqbalance.env|/etc/default/irqbalance|' < 
misc/irqbalance.service > debian/irqbalance.service

Reply via email to