Source: deborphan Version: 1.7.28.8-0.3 Tags: patch User: [email protected] Usertags: rebootstrap
deborphan fails to cross build from source, because it does not pass the required --host flag to configure. Please consider applying the attached patch to fix that. Alternatively, consider invoking ./configure through dh_auto_configure as that does the right thing. Helmut
diff --minimal -Nru deborphan-1.7.28.8/debian/changelog deborphan-1.7.28.8/debian/changelog --- deborphan-1.7.28.8/debian/changelog 2016-02-21 15:29:06.000000000 +0100 +++ deborphan-1.7.28.8/debian/changelog 2016-11-10 10:07:32.000000000 +0100 @@ -1,3 +1,10 @@ +deborphan (1.7.28.8-0.4) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass --host to ./configure during cross builds. Closes: #-1. + + -- Helmut Grohne <[email protected]> Thu, 10 Nov 2016 10:07:32 +0100 + deborphan (1.7.28.8-0.3) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru deborphan-1.7.28.8/debian/rules deborphan-1.7.28.8/debian/rules --- deborphan-1.7.28.8/debian/rules 2016-02-21 15:05:27.000000000 +0100 +++ deborphan-1.7.28.8/debian/rules 2016-11-10 10:07:31.000000000 +0100 @@ -3,19 +3,24 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpkg/architecture.mk + # This is the debhelper compatability version to use. ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) OPTIMISATION="-O0 -g" else OPTIMISATION="-O2 -g" endif +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +CONFIGURE_FLAGS += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) +endif build: build-stamp build-stamp: dh_testdir dh_autotools-dev_updateconfig - CFLAGS=$(OPTIMISATION) ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + CFLAGS=$(OPTIMISATION) ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info $(CONFIGURE_FLAGS) $(MAKE) pkgdatadir=/var/lib/deborphan touch build-stamp

