Source: electric-fence Version: 2.2.4 Tags: patch User: [email protected] Usertags: rebootstrap
electric-fence fails to cross build from source, because it uses the build architecture compiler and runs test despite setting DEB_BUILD_OPTIONS=nocheck. The attached patch solves both issues (the former by deferring to dh_auto_build, which knows how to pass cross compilers for the makefile buildsystem). Please consider applying it. Helmut
diff --minimal -Nru electric-fence-2.2.4/debian/changelog electric-fence-2.2.4+nmu1/debian/changelog --- electric-fence-2.2.4/debian/changelog 2012-07-17 19:40:21.000000000 +0200 +++ electric-fence-2.2.4+nmu1/debian/changelog 2017-01-29 11:10:54.000000000 +0100 @@ -1,3 +1,12 @@ +electric-fence (2.2.4+nmu1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross compilers + + Honour DEB_BUILD_OPTIONS=nocheck + + -- Helmut Grohne <[email protected]> Sun, 29 Jan 2017 11:10:54 +0100 + electric-fence (2.2.4) unstable; urgency=medium (high for hurd users) * Patch from Richard Kettlewell to improve the semaphore strategy of diff --minimal -Nru electric-fence-2.2.4/debian/rules electric-fence-2.2.4+nmu1/debian/rules --- electric-fence-2.2.4/debian/rules 2012-07-02 19:57:37.000000000 +0200 +++ electric-fence-2.2.4+nmu1/debian/rules 2017-01-29 11:10:54.000000000 +0100 @@ -17,7 +17,10 @@ build: build-stamp build-stamp: dh_testdir - make + dh_auto_build -- libefence.a libefence.so.0.0 +ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) + dh_auto_build # default make target runs tests +endif touch build-stamp clean:

