Bug#1053110: exim4 FTBFS when dh_installsystemd installs units to /usr

Helmut Grohne helmut at subdivi.de
Wed Sep 27 13:03:56 BST 2023


Source: exim4
Version: 4.97~RC0-3
Tags: ftbfs patch
User: helmutg at debian.org
Usertags: dep17m2

We want to change dh_installsystemd to install units to /usr. The exim4
packaging also wants this and performs the change that we want in
debhelper. Unfortunately, when debhelper changes, this makes exim4
FTBFS. I propose changing the condition such that it becomes a noop once
we change dh_installsystemd. I've attached a patch implementing it. Once
applied, exim4 will build in the same way as before with current and
future debhelper.

Helmut
-------------- next part --------------
diff -Nru exim4-4.97~RC0/debian/changelog exim4-4.97~RC0/debian/changelog
--- exim4-4.97~RC0/debian/changelog	2023-09-19 18:04:22.000000000 +0200
+++ exim4-4.97~RC0/debian/changelog	2023-09-27 12:16:34.000000000 +0200
@@ -1,3 +1,10 @@
+exim4 (4.97~RC0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when dh_installsystemd installs units to /usr. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 27 Sep 2023 12:16:34 +0200
+
 exim4 (4.97~RC0-3) unstable; urgency=medium
 
   * Drop misleading phrase regarding incoming TLS support in README.Debian.
diff -Nru exim4-4.97~RC0/debian/rules exim4-4.97~RC0/debian/rules
--- exim4-4.97~RC0/debian/rules	2023-09-10 13:28:23.000000000 +0200
+++ exim4-4.97~RC0/debian/rules	2023-09-27 12:16:34.000000000 +0200
@@ -284,7 +284,7 @@
 	dh_installsystemd --remaining-packages
 	# move service file to real (post usrmerge) location,
 	for i in $(daemons) ; do \
-		if test -d debian/$${i} ; then \
+		if test -d debian/$${i}/lib/systemd ; then \
 			mv -v debian/$${i}/lib/systemd/ \
 				debian/$${i}/usr/lib/; \
 			rmdir debian/$${i}/lib ; \


More information about the Pkg-exim4-maintainers mailing list