tags 647233 + patch
thanks

* Christoph Egger <christ...@debian.org>, 2011-10-31, 21:52:
Your package failed to build on the buildds:

  dh_install -a
  dh_installdocs -a
  dh_sphinxdoc -a
dh_sphinxdoc: Sphinx documentation not found
make: *** [binary-arch] Error 2

This is because:
1) Documentation is in an arch:all package, which is not built on buildds.
2) dh_sphindoc fails if it can't find any documentation.

The solution is to call dh_sphinxdoc only if the -doc package is being built. Please see the attached patch.

--
Jakub Wilk
--- libdesktop-agnostic-0.3.92/debian/rules	2011-10-24 00:58:10.000000000 +0200
+++ libdesktop-agnostic-0.3.92/debian/rules	2011-12-13 14:04:32.000000000 +0100
@@ -29,6 +29,11 @@
 override_dh_python2:
 	dh_python2 --no-guessing-versions
 
+override_dh_sphinxdoc:
+ifneq "$(shell dh_listpackages | grep -- -doc)" ""
+	dh_sphinxdoc
+endif
+
 override_dh_auto_clean:
 	rm -rf build sphinx.pyc
 	./waf --nocache distclean

Reply via email to