Source: gdspy
Version: 1.4.2-2
Tags: patch
User: [email protected]
Usertags: cross-satisfiability

gdspy cannot be cross built from source, because its sphinx dependencies
are not cross satisfiable. Fortunately, documentation is already split
out to an architecture-independent -doc package. As such, we can move
these dependencies to B-D-I with relative ease and thus make them
irrelevant to cross building. As a side-effect, this also speeds up the
arch-only build. Please consider applying the attached patch.

Helmut
diff --minimal -Nru gdspy-1.4.2/debian/changelog gdspy-1.4.2/debian/changelog
--- gdspy-1.4.2/debian/changelog        2020-03-21 14:23:50.000000000 +0100
+++ gdspy-1.4.2/debian/changelog        2022-10-31 11:32:20.000000000 +0100
@@ -1,3 +1,10 @@
+gdspy (1.4.2-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move sphinx dependencies to B-D-I. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Mon, 31 Oct 2022 11:32:20 +0100
+
 gdspy (1.4.2-2) unstable; urgency=medium
 
   * Drop build-dependency on python3.7 (Closes: #951843)
diff --minimal -Nru gdspy-1.4.2/debian/control gdspy-1.4.2/debian/control
--- gdspy-1.4.2/debian/control  2020-03-21 14:23:50.000000000 +0100
+++ gdspy-1.4.2/debian/control  2022-10-31 11:32:20.000000000 +0100
@@ -3,12 +3,13 @@
 Priority: optional
 Maintainer: Ruben Undheim <[email protected]>
 Build-Depends: debhelper-compat (= 12),
-               dh-python,
+               dh-sequence-python3,
                python3-all-dev,
                python3-setuptools,
                python3-numpy,
-               python3-sphinx,
-               python3-sphinx-rtd-theme
+Build-Depends-Indep: dh-sequence-sphinxdoc,
+                     python3-sphinx,
+                     python3-sphinx-rtd-theme
 Standards-Version: 4.4.0
 Homepage: https://gdspy.readthedocs.io/en/stable/
 Vcs-Git: https://salsa.debian.org/python-team/modules/gdspy.git
diff --minimal -Nru gdspy-1.4.2/debian/rules gdspy-1.4.2/debian/rules
--- gdspy-1.4.2/debian/rules    2020-03-21 14:23:50.000000000 +0100
+++ gdspy-1.4.2/debian/rules    2022-10-31 11:32:17.000000000 +0100
@@ -9,7 +9,7 @@
 export PYBUILD_NAME=gdspy
 
 %:
-       dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+       dh $@ --buildsystem=pybuild
 
 
 override_dh_auto_build:
@@ -23,10 +23,9 @@
        mkdir -p debian/gdspy-common/usr/share/gdspy/
        mv debian/python3-gdspy/usr/lib/python3/dist-packages/gdspy/data 
debian/gdspy-common/usr/share/gdspy/
 
-override_dh_installdocs:
+execute_before_dh_installdocs-indep:
        cd build && PYTHONPATH=../debian/python3-gdspy/usr/lib/$(shell readlink 
$(shell which python3))/dist-packages http_proxy='127.0.0.1:9' python3 -m 
sphinx -N -bhtml ../docs html # HTML generator
        cd build && PYTHONPATH=../debian/python3-gdspy/usr/lib/$(shell readlink 
$(shell which python3))/dist-packages http_proxy='127.0.0.1:9' python3 -m 
sphinx -N -bman  ../docs man # Manpage generator
-       dh_installdocs
 
 override_dh_clean:
        dh_clean

Reply via email to