Source: libwps Version: 0.4.3-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libwps fails to cross build from source, because it configures the build for the build architecture and thus fails finding required componens (e.g. librevenge). In the proposed patch, I switch the explicit ./configure invocation to dh_auto_configure, which knows which flags (--host is relevant here) to pass for cross builds. After applying it, libwps cross builds just fine. Helmut
diff --minimal -Nru libwps-0.4.3/debian/changelog libwps-0.4.3/debian/changelog --- libwps-0.4.3/debian/changelog 2016-07-13 22:19:13.000000000 +0200 +++ libwps-0.4.3/debian/changelog 2016-09-15 05:31:48.000000000 +0200 @@ -1,3 +1,10 @@ +libwps (0.4.3-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass the right flags (closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 15 Sep 2016 05:31:22 +0200 + libwps (0.4.3-3) unstable; urgency=medium * stop dependending on install in build target (forgotten in last diff --minimal -Nru libwps-0.4.3/debian/control libwps-0.4.3/debian/control --- libwps-0.4.3/debian/control 2016-07-07 16:58:15.000000000 +0200 +++ libwps-0.4.3/debian/control 2016-09-15 05:30:16.000000000 +0200 @@ -1,7 +1,7 @@ Source: libwps Priority: optional Maintainer: Rene Engelhard <r...@debian.org> -Build-Depends: debhelper (>= 5), librevenge-dev, autotools-dev, libcppunit-dev, pkg-config, dh-autoreconf, libboost-dev +Build-Depends: debhelper (>= 8), librevenge-dev, autotools-dev, libcppunit-dev, pkg-config, dh-autoreconf, libboost-dev Build-Depends-Indep: doxygen Section: libs diff --minimal -Nru libwps-0.4.3/debian/rules libwps-0.4.3/debian/rules --- libwps-0.4.3/debian/rules 2016-07-13 22:18:15.000000000 +0200 +++ libwps-0.4.3/debian/rules 2016-09-15 05:31:20.000000000 +0200 @@ -24,7 +24,7 @@ #major=`ls src/.libs/lib*.so.* | \ # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` -CONFIGURE_FLAGS += --prefix=/usr --enable-static --disable-werror --disable-silent-rules +CONFIGURE_FLAGS += --enable-static --disable-werror build: build-arch build-indep @@ -35,7 +35,7 @@ dh_autoreconf && \ $(shell DEB_CFLAGS_MAINT_APPEND=-Wall dpkg-buildflags --export=cmdline) \ - ./configure $(CONFIGURE_FLAGS) --without-docs + dh_auto_configure -- $(CONFIGURE_FLAGS) --without-docs $(MAKE) $(NJOBS) ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) cd src/test; $(MAKE) check @@ -52,7 +52,7 @@ # builds the docs *in addition* if [ ! -f debian/autoreconf.after ]; then dh_autoreconf; fi && \ $(shell DEB_CFLAGS_MAINT_APPEND=-Wall dpkg-buildflags --export=cmdline) \ - ./configure $(CONFIGURE_FLAGS) + dh_auto_configure -- $(CONFIGURE_FLAGS) $(MAKE) clean: