Source: dipy
Version: 0.14.0-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

dipy cannot be cross built, because a number of its Build-Depends are
not satisfiable. One of them is python-sphinx. Closer inspection reveals
that python-sphinx does not have to be in Build-Depends, because it is
only needed for building the documentation, which is shipped in an
Architecture: all package. The attached patch moves python-sphinx to
Build-Depends-Indep. In the process, the python-dipy-doc package will no
longer be built at all when the nodoc profile is active. (Formerly, it
would build an empty package.) Using reproducible builds, I verified
that python-dipy-lib is bit-identical between an arch-only and full
build. Please consider applying the attached patch and close this bug
whenever python-sphinx is removed from Build-Depends.

Helmut
diff --minimal -Nru dipy-0.14.0/debian/changelog dipy-0.14.0/debian/changelog
--- dipy-0.14.0/debian/changelog        2018-05-14 20:59:42.000000000 +0200
+++ dipy-0.14.0/debian/changelog        2019-03-03 12:29:06.000000000 +0100
@@ -1,3 +1,10 @@
+dipy (0.14.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Demote python-sphinx to Build-Depends-Indep. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 03 Mar 2019 12:29:06 +0100
+
 dipy (0.14.0-1) unstable; urgency=medium
 
   * Fresh upstream release
diff --minimal -Nru dipy-0.14.0/debian/control dipy-0.14.0/debian/control
--- dipy-0.14.0/debian/control  2018-05-14 20:59:42.000000000 +0200
+++ dipy-0.14.0/debian/control  2019-03-03 12:28:39.000000000 +0100
@@ -9,11 +9,11 @@
                python-scipy,
                cython (>= 0.13),
                python-matplotlib,
-               python-sphinx (>= 1.0),
                python-numpydoc,
                python-nose,
                python-nibabel (>= 2.1.0),
                libgomp1,
+Build-Depends-Indep: python-sphinx (>= 1.0),
 Standards-Version: 3.9.7
 Homepage: http://dipy.org
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-exppsy/dipy.git
@@ -73,6 +73,7 @@
 Section: doc
 Depends: ${misc:Depends}, libjs-jquery
 Suggests: python-dipy
+Build-Profiles: <!nodoc>
 Description: Python library for the analysis of diffusion MRI datasets -- 
documentation
  DIPY is a library for the analysis of diffusion magnetic resonance
  imaging data.
diff --minimal -Nru dipy-0.14.0/debian/rules dipy-0.14.0/debian/rules
--- dipy-0.14.0/debian/rules    2018-05-14 20:59:42.000000000 +0200
+++ dipy-0.14.0/debian/rules    2019-03-03 12:29:05.000000000 +0100
@@ -76,7 +76,7 @@
        : # Prune duplicate LICENSE file
        find debian/ -name LICENSE -delete
        : # Only now lets build docs
-ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(filter python-dipy-doc,$(shell dh_listpackages)))
        : # Copy pregenerated examples
        cp -rp doc-examples/*/examples_built/* doc/examples_built/
        export PYTHONPATH=$$(/bin/ls -d 
$(INSTALL_PATH)/usr/lib/$(PYTHON)/*-packages) \

Reply via email to