Source: usbguard
Version: 1.1.2+ds-4
Tags: ftbfs patch
User: helm...@debian.org
Usertags: dep17m2

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

Helmut
diff -Nru usbguard-1.1.2+ds/debian/changelog usbguard-1.1.2+ds/debian/changelog
--- usbguard-1.1.2+ds/debian/changelog  2023-07-18 15:23:11.000000000 +0200
+++ usbguard-1.1.2+ds/debian/changelog  2023-09-26 12:19:09.000000000 +0200
@@ -1,3 +1,10 @@
+usbguard (1.1.2+ds-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when systemd.pc changes systemdsystemunitdir. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 26 Sep 2023 12:19:09 +0200
+
 usbguard (1.1.2+ds-4) unstable; urgency=medium
 
   * Backport patch to fix build with GCC 13 (Closes: #1037881)
diff -Nru usbguard-1.1.2+ds/debian/rules usbguard-1.1.2+ds/debian/rules
--- usbguard-1.1.2+ds/debian/rules      2023-07-18 15:23:11.000000000 +0200
+++ usbguard-1.1.2+ds/debian/rules      2023-09-26 12:18:37.000000000 +0200
@@ -14,6 +14,8 @@
 export DEB_LDFLAGS_MAINT_APPEND = -fPIE -pie
 export DEB_CXXFLAGS_MAINT_APPEND = -pthread -fPIE
 
+export deb_systemdsystemunitdir = $(shell pkg-config 
--variable=systemdsystemunitdir systemd | sed s,^/,,)
+
 %:
        dh ${@}
 
diff -Nru usbguard-1.1.2+ds/debian/usbguard.install 
usbguard-1.1.2+ds/debian/usbguard.install
--- usbguard-1.1.2+ds/debian/usbguard.install   2023-07-18 15:23:11.000000000 
+0200
+++ usbguard-1.1.2+ds/debian/usbguard.install   2023-09-26 12:19:06.000000000 
+0200
@@ -1,6 +1,6 @@
 #! /usr/bin/dh-exec
 etc/usbguard/usbguard-daemon.conf
-lib/systemd/system/*
+${deb_systemdsystemunitdir}
 usr/bin/*
 usr/sbin/*
 usr/share/bash-completion/*

Reply via email to