Bug#842600: double-conversion FTCBFS: uses build architecture compiler
Helmut Grohne
helmut at subdivi.de
Sun Oct 30 17:34:35 UTC 2016
Source: double-conversion
Version: 2.0.1-3
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
double-conversion fails to cross build from source, because it uses the
build architecture compiler. The attached patch replaces the default of
CXX with a triplet-prefixed compiler such that both native and cross
builds just work. Please consider applying it.
Helmut
-------------- next part --------------
diff --minimal -Nru double-conversion-2.0.1/debian/changelog double-conversion-2.0.1/debian/changelog
--- double-conversion-2.0.1/debian/changelog
+++ double-conversion-2.0.1/debian/changelog
@@ -1,3 +1,10 @@
+double-conversion (2.0.1-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Use triplet-prefixed compiler. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Sun, 30 Oct 2016 18:19:44 +0200
+
double-conversion (2.0.1-3) unstable; urgency=medium
* libdouble-conversion1.symbols: replace "any-amd64" by
diff --minimal -Nru double-conversion-2.0.1/debian/rules double-conversion-2.0.1/debian/rules
--- double-conversion-2.0.1/debian/rules
+++ double-conversion-2.0.1/debian/rules
@@ -3,6 +3,10 @@
# Get compilation flags from dpkg-buildflags
include /usr/share/dpkg/default.mk
+ifeq ($(origin CXX),default)
+ CXX = $(DEB_HOST_GNU_TYPE)-g++
+endif
+
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
More information about the debian-science-maintainers
mailing list