Source: kmscon Version: 9.0.0-4 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. kmscon's upstream build system consumes this variable, but the packaging hard codes the current value. When we change it, kmscon will FTBFS. Consider applying the attached patch to avoid that failure. Helmut
diff -Nru kmscon-9.0.0/debian/changelog kmscon-9.0.0/debian/changelog --- kmscon-9.0.0/debian/changelog 2023-01-29 20:19:17.000000000 +0100 +++ kmscon-9.0.0/debian/changelog 2023-09-25 15:59:39.000000000 +0200 @@ -1,3 +1,10 @@ +kmscon (9.0.0-4.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:59:39 +0200 + kmscon (9.0.0-4) unstable; urgency=medium [ Debian Janitor ] diff -Nru kmscon-9.0.0/debian/kmscon.install kmscon-9.0.0/debian/kmscon.install --- kmscon-9.0.0/debian/kmscon.install 2023-01-29 20:07:23.000000000 +0100 +++ kmscon-9.0.0/debian/kmscon.install 2023-09-25 15:59:36.000000000 +0200 @@ -1,5 +1,5 @@ debian/kmscon.conf etc/needrestart/conf.d -lib/systemd/system/kmsconvt@.service +${env:systemdsystemunitdir}/kmsconvt@.service usr/bin/kmscon usr/lib/${DEB_HOST_MULTIARCH}/kmscon/mod-*.so usr/libexec/kmscon/kmscon diff -Nru kmscon-9.0.0/debian/not-installed kmscon-9.0.0/debian/not-installed --- kmscon-9.0.0/debian/not-installed 2023-01-29 20:07:23.000000000 +0100 +++ kmscon-9.0.0/debian/not-installed 2023-09-25 15:59:39.000000000 +0200 @@ -1 +1 @@ -lib/systemd/system/kmscon.service +${env:systemdsystemunitdir}/kmscon.service diff -Nru kmscon-9.0.0/debian/rules kmscon-9.0.0/debian/rules --- kmscon-9.0.0/debian/rules 2023-01-29 20:07:23.000000000 +0100 +++ kmscon-9.0.0/debian/rules 2023-09-25 15:59:39.000000000 +0200 @@ -6,7 +6,7 @@ export DEB_BUILD_MAINT_OPTIONS := qa=+bug hardening=+all reproducible=+all export DEB_CFLAGS_MAINT_APPEND := -Wno-error=array-bounds - +export systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,) %: dh $@ --without single-binary