Source: newmail Version: 0.5-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
newmail successfully produces broken packages with build architecture ELF objects during cross builds. After adding the host archtecture as a prefix to the toolchain, the resulting packages contain host architecture ELF objects. Please consider applying the attached patch. Helmut
diff -u newmail-0.5/debian/rules newmail-0.5/debian/rules --- newmail-0.5/debian/rules +++ newmail-0.5/debian/rules @@ -17,6 +17,11 @@ # SHELL=/bin/bash +include /usr/share/dpkg/architecture.mk +ifeq ($(origin CC),default) +CC = $(DEB_HOST_GNU_TYPE)-gcc +endif + # The name and version of the source # source = $(shell grep "^Source: " debian/control|head -n 1|sed 's/Source: \(.*\)/\1/g') @@ -33,11 +38,11 @@ CFLAGS = -O2 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) -STRIP = -s +STRIP = -s --strip-program=$(DEB_HOST_GNU_TYPE)-strip endif build: - $(MAKE) CFLAGS="$(CFLAGS) -fomit-frame-pointer -fno-strength-reduce" + $(MAKE) CC='$(CC)' CFLAGS="$(CFLAGS) -fomit-frame-pointer -fno-strength-reduce" touch stamp-build clean: debclean diff -u newmail-0.5/debian/changelog newmail-0.5/debian/changelog --- newmail-0.5/debian/changelog +++ newmail-0.5/debian/changelog @@ -1,3 +1,10 @@ +newmail (0.5-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Prefix build tools with the host architecture (closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 03 Aug 2017 23:20:23 +0200 + newmail (0.5-2) unstable; urgency=low * Fixed description, thanks Arnaud Guiton <arnaud-...@aerine.net> only in patch2: unchanged: --- newmail-0.5.orig/Makefile +++ newmail-0.5/Makefile @@ -30,5 +30,5 @@ rm -f newmail $(OBJS) *~ install: newmail - install -s -o root -g root -m 755 newmail $(prefix)/bin + install -o root -g root -m 755 newmail $(prefix)/bin install -o root -g root -m 644 newmail.1 $(prefix)/share/man/man1