Package: sysstat
Version: 12.7.5
Tags: patch

Since systemd moved to /usr/lib, the old /lib/systemd install rule
didn't match anymore. However, the fix in
https://bugs.debian.org/1057421 was actually misguided. It fixed the
"not found error", but it was still wrong. It caused the package to
not compile with old systemd anymore (don't ask why I needed to
compile for that).

The fix missed the fact that a .sleep file was installed into
systemdsleepdir (as mentioned in configure.ac line 58) while other
systemd files end up in systemdsystemunitdir. This was missed because
with a new systemd *all* systemd files are actually caught by the /usr
install rule right below the changed line from the patch in
above-mentioned bug.

Attached, you find a patch that actually fixes the build for both old
and new versions of systemd.

Cheers,
Sven
diff -ur sysstat-12.7.5/debian/rules sysstat-12.7.5.patched/debian/rules
--- sysstat-12.7.5/debian/rules	2024-01-15 22:49:31.000000000 +0000
+++ sysstat-12.7.5.patched/debian/rules	2024-02-19 11:44:44.995241477 +0000
@@ -20,6 +20,7 @@
 DFLAGS :=
 
 export deb_systemdsystemunitdir=$(shell pkgconf --variable=systemdsystemunitdir systemd | sed s,^/,,)
+export deb_systemdsleepdir=$(shell pkgconf --variable=systemdsleepdir systemd | sed s,^/,,)
 
 %:
 	dh ${@}
diff -ur sysstat-12.7.5/debian/sysstat.install sysstat-12.7.5.patched/debian/sysstat.install
--- sysstat-12.7.5/debian/sysstat.install	2024-01-15 22:49:31.000000000 +0000
+++ sysstat-12.7.5.patched/debian/sysstat.install	2024-02-19 11:44:47.011246602 +0000
@@ -1,5 +1,6 @@
 debian/debian-sa1 usr/libexec/sysstat
 debian/tmp/etc/
 debian/tmp/${env:deb_systemdsystemunitdir}
+debian/tmp/${env:deb_systemdsleepdir}
 debian/tmp/usr/
 debian/tmp/var/

Reply via email to