Source: minicom Version: 2.7-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
minicom fails to cross build from source, because it uses the build architecture strip on host architecture ELF objects. Adding the missing triplet prefix makes the cross build succeed. Please consider applying the attached patch. Helmut
diff --minimal -Nru minicom-2.7/debian/changelog minicom-2.7/debian/changelog --- minicom-2.7/debian/changelog 2014-01-01 10:28:01.000000000 +0100 +++ minicom-2.7/debian/changelog 2016-11-02 07:25:05.000000000 +0100 @@ -1,3 +1,10 @@ +minicom (2.7-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use triplet-prefixed strip, closes: #-1. + + -- Helmut Grohne <hel...@subdivi.de> Wed, 02 Nov 2016 07:24:50 +0100 + minicom (2.7-1) unstable; urgency=low * New upstream release, closes: #707564 (configurable status line). diff --minimal -Nru minicom-2.7/debian/rules minicom-2.7/debian/rules --- minicom-2.7/debian/rules 2014-01-01 09:33:32.000000000 +0100 +++ minicom-2.7/debian/rules 2016-11-02 07:26:04.000000000 +0100 @@ -8,6 +8,7 @@ testdir = test -f src/minicom.c && test -f debian/rules testroot = test x`whoami` = xroot +include /usr/share/dpkg/architecture.mk # FOR AUTOCONF 2.52 AND NEWER ONLY ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) CONFFLAGS += --build $(DEB_HOST_GNU_TYPE) @@ -61,7 +62,7 @@ $(MAKE) DESTDIR=$(CURDIR)/debian/minicom install chmod -R go=u-w $(BUILDDIR) ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - cd $(BUILDDIR)/usr/bin && strip -R .comment -R .note ascii-xfr minicom runscript + cd $(BUILDDIR)/usr/bin && $(DEB_HOST_GNU_TYPE)-strip -R .comment -R .note ascii-xfr minicom runscript endif install -p -D -m 0644 debian/menu $(BUILDDIR)/usr/share/menu/minicom find $(BUILDDIR)/usr/share/man -type f -print0 | xargs -0 gzip -9