[pkg-lxc-devel] Bug#1052379: lxc FTBFS when systemdsystemunitdir changes in systemd.pc

Helmut Grohne helmut at subdivi.de
Thu Sep 21 08:55:02 BST 2023


Source: lxc
Version: 1:5.0.2-1
Severity: normal
Tags: ftbfs patch
User: helmutg at debian.org
Usertags: dep17m2

We want to change systemdsystemunitdir in systemd.pc. The lxc upstream
build system consumes this variable, but the Debian packaging hard codes
the current value. When it changes, lxc will FTBFS. Consider applying
the attached patch to prevent that from happening.

Helmut
-------------- next part --------------
diff -Nru lxc-5.0.2/debian/changelog lxc-5.0.2/debian/changelog
--- lxc-5.0.2/debian/changelog	2023-01-17 03:53:00.000000000 +0100
+++ lxc-5.0.2/debian/changelog	2023-09-21 08:36:11.000000000 +0200
@@ -1,3 +1,10 @@
+lxc (1:5.0.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when systemdsystemunitdir changes in systemd.pc. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Thu, 21 Sep 2023 08:36:11 +0200
+
 lxc (1:5.0.2-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru lxc-5.0.2/debian/lxc.install lxc-5.0.2/debian/lxc.install
--- lxc-5.0.2/debian/lxc.install	2023-01-17 02:31:24.000000000 +0100
+++ lxc-5.0.2/debian/lxc.install	2023-09-21 08:36:03.000000000 +0200
@@ -6,7 +6,7 @@
 etc/init.d
 etc/lxc
 etc/sysctl.d
-lib
+${env:systemdsystemunitdir}
 usr/bin
 usr/libexec/lxc/lxc-containers
 usr/libexec/lxc/lxc-net
diff -Nru lxc-5.0.2/debian/rules lxc-5.0.2/debian/rules
--- lxc-5.0.2/debian/rules	2023-01-17 02:31:24.000000000 +0100
+++ lxc-5.0.2/debian/rules	2023-09-21 08:36:11.000000000 +0200
@@ -2,6 +2,8 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+export systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
+
 %:
 	dh ${@} --buildsystem=meson
 


More information about the Pkg-lxc-devel mailing list