Source: wireguard Version: 0.0.20180531-1 Tags: patch User: [email protected] Usertags: rebootstrap
wireguard fails to cross build from source, because it does not pass cross compilers to make. The easiest way to fix that is using dh_auto_build. After doing so, wireguard cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru wireguard-0.0.20180531/debian/changelog wireguard-0.0.20180531/debian/changelog --- wireguard-0.0.20180531/debian/changelog 2018-06-01 22:08:33.000000000 +0200 +++ wireguard-0.0.20180531/debian/changelog 2018-06-06 13:45:00.000000000 +0200 @@ -1,3 +1,10 @@ +wireguard (0.0.20180531-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 06 Jun 2018 13:45:00 +0200 + wireguard (0.0.20180531-1) unstable; urgency=medium * New upstream snapshot release diff --minimal -Nru wireguard-0.0.20180531/debian/rules wireguard-0.0.20180531/debian/rules --- wireguard-0.0.20180531/debian/rules 2018-03-16 02:30:26.000000000 +0100 +++ wireguard-0.0.20180531/debian/rules 2018-06-06 13:44:58.000000000 +0200 @@ -13,7 +13,7 @@ $(MAKE) -C src DESTDIR=../debian/wireguard-dkms DKMSDIR=/usr/src/wireguard-$(DEB_VERSION)/ dkms-install override_dh_auto_build-arch: - $(MAKE) -C src/tools $(WIREGUARD_ARGS) + dh_auto_build --sourcedirectory=src/tools -- $(WIREGUARD_ARGS) override_dh_auto_install-arch: $(MAKE) -C src/tools DESTDIR=../../debian/wireguard-tools $(WIREGUARD_ARGS) install

