Source: cloudflare-ddns Version: 2.0.0-4 Tags: ftbfs patch User: helm...@debian.org Usertags: dep17m2
Hi, systemd wants to change the location of system units in systemd.pc to point below /usr. Since the last upload, cloudflare-ddns consumes this value, but it fails to build once the value is changed, because it is only integrated into the upstream build system, but the .install file hard codes the location. I'm attaching a patch that fixes this future FTBFS. Helmut
diff -Nru cloudflare-ddns-2.0.0/debian/changelog cloudflare-ddns-2.0.0/debian/changelog --- cloudflare-ddns-2.0.0/debian/changelog 2023-04-13 15:29:29.000000000 +0200 +++ cloudflare-ddns-2.0.0/debian/changelog 2023-09-20 10:25:10.000000000 +0200 @@ -1,3 +1,10 @@ +cloudflare-ddns (2.0.0-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Do not fail building if systemd.pc moves the unit directory. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 20 Sep 2023 10:25:10 +0200 + cloudflare-ddns (2.0.0-4) unstable; urgency=medium * d/patches: use systemd.pc to get systemd paths. diff -Nru cloudflare-ddns-2.0.0/debian/cloudflare-ddns.install cloudflare-ddns-2.0.0/debian/cloudflare-ddns.install --- cloudflare-ddns-2.0.0/debian/cloudflare-ddns.install 2023-04-13 15:20:20.000000000 +0200 +++ cloudflare-ddns-2.0.0/debian/cloudflare-ddns.install 2023-09-20 10:25:10.000000000 +0200 @@ -1,5 +1,5 @@ #!/usr/bin/dh-exec -[linux-any] lib/systemd/ +[linux-any] ${systemd_system_unit_dir} [linux-any] usr/lib/sysusers.d/ etc/ usr/bin/ diff -Nru cloudflare-ddns-2.0.0/debian/rules cloudflare-ddns-2.0.0/debian/rules --- cloudflare-ddns-2.0.0/debian/rules 2023-04-13 09:34:05.000000000 +0200 +++ cloudflare-ddns-2.0.0/debian/rules 2023-09-20 10:25:10.000000000 +0200 @@ -3,6 +3,8 @@ # optimize=-lto because I use Meson's LTO export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto qa=+all +export systemd_system_unit_dir=$(shell pkg-config --variable=systemd_system_unit_dir systemd | sed s,^/,,) + %: dh $@