Source: geoip
Version: 1.6.9-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

geoip fails to cross build from source, because it invokes the build
architecture compiler directly from debian/rules and then fails at
dh_stripping the generated executables. The rest of the build already
works for cross building if one supplies ac_cv_func_malloc_0_nonnull=yes
and ac_cv_func_realloc_0_nonnull=yes. Please consider applying the
patch.

Helmut
diff --minimal -Nru geoip-1.6.9/debian/changelog geoip-1.6.9/debian/changelog
--- geoip-1.6.9/debian/changelog        2016-08-22 11:14:56.000000000 +0200
+++ geoip-1.6.9/debian/changelog        2016-09-03 13:49:17.000000000 +0200
@@ -1,3 +1,10 @@
+geoip (1.6.9-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBS: Use triplet prefixed CXX. Closes: #-1
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 03 Sep 2016 13:49:01 +0200
+
 geoip (1.6.9-2) unstable; urgency=high
 
   * Bump Standards-Version to 3.9.8 (no changes required).
diff --minimal -Nru geoip-1.6.9/debian/rules geoip-1.6.9/debian/rules
--- geoip-1.6.9/debian/rules    2016-08-22 11:14:56.000000000 +0200
+++ geoip-1.6.9/debian/rules    2016-09-03 13:49:00.000000000 +0200
@@ -3,7 +3,10 @@
 export DEB_BUILD_OPTIONS+=nocheck
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CXX),default)
+       CXX = $(DEB_HOST_GNU_TYPE)-g++
+endif
 DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog|grep "^Version:"|cut -d" " 
-f2|rev|cut -d- -f2-|rev|cut -d':' -f2)
 
 %:

Reply via email to