Source: tuned
Version: 2.20.0-1
Tags: ftbfs patch
User: [email protected]
Usertags: dep17m2

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

Helmut
diff -Nru tuned-2.20.0/debian/changelog tuned-2.20.0/debian/changelog
--- tuned-2.20.0/debian/changelog       2023-02-19 14:22:27.000000000 +0100
+++ tuned-2.20.0/debian/changelog       2023-09-26 11:32:49.000000000 +0200
@@ -1,3 +1,10 @@
+tuned (2.20.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when systemd.pc changes systemdsystemunitdir. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Tue, 26 Sep 2023 11:32:49 +0200
+
 tuned (2.20.0-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru tuned-2.20.0/debian/control tuned-2.20.0/debian/control
--- tuned-2.20.0/debian/control 2023-02-19 14:22:10.000000000 +0100
+++ tuned-2.20.0/debian/control 2023-09-26 11:31:57.000000000 +0200
@@ -12,7 +12,8 @@
                python3-dbus,
                python3-gi,
                python3-pyudev,
-               systemd
+               systemd,
+               systemd-dev,
 Standards-Version: 4.6.2
 Homepage: https://tuned-project.org/
 Vcs-Git: https://salsa.debian.org/debian/tuned.git
diff -Nru tuned-2.20.0/debian/rules tuned-2.20.0/debian/rules
--- tuned-2.20.0/debian/rules   2023-02-19 14:22:10.000000000 +0100
+++ tuned-2.20.0/debian/rules   2023-09-26 11:32:23.000000000 +0200
@@ -4,6 +4,7 @@
 #export DH_VERBOSE = 1
 
 export DEB_PYTHON_INSTALL_LAYOUT=deb_system
+export deb_systemdsystemunitdir = $(shell pkg-config 
--variable=systemdsystemunitdir systemd | sed s,^/,,)
 
 %:
        dh $@ --with python3
diff -Nru tuned-2.20.0/debian/tuned.install tuned-2.20.0/debian/tuned.install
--- tuned-2.20.0/debian/tuned.install   2023-02-19 14:22:10.000000000 +0100
+++ tuned-2.20.0/debian/tuned.install   2023-09-26 11:32:46.000000000 +0200
@@ -11,7 +11,7 @@
 etc/tuned/realtime-virtual-guest-variables.conf
 etc/tuned/realtime-virtual-host-variables.conf
 etc/tuned/tuned-main.conf
-lib/systemd/system/tuned.service
+${env:deb_systemdsystemunitdir}/tuned.service
 usr/lib/python*/dist-packages/tuned/__init__.py
 usr/lib/python*/dist-packages/tuned/admin/
 usr/lib/python*/dist-packages/tuned/consts.py

Reply via email to