Source: hfd-service
Version: 0.2.0-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. hfd-service's upstream build system consumes this
variable, but its packaging hard codes the current value. Therefore
hfd-service will FTBFS when we change the value. Consider applying the
attached patch to avoid that failure.

Helmut
diff -Nru hfd-service-0.2.0/debian/changelog hfd-service-0.2.0/debian/changelog
--- hfd-service-0.2.0/debian/changelog  2023-02-05 01:08:28.000000000 +0100
+++ hfd-service-0.2.0/debian/changelog  2023-09-25 15:31:05.000000000 +0200
@@ -1,3 +1,10 @@
+hfd-service (0.2.0-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 15:31:05 +0200
+
 hfd-service (0.2.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru hfd-service-0.2.0/debian/hfd-service.install 
hfd-service-0.2.0/debian/hfd-service.install
--- hfd-service-0.2.0/debian/hfd-service.install        2023-02-05 
01:08:28.000000000 +0100
+++ hfd-service-0.2.0/debian/hfd-service.install        2023-09-25 
15:30:49.000000000 +0200
@@ -1,6 +1,6 @@
 #! /usr/bin/dh-exec
 
 usr/libexec/hfd-service
-[linux-any] lib/systemd/system/hfd-service.service
+[linux-any] ${env:systemdsystemunitdir}/hfd-service.service
 etc/dbus-1/system.d/com.lomiri.hfd.conf
 usr/share/dbus-1/system-services/com.lomiri.hfd.service
diff -Nru hfd-service-0.2.0/debian/rules hfd-service-0.2.0/debian/rules
--- hfd-service-0.2.0/debian/rules      2022-07-20 00:01:10.000000000 +0200
+++ hfd-service-0.2.0/debian/rules      2023-09-25 15:30:55.000000000 +0200
@@ -4,6 +4,8 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+export systemdsystemunitdir = $(shell pkg-config 
--variable=systemdsystemunitdir systemd)
+
 %:
        dh $@ --buildsystem cmake
 

Reply via email to