Source: libfm Version: 1.2.5-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libfm fails to cross build from source, because it tries and fails to run /<<PKGBUILDDIR>>/docs/reference/libfm/libfm-scan. That's part of the documentation, which resides in an Arch:all package and poses the question why we run it at all in an arch-only build. The build unconditionally passes --enable-gtk-doc to configure. I suggest changing it to only pass that when libfm-doc is built. This can be complex involving arch-only/indep-only/both builds and stage1 interaction. Thus the easiest way is to let dh_listpackages tell whether we actually build libfm-doc and only then pass the flag. Please consider applying the attached patch. Testing it was not fully possible due to #876614. Helmut
diff --minimal -Nru libfm-1.2.5/debian/changelog libfm-1.2.5/debian/changelog --- libfm-1.2.5/debian/changelog 2016-12-10 01:05:48.000000000 +0100 +++ libfm-1.2.5/debian/changelog 2018-02-14 06:23:37.000000000 +0100 @@ -1,3 +1,10 @@ +libfm (1.2.5-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Only build documentation (--enable-gtk-doc) when we need it. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 14 Feb 2018 06:23:37 +0100 + libfm (1.2.5-1) unstable; urgency=medium * Removing --enable-debug from configure, that enables optimization. diff --minimal -Nru libfm-1.2.5/debian/rules libfm-1.2.5/debian/rules --- libfm-1.2.5/debian/rules 2016-12-10 00:54:28.000000000 +0100 +++ libfm-1.2.5/debian/rules 2018-02-14 06:23:37.000000000 +0100 @@ -4,10 +4,16 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DOPACKAGES = $(shell dh_listpackages) ifneq ($(filter stage1,$(DEB_BUILD_PROFILES)),) CONFIGURE_OPTIONS = --with-extra-only else -CONFIGURE_OPTIONS = --enable-gtk-doc --enable-udisks +CONFIGURE_OPTIONS = --enable-udisks +endif +ifneq ($(filter libfm-doc,$(DOPACKAGES)),) +CONFIGURE_OPTIONS += --enable-gtk-doc +else +CONFIGURE_OPTIONS += --disable-gtk-doc endif %: