Source: tcpflow Version: 1.4.5+repack1-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
tcpflow fails to cross build from source, because it doesn't pass --host to ./configure. By replacing the explicit ./configure invocations with dh_auto_configure, this happens automatically and a lot of noise goes away from debian/rules. After doing it, tcpflow cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru tcpflow-1.4.5+repack1/debian/changelog tcpflow-1.4.5+repack1/debian/changelog --- tcpflow-1.4.5+repack1/debian/changelog 2016-10-28 20:49:16.000000000 +0200 +++ tcpflow-1.4.5+repack1/debian/changelog 2017-01-27 07:05:48.000000000 +0100 @@ -1,3 +1,10 @@ +tcpflow (1.4.5+repack1-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCFBS: Let dh_auto_configure pass cross compilers (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Fri, 27 Jan 2017 07:05:48 +0100 + tcpflow (1.4.5+repack1-3) unstable; urgency=medium * Bug fix: "FTBFS with openssl 1.1.0", thanks to Kurt Roeckx (Closes: diff --minimal -Nru tcpflow-1.4.5+repack1/debian/rules tcpflow-1.4.5+repack1/debian/rules --- tcpflow-1.4.5+repack1/debian/rules 2016-07-17 21:24:33.000000000 +0200 +++ tcpflow-1.4.5+repack1/debian/rules 2017-01-27 07:05:45.000000000 +0100 @@ -3,32 +3,14 @@ %: dh $@ -export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - BUILDDIR := $(CURDIR)/debian/build BUILDDIR_NOX := $(CURDIR)/debian/build-nox -conf_opts := \ - --build=$(DEB_BUILD_GNU_TYPE) \ - --prefix=/usr \ - --includedir=/usr/include \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --libdir=/usr/lib/$(DEB_HOST_GNU_TYPE) \ - --libexecdir=/usr/lib/$(DEB_HOST_GNU_TYPE) \ - --disable-maintainer-mode \ - --disable-dependency-tracking - - override_dh_auto_configure: autoreconf -f -i - mkdir -p $(BUILDDIR) - cd $(BUILDDIR); ../../configure $(conf_opts) - mkdir -p $(BUILDDIR_NOX) - cd $(BUILDDIR_NOX); ./../../configure $(conf_opts) --enable-cairo=false + dh_auto_configure --builddirectory=$(BUILDDIR) + dh_auto_configure --builddirectory=$(BUILDDIR_NOX) -- \ + --enable-cairo=false override_dh_auto_build: dh_auto_build -a -- -C $(BUILDDIR_NOX)/src