Bug#812231: analog FTCBFS: uses build architecture compiler
Source: analog
Version: 2:6.0-21
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
Hi,
analog fails to cross build from source, because it uses the build
architecture compiler. This is noticed at the end of the build when
dh_strip fails to strip the build architecture executables. I am
attaching a patch that passes the correct compiler to the Makefile.
Helmut
diff --minimal -Nru analog-6.0/debian/changelog analog-6.0/debian/changelog
--- analog-6.0/debian/changelog 2015-07-18 20:43:37.000000000 +0200
+++ analog-6.0/debian/changelog 2016-01-21 19:45:49.000000000 +0100
@@ -1,3 +1,10 @@
+analog (2:6.0-21.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Pass cross compiler to Makefile. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Thu, 21 Jan 2016 19:45:25 +0100
+
analog (2:6.0-21) unstable; urgency=medium
* QA upload.
diff --minimal -Nru analog-6.0/debian/rules analog-6.0/debian/rules
--- analog-6.0/debian/rules 2015-07-18 20:43:37.000000000 +0200
+++ analog-6.0/debian/rules 2016-01-21 19:45:17.000000000 +0100
@@ -1,6 +1,10 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/architecture.mk
export BUILD_DATE = $(shell LC_ALL=C date -u --date="`dpkg-parsechangelog -SDate`" +'%b %e %Y %H:%M:%S')
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
%:
dh $@
@@ -22,6 +26,7 @@
-DHEADERDIR=\"\" \
-DLOCKDIR=\"/var/lock/\" \
-DDEFAULTCONFIGFILE=\"/etc/analog.cfg\"' \
+ CC=$(CC) \
analog
# nothing to do
Reply to: