Source: librostlab
Version: 1.0.20-8
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: cross-satisfiability

librostlab fails to cross build from source, because its sphinx-common
build dependency is not satisfiable. We observe that sphinx is only used
for building the documentation, which is nicely split to an arch:all
package. Thus sphinx should be irrelevant to cross building. To get
there, we need to move it to Build-Depends-Indep. The attached patch
moves most dependencies to Build-Depends-Indep or Build-Depends-Arch.
Please consider applying it.

Helmut
diff --minimal -Nru librostlab-1.0.20/debian/changelog 
librostlab-1.0.20/debian/changelog
--- librostlab-1.0.20/debian/changelog  2018-09-20 11:06:29.000000000 +0200
+++ librostlab-1.0.20/debian/changelog  2019-12-10 05:19:05.000000000 +0100
@@ -1,3 +1,10 @@
+librostlab (1.0.20-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Demote Build-Depends to -Arch and -Indep. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 10 Dec 2019 05:19:05 +0100
+
 librostlab (1.0.20-8) unstable; urgency=medium
 
   * Drop unneeded get-orig-source target
diff --minimal -Nru librostlab-1.0.20/debian/control 
librostlab-1.0.20/debian/control
--- librostlab-1.0.20/debian/control    2018-09-20 11:06:29.000000000 +0200
+++ librostlab-1.0.20/debian/control    2019-12-10 05:19:04.000000000 +0100
@@ -5,13 +5,15 @@
 Section: science
 Priority: optional
 Build-Depends: debhelper (>= 11~),
+               dh-linktree,
+Build-Depends-Arch:
                d-shlibs,
+Build-Depends-Indep:
                doxygen,
                graphviz,
                texlive-latex-recommended,
                texlive-fonts-recommended,
                texlive-latex-extra,
-               dh-linktree,
                sphinx-common
 Standards-Version: 4.2.1
 Vcs-Browser: https://salsa.debian.org/med-team/librostlab
diff --minimal -Nru librostlab-1.0.20/debian/rules 
librostlab-1.0.20/debian/rules
--- librostlab-1.0.20/debian/rules      2018-09-20 11:06:29.000000000 +0200
+++ librostlab-1.0.20/debian/rules      2019-12-10 05:19:05.000000000 +0100
@@ -8,13 +8,12 @@
        dh $@ --with linktree
 
 override_dh_auto_configure:
-       dh_auto_configure -- --enable-doxygen-dot --enable-doxygen-pdf
+       dh_auto_configure -- $(if $(filter librostlab-doc,$(shell 
dh_listpackages)),--enable-doxygen-dot --enable-doxygen-pdf)
 
-override_dh_auto_build:
-       dh_auto_build
+override_dh_auto_build-indep:
        $(MAKE) -C lib doxygen-doc
 
-override_dh_install:
+override_dh_install-arch:
        dh_install
        d-shlibmove --commit \
                    --multiarch \

Reply via email to