Source: isc-dhcp Version: 4.3.3-5 Tags: patch User: helm...@debian.org Usertags: rebootstrap
Hi, isc-dhcp fails to cross build from source. No --host option is passed to the configure script and it duly tries to configure for the build architecture. In that process, configure fails. I am attaching a patch that passes --host for cross builds for your convenience. Helmut
diff --minimal -Nru isc-dhcp-4.3.3/debian/changelog isc-dhcp-4.3.3/debian/changelog --- isc-dhcp-4.3.3/debian/changelog 2015-10-04 00:14:09.000000000 +0200 +++ isc-dhcp-4.3.3/debian/changelog 2016-01-23 17:07:34.000000000 +0100 @@ -1,3 +1,10 @@ +isc-dhcp (4.3.3-5.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass --build and --host to configure (closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 23 Jan 2016 17:07:18 +0100 + isc-dhcp (4.3.3-5) unstable; urgency=medium * Add dependencies for the debug package. diff --minimal -Nru isc-dhcp-4.3.3/debian/rules isc-dhcp-4.3.3/debian/rules --- isc-dhcp-4.3.3/debian/rules 2015-09-27 05:13:14.000000000 +0200 +++ isc-dhcp-4.3.3/debian/rules 2016-01-23 17:07:14.000000000 +0100 @@ -26,9 +26,7 @@ # cross-architecture building ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) -CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc -else -CROSS= +CONFFLAGS+=--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) endif # hurd support @@ -46,17 +44,17 @@ # ldap-enabled build test -f Makefile && $(MAKE) distclean || true ./configure --with-ldap --with-ldapcrypto CFLAGS="$(CFLAGS) -DNSUPDATE" LDFLAGS="-lirs-export" $(CONFFLAGS) - $(MAKE) $(CROSS) + $(MAKE) mv server/dhcpd dhcpd # ddns-disabled build test -f Makefile && $(MAKE) distclean || true ./configure CFLAGS="$(CFLAGS)" $(CONFFLAGS) - $(MAKE) $(CROSS) + $(MAKE) mv client/dhclient dhclient # ldap-disabled build test -f Makefile && $(MAKE) distclean || true ./configure CFLAGS="$(CFLAGS) -DNSUPDATE" LDFLAGS="-lirs-export" $(CONFFLAGS) - $(MAKE) $(CROSS) + $(MAKE) override_dh_install: dh_install