Source: mptcpd
Version: 0.12-1
Severity: normal
Tags: ftbfs patch
User: helm...@debian.org
Usertags: dep17m2

We want to change the value of systemdsystemunitdir in systemd.pc to
point below /usr. mptcpd's upstream build system consumes this variable
while its packaging hard codes the current value. Consequently, mptcpd
FTBFS when changing it. Consider applying the attached patch to avoid
that failure.

Helmut
diff -Nru mptcpd-0.12/debian/changelog mptcpd-0.12/debian/changelog
--- mptcpd-0.12/debian/changelog        2023-02-08 14:33:10.000000000 +0100
+++ mptcpd-0.12/debian/changelog        2023-09-25 22:31:33.000000000 +0200
@@ -1,3 +1,10 @@
+mptcpd (0.12-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when systemd.pc changes systemdsystemunitdir. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 25 Sep 2023 22:31:33 +0200
+
 mptcpd (0.12-1) unstable; urgency=medium
 
   * New upstream version.
diff -Nru mptcpd-0.12/debian/mptcpd.install mptcpd-0.12/debian/mptcpd.install
--- mptcpd-0.12/debian/mptcpd.install   2022-02-06 21:47:31.000000000 +0100
+++ mptcpd-0.12/debian/mptcpd.install   2023-09-25 22:31:28.000000000 +0200
@@ -1,4 +1,4 @@
 etc/mptcpd/mptcpd.conf
-lib/systemd/system/mptcp.service
+${env:systemdsystemunitdir}/mptcp.service
 usr/libexec/
 usr/share/man/man8/mptcpd.8
diff -Nru mptcpd-0.12/debian/rules mptcpd-0.12/debian/rules
--- mptcpd-0.12/debian/rules    2023-02-08 14:29:06.000000000 +0100
+++ mptcpd-0.12/debian/rules    2023-09-25 22:31:11.000000000 +0200
@@ -2,6 +2,7 @@
 # export DH_VERBOSE = 1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export systemdsystemunitdir = $(shell pkg-config 
--variable=systemdsystemunitdir systemd | sed s,^/,,)
 
 %:
        dh $@

Reply via email to