Source: mboxgrep Version: 0.7.9-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
mboxgrep fails to cross build from source, because it uses the build architecture strip during make install by calling install -s. Beyond breaking cross compilation, this breaks DEB_BUILD_OPTIONS=notsrip (#437559) and generation of a -dbgsym package. The attached patch disables such stripping and leaves it up to dh_strip. It fixes all mentioned issues. Please consider applying it. Helmut
diff --minimal -Nru mboxgrep-0.7.9/debian/changelog mboxgrep-0.7.9/debian/changelog --- mboxgrep-0.7.9/debian/changelog 2013-09-30 10:55:07.000000000 +0200 +++ mboxgrep-0.7.9/debian/changelog 2018-06-06 06:09:33.000000000 +0200 @@ -1,3 +1,10 @@ +mboxgrep (0.7.9-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Do not strip during make install. (Closes: #-1, #437559) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 06 Jun 2018 06:09:33 +0200 + mboxgrep (0.7.9-3) unstable; urgency=low * Add dummy prerm script to fix upgrade path from 0.7.9-1. diff --minimal -Nru mboxgrep-0.7.9/debian/rules mboxgrep-0.7.9/debian/rules --- mboxgrep-0.7.9/debian/rules 2013-05-16 18:04:24.000000000 +0200 +++ mboxgrep-0.7.9/debian/rules 2018-06-05 13:57:35.000000000 +0200 @@ -7,7 +7,8 @@ dh_installdirs $(MAKE) install prefix=`pwd`/debian/mboxgrep/usr \ mandir=`pwd`/debian/mboxgrep/usr/share/man \ - infodir=`pwd`/debian/mboxgrep/usr/share/info + infodir=`pwd`/debian/mboxgrep/usr/share/info \ + INSTALL='install --strip-program=true' override_dh_auto_clean: -test -f Makefile && $(MAKE) clean