Source: pyyaml
Version: 6.0.3-1
Tags: patch
User: [email protected]
Usertags: cross-satisfiability

pyyaml cannot be cross built from source, due to several problems
relating to is Build-Depends. "python3-all-dev" requests a host
architecture Python interpreter. Instead, this should be
"python3-all-dev:any" plus "libpython3-all-dev". Once fixing this, the
cython3 dependency becomes an issue. While cython3 can exercise
architecture-dependent behavior (and therefore cannot become
M-A:foreign), it often is used in a sensible way. Hence, it can also be
annotated :native here. Once fixing dependencies, pyyaml cross builds
just fine. Please consider applying the attached patch.

Helmut
diff -Nru pyyaml-6.0.3/debian/changelog pyyaml-6.0.3/debian/changelog
--- pyyaml-6.0.3/debian/changelog       2025-12-28 00:52:19.000000000 +0100
+++ pyyaml-6.0.3/debian/changelog       2026-11-22 21:50:21.000000000 +0100
@@ -1,3 +1,12 @@
+pyyaml (6.0.3-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Multiarchify Python Build-Depends.
+    + Annotate cython3 Build-Dependency :native.
+
+ -- Helmut Grohne <[email protected]>  Sun, 22 Nov 2026 21:50:21 +0100
+
 pyyaml (6.0.3-1) unstable; urgency=medium
 
   * New upstream version 6.0.3
diff -Nru pyyaml-6.0.3/debian/control pyyaml-6.0.3/debian/control
--- pyyaml-6.0.3/debian/control 2025-12-28 00:52:19.000000000 +0100
+++ pyyaml-6.0.3/debian/control 2026-11-22 21:50:21.000000000 +0100
@@ -7,10 +7,11 @@
 Build-Depends: debhelper-compat (= 13),
                pybuild-plugin-pyproject,
                dh-sequence-python3,
-               python3-all-dev,
+               libpython3-all-dev,
+               python3-all-dev:any,
                python3-setuptools,
                libyaml-dev,
-               cython3,
+               cython3:native,
 Standards-Version: 4.7.3
 Vcs-Browser: https://salsa.debian.org/python-team/packages/pyyaml
 Vcs-Git: https://salsa.debian.org/python-team/packages/pyyaml.git

Reply via email to