Source: libg3d
Version: 0.0.8-22
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libg3d fails to cross build from source, because the build fails running
libg3d-scan. This tool is part of the documentation build. Fortunately,
the documentation resides in an arch:all package, so we don't actually
need to build it during cross builds. Passing --disable-gtk-doc when no
arch:all packages are built fixes the cross build. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru libg3d-0.0.8/debian/changelog libg3d-0.0.8/debian/changelog
--- libg3d-0.0.8/debian/changelog       2016-01-31 17:42:59.000000000 +0100
+++ libg3d-0.0.8/debian/changelog       2017-12-08 20:54:57.000000000 +0100
@@ -1,3 +1,10 @@
+libg3d (0.0.8-22.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not build documentation during arch-only. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 08 Dec 2017 20:54:57 +0100
+
 libg3d (0.0.8-22) unstable; urgency=medium
 
   * debian/copyright:
diff --minimal -Nru libg3d-0.0.8/debian/rules libg3d-0.0.8/debian/rules
--- libg3d-0.0.8/debian/rules   2016-01-31 17:42:59.000000000 +0100
+++ libg3d-0.0.8/debian/rules   2017-12-08 20:54:28.000000000 +0100
@@ -7,6 +7,14 @@
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 BUILDROOT=build
+DOPACKAGES = $(shell dh_listpackages)
+
+CONFIGURE_ARGS = --libexecdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)/libg3d' 
--libdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)/' --disable-libmagic
+ifeq ($(filter libg3d-doc,$(DOPACKAGES)),)
+CONFIGURE_ARGS += --disable-gtk-doc
+else
+CONFIGURE_ARGS += --enable-gtk-doc
+endif
 
 binary binary-arch binary-indep build build-arch build-indep clean install 
install-arch install-indep:
        dh $@ --parallel --list-missing
@@ -23,7 +31,7 @@
        gtkdocize --copy ;\
        autoreconf -fi -I m4 ;\
        dh_autoreconf --as-needed ;\
-       dh_auto_configure -- --enable-gtk-doc 
--libexecdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)/libg3d' 
--libdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)/' --disable-libmagic )
+       dh_auto_configure -- $(CONFIGURE_ARGS) )
 
 override_dh_auto_clean:
        rm -rf "$(CURDIR)/$(BUILDROOT)"

Reply via email to