Source: wide-dhcpv6 Version: 20080615-21 Tags: patch User: helm...@debian.org Usertags: rebootstrap
wide-dhcpv6 fails to cross build from source, because it does not pass --host to configure. The easiest way of doing so is using dh_auto_configure. It also confuses build and host. After fixing both, wide-dhcpv6 cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru wide-dhcpv6-20080615/debian/changelog wide-dhcpv6-20080615/debian/changelog --- wide-dhcpv6-20080615/debian/changelog 2018-03-25 15:44:40.000000000 +0200 +++ wide-dhcpv6-20080615/debian/changelog 2018-08-08 21:56:01.000000000 +0200 @@ -1,3 +1,12 @@ +wide-dhcpv6 (20080615-21.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Fix build/host confusion introduced in #893988. + + Let dh_auto_configure pass --host to ./configure. + + -- Helmut Grohne <hel...@subdivi.de> Wed, 08 Aug 2018 21:56:01 +0200 + wide-dhcpv6 (20080615-21) unstable; urgency=medium [ Cyril Brulebois ] diff --minimal -Nru wide-dhcpv6-20080615/debian/rules wide-dhcpv6-20080615/debian/rules --- wide-dhcpv6-20080615/debian/rules 2018-03-25 15:36:08.000000000 +0200 +++ wide-dhcpv6-20080615/debian/rules 2018-08-08 21:55:59.000000000 +0200 @@ -3,6 +3,8 @@ # output every command that modifies files on the build system. #export DH_VERBOSE = 1 +include /usr/share/dpkg/architecture.mk + # Security Hardening export DEB_BUILD_MAINT_OPTIONS = hardening=+all @@ -15,12 +17,10 @@ for dir in build build-udeb; do \ rsync -a --exclude debian/ --exclude .pc/ --exclude .git/ . $$dir; \ [ $$dir = "build-udeb" ] && \ - sed "s,^CLIENTLIBS=.*,CLIENTLIBS=$$(find /usr/lib/$$(dpkg-architecture -qDEB_BUILD_MULTIARCH) -name libfl.a)," \ + sed "s,^CLIENTLIBS=.*,CLIENTLIBS=$$(find /usr/lib/$(DEB_HOST_MULTIARCH) -name libfl.a)," \ -i $$dir/Makefile.in; \ - cd $$dir && \ - ./configure --prefix=/usr --mandir=\$${prefix}/share/man \ - --with-localdbdir=/var/lib/dhcpv6 --sysconfdir=/etc/wide-dhcpv6 && \ - cd -; \ + dh_auto_configure --sourcedirectory $$dir -- \ + --with-localdbdir=/var/lib/dhcpv6 --sysconfdir=/etc/wide-dhcpv6; \ done override_dh_auto_build: