Source: pycryptodome Version: 3.20.0+dfsg-3 Tags: patch User: [email protected] Usertags: cross-satisfiability Control: affects 1121810 + src:pycryptodome
pycryptodome fails to cross build from source for multiple reasons most of which relate to its Build-Depends. The sphinx-related packages are not cross-satisfiable. Fortunately, the documentation has already been separated to a -doc package so it should be possible to move the dependencies to B-D-I. For doing so, the build steps (in execute_after_dh_auto_build) and the debhelper addon must be skipped in arch-only builds. Beyond thus, the python3-all-dev dependency needs to be multiarchified. I'm attaching a patch with the necessary changes. Once applying it, pycryptodome could be cross built if it was not running into #1121810. Helmut
diff -Nru pycryptodome-3.20.0+dfsg/debian/changelog pycryptodome-3.20.0+dfsg/debian/changelog --- pycryptodome-3.20.0+dfsg/debian/changelog 2024-09-05 00:08:03.000000000 +0200 +++ pycryptodome-3.20.0+dfsg/debian/changelog 2026-01-02 19:51:48.000000000 +0100 @@ -1,3 +1,14 @@ +pycryptodome (3.20.0+dfsg-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Request debhelper addons via B-D. + + Skip documentation build during arch-only. + + Move documentation dependencies to B-D-I. + + Multiarchify Python B-D. + + -- Helmut Grohne <[email protected]> Fri, 02 Jan 2026 19:51:48 +0100 + pycryptodome (3.20.0+dfsg-3) unstable; urgency=medium [ YOKOTA Hiroshi ] diff -Nru pycryptodome-3.20.0+dfsg/debian/control pycryptodome-3.20.0+dfsg/debian/control --- pycryptodome-3.20.0+dfsg/debian/control 2024-09-05 00:08:03.000000000 +0200 +++ pycryptodome-3.20.0+dfsg/debian/control 2026-01-02 19:51:48.000000000 +0100 @@ -5,11 +5,13 @@ Priority: optional Build-Depends: cmake, debhelper-compat (= 13), - dh-python, - python3-all-dev, + dh-sequence-python3, + libpython3-all-dev, + python3-all-dev:native, python3-setuptools, - python3-sphinx <!nodoc>, - python3-sphinx-rtd-theme <!nodoc>, +Build-Depends-Indep: dh-sequence-sphinxdoc, + python3-sphinx <!nodoc>, + python3-sphinx-rtd-theme <!nodoc>, Standards-Version: 4.6.2 Rules-Requires-Root: no Homepage: https://www.pycryptodome.org diff -Nru pycryptodome-3.20.0+dfsg/debian/rules pycryptodome-3.20.0+dfsg/debian/rules --- pycryptodome-3.20.0+dfsg/debian/rules 2024-09-05 00:08:03.000000000 +0200 +++ pycryptodome-3.20.0+dfsg/debian/rules 2026-01-02 19:51:48.000000000 +0100 @@ -12,7 +12,7 @@ CMAKE_CXXFLAGS = ${CXXFLAGS} ${CPPFLAGS} %: - dh $@ --with python3,sphinxdoc --buildsystem=pybuild + dh $@ --buildsystem=pybuild override_dh_auto_test: for PY3VER in $(shell py3versions -sv); do \ @@ -24,7 +24,7 @@ execute_before_dh_auto_build: touch .separate_namespace -execute_after_dh_auto_build: +execute_after_dh_auto_build-indep: PYTHONPATH=. python3 -m sphinx -N -bhtml Doc/ build/html # HTML generator PYTHONPATH=. python3 -m sphinx -N -bman Doc/ build/man # Manpage generator

