Bug#946135: pytango: move documentation dependencies to Build-Depends-Indep

Helmut Grohne helmut at subdivi.de
Wed Dec 4 05:22:29 GMT 2019


Source: pytango
Version: 9.3.0-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: cross-satisfiability

pytango cannot satisfy its cross Build-Depends. One reason for that is
its documentation dependencies. However, since the documentation is
shipped in an architecture:all package, it shouldn't be needed for
performing an arch-only build. So these dependencies should be
sufficient in Build-Depend-Indep where they stop mattering for cross
builds. The attached patch implements that. It also drops the <!nodoc>
build profile, because it is not needed. For pytango, performing a build
without documentation simply becomes an arch-only build. Please consider
applying the patch.

Helmut
-------------- next part --------------
diff --minimal -Nru pytango-9.3.0/debian/changelog pytango-9.3.0/debian/changelog
--- pytango-9.3.0/debian/changelog	2019-11-22 18:08:43.000000000 +0100
+++ pytango-9.3.0/debian/changelog	2019-12-03 16:35:09.000000000 +0100
@@ -1,3 +1,10 @@
+pytango (9.3.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Demote documentation dependencies to B-D-I. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 03 Dec 2019 16:35:09 +0100
+
 pytango (9.3.0-3) unstable; urgency=medium
 
   [ Bodo-Merle Sandor ]
diff --minimal -Nru pytango-9.3.0/debian/control pytango-9.3.0/debian/control
--- pytango-9.3.0/debian/control	2019-11-22 18:08:43.000000000 +0100
+++ pytango-9.3.0/debian/control	2019-12-03 16:35:08.000000000 +0100
@@ -6,20 +6,21 @@
 Priority: optional
 Build-Depends: debhelper-compat (= 12),
                dh-python,
-               graphviz <!nodoc>,
                libboost-python-dev,
                libtango-dev,
                pkg-config,
                python3-all-dev,
                python3-distro,
-               python3-gevent <!nodoc>,
-               python3-mock <!nodoc>,
                python3-numpy,
                python3-setuptools,
                python3-six,
-               python3-sphinx <!nodoc>,
-               python3-sphinx-rtd-theme <!nodoc>,
                sphinx-common
+Build-Depends-Indep:
+               graphviz,
+               python3-gevent,
+               python3-mock,
+               python3-sphinx,
+               python3-sphinx-rtd-theme,
 Standards-Version: 4.4.1
 Vcs-Browser: https://salsa.debian.org/science-team/pytango
 Vcs-Git: https://salsa.debian.org/science-team/pytango.git
diff --minimal -Nru pytango-9.3.0/debian/rules pytango-9.3.0/debian/rules
--- pytango-9.3.0/debian/rules	2019-11-22 18:08:43.000000000 +0100
+++ pytango-9.3.0/debian/rules	2019-12-03 16:35:09.000000000 +0100
@@ -13,11 +13,10 @@
 	rm -rf *.egg-info
 	rm -rf build
 
-override_dh_sphinxdoc:
-ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
+override_dh_sphinxdoc-arch:
+override_dh_sphinxdoc-indep:
 	PYBUILD_SYSTEM=custom \
 	PYBUILD_BUILD_ARGS="PYTHONPATH={build_dir} {interpreter} -m sphinx -N -bhtml doc build/html" dh_auto_build  # HTML generator
 	dh_installdocs "build/html" -p python-tango-doc
 	dh_installdocs "examples" -p python-tango-doc
 	dh_sphinxdoc -O--buildsystem=pybuild
-endif


More information about the debian-science-maintainers mailing list