Source: postfix-gld Version: 1.7-8 Tags: patch User: [email protected] Usertags: ftcbfs
postfix-glx fails to cross build from source, because it uses build architecture build tools. Please consider applying the attached patch to use the (cross) tools detected by dpkg's buildtools.mk. Helmut
diff --minimal -Nru postfix-gld-1.7/debian/changelog postfix-gld-1.7/debian/changelog --- postfix-gld-1.7/debian/changelog 2016-11-27 18:53:34.000000000 +0100 +++ postfix-gld-1.7/debian/changelog 2019-10-04 04:12:05.000000000 +0200 @@ -1,3 +1,10 @@ +postfix-gld (1.7-8.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dpkg's buildtools.mk supply cross tools. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Fri, 04 Oct 2019 04:12:05 +0200 + postfix-gld (1.7-8) unstable; urgency=medium * Adapt to new metapackage policy. Closes: #845896. diff --minimal -Nru postfix-gld-1.7/debian/rules postfix-gld-1.7/debian/rules --- postfix-gld-1.7/debian/rules 2016-11-27 17:00:00.000000000 +0100 +++ postfix-gld-1.7/debian/rules 2019-10-04 04:12:03.000000000 +0200 @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/buildtools.mk + package = postfix-gld docdir = debian/tmp/usr/share/doc/$(package) @@ -7,13 +9,14 @@ DATABASE = mysql +export CC CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall LDFLAGS := `dpkg-buildflags --get LDFLAGS` CPPFLAGS := `dpkg-buildflags --get CPPFLAGS` -STRIP = true +STRIP_PROGRAM = true ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - STRIP = strip --remove-section=.comment --remove-section=.note + STRIP_PROGRAM = $(STRIP) --remove-section=.comment --remove-section=.note endif build: @@ -55,7 +58,7 @@ cd $(docdir) && gzip -9n HISTORY changelog.Debian ln -s HISTORY.gz $(docdir)/changelog.gz gzip -r9n debian/tmp/usr/share/man - $(STRIP) debian/tmp/usr/sbin/* + $(STRIP_PROGRAM) debian/tmp/usr/sbin/* dpkg-shlibdeps debian/tmp/usr/sbin/* dpkg-gencontrol chown -R 0:0 debian/tmp

