Source: setserial
Version: 2.17-50
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

setserial fails to cross build from source, because it configures for
the build architecture. Since the ./configure is so old, one shouldn't
pass --host, but export a suitable CC. After doing so, it cross builds
successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru setserial-2.17/debian/changelog 
setserial-2.17/debian/changelog
--- setserial-2.17/debian/changelog     2017-01-22 15:39:00.000000000 +0100
+++ setserial-2.17/debian/changelog     2017-09-19 07:45:26.000000000 +0200
@@ -1,3 +1,10 @@
+setserial (2.17-50.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export a triplet-prefixed CC (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 19 Sep 2017 07:45:26 +0200
+
 setserial (2.17-50) unstable; urgency=medium
 
   * ack NMU, thanks to Martin Pitt and Christian Hofstaedtler for
diff --minimal -Nru setserial-2.17/debian/rules setserial-2.17/debian/rules
--- setserial-2.17/debian/rules 2017-01-22 15:36:51.000000000 +0100
+++ setserial-2.17/debian/rules 2017-09-19 06:46:21.000000000 +0200
@@ -2,6 +2,10 @@
 # Copyright 1994,1995 by Ian Jackson, 1998 Christoph Lameter
 # debian/rules for setserial, by Gordon Russell.
 
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+export CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
 
 DESTDIR = $(CURDIR)/debian/setserial
 arch = $(shell dpkg-architecture -qDEB_BUILD_ARCH)

Reply via email to