Bug#983358: cypari2: demote sphinx dependency to B-D-I

Helmut Grohne helmut at subdivi.de
Mon Feb 22 21:31:15 GMT 2021


Source: cypari2
Version: 2.1.2-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: cross-satisfiability

cypari2 cannot be cross built from source, becuase its Build-Depends are
not satisfiable. Part of the issue is the sphinx dependency.
Fortunately, the documentation is separated into an arch:all package
already. All that is missing here is actually skipping the documentation
build during an arch:only build and demoting the relevant dependencies
to Build-Depends-Indep. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru cypari2-2.1.2/debian/changelog cypari2-2.1.2/debian/changelog
--- cypari2-2.1.2/debian/changelog	2020-11-07 12:01:53.000000000 +0100
+++ cypari2-2.1.2/debian/changelog	2021-02-22 20:48:32.000000000 +0100
@@ -1,3 +1,10 @@
+cypari2 (2.1.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Demote sphinx dependency to B-D-I. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 22 Feb 2021 20:48:32 +0100
+
 cypari2 (2.1.2-1) unstable; urgency=medium
 
   * New upstream version. (Closes: #973351)
diff --minimal -Nru cypari2-2.1.2/debian/control cypari2-2.1.2/debian/control
--- cypari2-2.1.2/debian/control	2020-11-07 11:55:19.000000000 +0100
+++ cypari2-2.1.2/debian/control	2021-02-22 20:48:32.000000000 +0100
@@ -6,15 +6,17 @@
 Build-Depends:
  debhelper (>= 11),
  dh-python (>= 3.20180313),
+ dh-sequence-python3,
  cython3 (>= 0.26),
  libgmp-dev,
  libpari-dev (>= 2.9),
  pari-doc (>= 2.9),
  pari-gp (>= 2.9),
- libjs-mathjax,
  python3-all-dev,
  python3-cysignals-pari (>= 1.8.1),
  python3-setuptools,
+Build-Depends-Indep:
+ dh-sequence-sphinxdoc,
  python3-sphinx,
 Standards-Version: 4.5.0
 Homepage: https://github.com/sagemath/cypari2
diff --minimal -Nru cypari2-2.1.2/debian/rules cypari2-2.1.2/debian/rules
--- cypari2-2.1.2/debian/rules	2020-03-08 19:11:27.000000000 +0100
+++ cypari2-2.1.2/debian/rules	2021-02-22 20:48:32.000000000 +0100
@@ -4,12 +4,11 @@
 export PYBUILD_NAME = cypari2
 
 %:
-	dh $@ --with autoreconf --with python3,sphinxdoc  --buildsystem=pybuild
+	dh $@ --with autoreconf --buildsystem=pybuild
 
-override_dh_auto_build: export http_proxy=127.0.0.1:9
-override_dh_auto_build: export https_proxy=127.0.0.1:9
-override_dh_auto_build:
-	dh_auto_build
+execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
+execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
+execute_after_dh_auto_build-indep:
 	cd docs && $(MAKE) html
 
 override_dh_auto_test:


More information about the debian-science-maintainers mailing list