Source: ifmail
Version: 2.14tx8.10-24
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

ifmail fails to cross build from source, because it does not pass cross
tools to make. The easiest way of fixing that - using dh_auto_build -
does not entirely fix ifmail. It also passes --strip and thus breaks
DEB_BUILD_OPTIONS=nostrip and generation of -dbgsym packages in addition
to breaking cross building. Dropping the --strip flag and leaving that
part up to dh_strip is the solution here. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru ifmail-2.14tx8.10/debian/changelog 
ifmail-2.14tx8.10/debian/changelog
--- ifmail-2.14tx8.10/debian/changelog  2019-02-17 19:16:41.000000000 +0100
+++ ifmail-2.14tx8.10/debian/changelog  2019-05-19 20:48:27.000000000 +0200
@@ -1,3 +1,12 @@
+ifmail (2.14tx8.10-24.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>  Sun, 19 May 2019 20:48:27 +0200
+
 ifmail (2.14tx8.10-24) unstable; urgency=medium
 
   * Updated the Vcs-* fields for salsa.
diff --minimal -Nru ifmail-2.14tx8.10/debian/rules 
ifmail-2.14tx8.10/debian/rules
--- ifmail-2.14tx8.10/debian/rules      2019-02-17 19:12:56.000000000 +0100
+++ ifmail-2.14tx8.10/debian/rules      2019-05-19 20:48:27.000000000 +0200
@@ -8,7 +8,7 @@
 build: .stamp-build
 .stamp-build:
        dh_testdir
-       $(MAKE) EXTRA_CFLAGS="$(CFLAGS) $(CPPFLAGS)" EXTRA_LDFLAGS="$(CFLAGS) 
$(LDFLAGS)"
+       dh_auto_build -- EXTRA_CFLAGS="$(CFLAGS) $(CPPFLAGS)" 
EXTRA_LDFLAGS="$(CFLAGS) $(LDFLAGS)"
        touch $@
 
 clean:
@@ -49,9 +49,9 @@
 
        # copy binaries
        install --mode=755 md/fido.daily debian/ifmail/usr/lib/ifmail/
-       cd ifcico && install --strip ifcico ifindex ifinfo ifreq nlpatch \
+       cd ifcico && install ifcico ifindex ifinfo ifreq nlpatch \
                nlookup ../ifgate/ifstat ../debian/ifcico/usr/lib/ifmail/
-       install --strip ifgate/ifmail ifgate/ifpack ifgate/iftoss \
+       install ifgate/ifmail ifgate/ifpack ifgate/iftoss \
                ifgate/ifunpack debian/ifgate/usr/lib/ifmail/
 
        touch debian/ifgate/etc/ifmail/aliases

Reply via email to