Source: fcoe-utils
Version: 1.0.34-2
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. When doing so, fcoe-utils FTBFS, because its upstream
build system consumes this value, but debian/rules assumes the current
value. I'm attaching a patch to fix that future build failure.

Helmut
diff -Nru fcoe-utils-1.0.34/debian/changelog fcoe-utils-1.0.34/debian/changelog
--- fcoe-utils-1.0.34/debian/changelog  2022-07-25 05:05:25.000000000 +0200
+++ fcoe-utils-1.0.34/debian/changelog  2023-09-20 11:00:13.000000000 +0200
@@ -1,3 +1,11 @@
+fcoe-utils (1.0.34-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when systemdsystemunitdir variable changes in systemd.pc
+    (Closes: #-1).
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 20 Sep 2023 11:00:13 +0200
+
 fcoe-utils (1.0.34-2) unstable; urgency=medium
 
   * Fix FTBFS w/GCC-12 (Closes: #1012922)
diff -Nru fcoe-utils-1.0.34/debian/rules fcoe-utils-1.0.34/debian/rules
--- fcoe-utils-1.0.34/debian/rules      2022-07-25 05:05:25.000000000 +0200
+++ fcoe-utils-1.0.34/debian/rules      2023-09-20 11:00:11.000000000 +0200
@@ -7,6 +7,8 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+systemdsystemunitdir=$(shell pkg-config --variable=systemdsystemunitdir 
systemd)
+
 %:
        dh $@;
 
@@ -16,7 +18,7 @@
 
 override_dh_auto_install:
        dh_auto_install
-       mv debian/fcoe-utils/lib/systemd/system/fcoe.service 
debian/fcoe-utils/lib/systemd/system/fcoe-utils.service
+       mv debian/fcoe-utils/${systemdsystemunitdir}/fcoe.service 
debian/fcoe-utils/${systemdsystemunitdir}/fcoe-utils.service
 
 override_dh_installinit:
        dh_installinit --no-start

Reply via email to