Source: portsentry Version: 1.2-14 Tags: patch User: helm...@debian.org Usertags: rebootstrap
portsentry fails to cross build from source, because it does not pass cross compilers to make. This task is best deferred to dh_auto_build. Then it uses the build architecture strip. Doing so not only breaks cross compilation, but also generation of -dbgsym packages. Thus removing the -s flag from install. The attached patch makes portsentry cross buildable. Please consider applying it. Helmut
diff --minimal -Nru portsentry-1.2/debian/changelog portsentry-1.2/debian/changelog --- portsentry-1.2/debian/changelog 2014-10-29 12:34:32.000000000 +0100 +++ portsentry-1.2/debian/changelog 2018-04-05 19:24:21.000000000 +0200 @@ -1,3 +1,12 @@ +portsentry (1.2-14.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Defer all stripping to dh_strip. + + -- Helmut Grohne <hel...@subdivi.de> Thu, 05 Apr 2018 19:24:21 +0200 + portsentry (1.2-14) unstable; urgency=medium * debian/control: diff --minimal -Nru portsentry-1.2/debian/rules portsentry-1.2/debian/rules --- portsentry-1.2/debian/rules 2014-10-29 11:34:14.000000000 +0100 +++ portsentry-1.2/debian/rules 2018-04-05 19:24:21.000000000 +0200 @@ -22,10 +22,6 @@ INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 CFLAGS+=-Wall -ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTALL_PROGRAM += -s -endif - # auto update .po files debian/po/templates.pot: debian/templates @debconf-updatepo @@ -40,7 +36,7 @@ dh_testdir # Add here commands to compile the package. - $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" -f Makefile debian-linux + dh_auto_build -- CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" debian-linux touch build-stamp