Bug#1052350: group-service FTBFS when systemdsystemunitdir changes in systemd.pc
Source: group-service
Version: 1.4.0-1
Severity: normal
Tags: ftbfs patch
User: helmutg@debian.org
Usertags: dep17m2
We want to change systemdsystemunitdir in systemd.pc. The upstream build
system of group-service consumes this value, but the Debian packaging
hard codes the current value. Consequently, group-service FTBFS when the
value changes. I'm attaching a patch for your convenience.
Helmut
diff -Nru group-service-1.4.0/debian/changelog group-service-1.4.0/debian/changelog
--- group-service-1.4.0/debian/changelog 2023-01-29 12:41:15.000000000 +0100
+++ group-service-1.4.0/debian/changelog 2023-09-20 11:44:13.000000000 +0200
@@ -1,3 +1,10 @@
+group-service (1.4.0-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTBFS when systemdsystemunitdir changes in systemd.pc (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Wed, 20 Sep 2023 11:44:13 +0200
+
group-service (1.4.0-1) unstable; urgency=medium
* New upstream release.
diff -Nru group-service-1.4.0/debian/group-service.install group-service-1.4.0/debian/group-service.install
--- group-service-1.4.0/debian/group-service.install 2022-06-18 15:02:48.000000000 +0200
+++ group-service-1.4.0/debian/group-service.install 2023-09-20 11:44:03.000000000 +0200
@@ -1,6 +1,6 @@
etc/
-lib/systemd
+${env:systemdsystemunitdir}
usr/libexec/group-admin-daemon
usr/share/dbus-1/
usr/share/locale/
-usr/share/polkit-1/
\ No newline at end of file
+usr/share/polkit-1/
diff -Nru group-service-1.4.0/debian/rules group-service-1.4.0/debian/rules
--- group-service-1.4.0/debian/rules 2022-06-18 00:16:09.000000000 +0200
+++ group-service-1.4.0/debian/rules 2023-09-20 11:43:52.000000000 +0200
@@ -4,6 +4,8 @@
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
+export systemdsystemunitdir=$(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
+
%:
dh $@
Reply to: