Source: pstotext Version: 1.9-6 Tags: patch User: helm...@debian.org Usertags: rebootstrap
pstotext fails to cross build from source, because debian/rules hard codes the build architecture compiler "gcc". After passing a triplet-prefixed compiler, pstotext cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru pstotext-1.9/debian/changelog pstotext-1.9/debian/changelog --- pstotext-1.9/debian/changelog 2012-03-05 18:28:52.000000000 +0100 +++ pstotext-1.9/debian/changelog 2017-10-13 21:29:04.000000000 +0200 @@ -1,3 +1,10 @@ +pstotext (1.9-6.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use a triplet-prefixed CC. (Closs: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Fri, 13 Oct 2017 21:29:04 +0200 + pstotext (1.9-6) unstable; urgency=low * [debian/rules] use dpkg-buildflags; fix "Please enabled hardened build diff --minimal -Nru pstotext-1.9/debian/rules pstotext-1.9/debian/rules --- pstotext-1.9/debian/rules 2012-03-05 18:28:52.000000000 +0100 +++ pstotext-1.9/debian/rules 2017-10-13 21:29:03.000000000 +0200 @@ -9,6 +9,11 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpkg/architecture.mk +ifeq ($(origin CC),default) +CC = $(DEB_HOST_GNU_TYPE)-gcc +endif + CFLAGS = `dpkg-buildflags --get CFLAGS` CFLAGS += -Wall -DNEED_PROTO LDFLAGS = `dpkg-buildflags --get LDFLAGS` @@ -25,7 +30,7 @@ build-stamp: dh_testdir # The Makefile doesn't use CFLAGS, so we pass flags in an ugly way. - make CC="gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)" + make CC="$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)" touch build-stamp