Source: python-psutil
Version: 7.1.0-1
Tags: patch
User: [email protected]
Usertags: cross-satisfiability
Control: affects 1121810 + src:python-psutil

python-psutil cannot be cross built from source, because it
Build-Depends on the host architecture Python interpreter development
package. The host Python fails postinst as it attempts byte compilation.
What it really wanted was a build architecture interpreter and a host
architecture development environment. This is usually expressed as
libpython3-all-dev and python3-all-dev:native. Once fixing this, it also
runs into #1121810. I'm attaching a patch for your convenience. Please
consider applying it.

Helmut
diff -Nru python-psutil-7.1.0/debian/changelog 
python-psutil-7.1.0/debian/changelog
--- python-psutil-7.1.0/debian/changelog        2025-10-05 08:26:16.000000000 
+0200
+++ python-psutil-7.1.0/debian/changelog        2025-12-19 22:36:08.000000000 
+0100
@@ -1,3 +1,10 @@
+python-psutil (7.1.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Multiarchify Python Build-Depends. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Fri, 19 Dec 2025 22:36:08 +0100
+
 python-psutil (7.1.0-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru python-psutil-7.1.0/debian/control python-psutil-7.1.0/debian/control
--- python-psutil-7.1.0/debian/control  2025-10-05 08:26:16.000000000 +0200
+++ python-psutil-7.1.0/debian/control  2025-12-19 22:36:06.000000000 +0100
@@ -3,9 +3,10 @@
 Priority: optional
 Maintainer: Sandro Tosi <[email protected]>
 Build-Depends: debhelper-compat (= 13),
+               libpython3-all-dev,
                procps,
                pybuild-plugin-pyproject,
-               python3-all-dev,
+               python3-all-dev:native,
                python3-pytest <!nocheck>,
                python3-pytest-instafail <!nocheck>,
                python3-pytest-subtests <!nocheck>,

Reply via email to