Bug#1124946: python-systemd FTCBFS: multiple reasons

Helmut Grohne helmut at subdivi.de
Wed Jan 7 16:12:13 GMT 2026


Source: python-systemd
Version: 235-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: cross-satisfiability ftcbfs
Control: affects 1121810 + src:python-systemd

python-systemd fails to cross build from source for three distinct
reasons. For one thing, it Build-Depends on python3-all-dev, which
implies the host architecture interpreter and cannot be installed.
Python extensions should depend on libpython3-all-dev and
python3-all-dev:native. Once that is addressed, it runs into #1121810
and ignoring that setup.py defaults to using the build architecture
pkg-config. The build system is prepared to honour the PKG_CONFIG
environment variable, but the pybuild debhelper buildsystem does not
export it. An easy way is deferring that task to dpkg's buildtools.mk.
I'm attaching a patch for your convenience.

Helmut
-------------- next part --------------
diff -Nru python-systemd-235/debian/changelog python-systemd-235/debian/changelog
--- python-systemd-235/debian/changelog	2022-08-16 17:12:47.000000000 +0200
+++ python-systemd-235/debian/changelog	2026-01-07 16:59:03.000000000 +0100
@@ -1,3 +1,12 @@
+python-systemd (235-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Multiarchify Python Build-Depends.
+    + Let dpkg's buildtools.mk supply a suitable PKG_CONFIG.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 07 Jan 2026 16:59:03 +0100
+
 python-systemd (235-1) unstable; urgency=medium
 
   * New upstream version 235
diff -Nru python-systemd-235/debian/control python-systemd-235/debian/control
--- python-systemd-235/debian/control	2022-08-16 17:12:47.000000000 +0200
+++ python-systemd-235/debian/control	2026-01-07 16:59:02.000000000 +0100
@@ -11,9 +11,10 @@
 Homepage: https://www.freedesktop.org/wiki/Software/systemd
 Build-Depends: debhelper-compat (= 13),
                dh-python,
+               libpython3-all-dev,
                libsystemd-dev,
                pkg-config,
-               python3-all-dev,
+               python3-all-dev:native,
                python3-setuptools,
 
 Package: python3-systemd
diff -Nru python-systemd-235/debian/rules python-systemd-235/debian/rules
--- python-systemd-235/debian/rules	2022-08-16 17:12:47.000000000 +0200
+++ python-systemd-235/debian/rules	2026-01-07 16:59:03.000000000 +0100
@@ -4,6 +4,8 @@
 #export DEB_BUILD_OPTIONS="nostrip"
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export PYBUILD_NAME=systemd
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
 
 # Explicitly tell dh to use pybuild, otherwise it will pick the
 # makefile build system.


More information about the Pkg-systemd-maintainers mailing list