Source: xl2tpd Version: 1.3.12-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
xl2tpd fails to cross build from source, because it uses the build architecture compiler. The easiest way to pass cross compilers to make is letting dh_auto_build do it. After doing so, xl2tpd cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru xl2tpd-1.3.12/debian/changelog xl2tpd-1.3.12/debian/changelog --- xl2tpd-1.3.12/debian/changelog 2018-05-19 00:08:21.000000000 +0200 +++ xl2tpd-1.3.12/debian/changelog 2018-05-24 06:08:31.000000000 +0200 @@ -1,3 +1,10 @@ +xl2tpd (1.3.12-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCFBS: Let dh_auto_build pass cross compilers to make. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 24 May 2018 06:08:31 +0200 + xl2tpd (1.3.12-1) unstable; urgency=medium [ Samir Hussain ] diff --minimal -Nru xl2tpd-1.3.12/debian/rules xl2tpd-1.3.12/debian/rules --- xl2tpd-1.3.12/debian/rules 2017-10-22 19:40:48.000000000 +0200 +++ xl2tpd-1.3.12/debian/rules 2018-05-24 06:06:02.000000000 +0200 @@ -27,7 +27,7 @@ build-indep: build-stamp build-stamp: configure-stamp dh_testdir - $(MAKE) CFLAGS=" -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I$(KERNELSRC)/include/ -DIP_ALLOCATION -DUSE_KERNEL $(shell dpkg-buildflags --get CFLAGS)" CPPFLAGS=" -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I$(KERNELSRC)/include/ -DIP_ALLOCATION $(shell dpkg-buildflags --get CPPFLAGS)" LDFLAGS=" $(shell dpkg-buildflags --get LDFLAGS)" + dh_auto_build -- CFLAGS=" -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I$(KERNELSRC)/include/ -DIP_ALLOCATION -DUSE_KERNEL $(shell dpkg-buildflags --get CFLAGS)" CPPFLAGS=" -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE -O2 -fno-builtin -Wall -DSANITY -DLINUX -I$(KERNELSRC)/include/ -DIP_ALLOCATION $(shell dpkg-buildflags --get CPPFLAGS)" LDFLAGS=" $(shell dpkg-buildflags --get LDFLAGS)" touch $@ clean: