Source: kgb
Version: 1.0b4+ds-14
Tags: patch
User: [email protected]
Usertags: ftcbfs

kgb fails to cross build from source, because debian/rules uses the
build architecture compiler as a make default for CXX. The easiest way
of fixing that is using dpkg's buildtools.mk. Please consider applying
the attached patch.

Helmut
diff --minimal -Nru kgb-1.0b4+ds/debian/changelog kgb-1.0b4+ds/debian/changelog
--- kgb-1.0b4+ds/debian/changelog       2017-01-26 00:02:13.000000000 +0100
+++ kgb-1.0b4+ds/debian/changelog       2019-09-26 16:07:06.000000000 +0200
@@ -1,3 +1,10 @@
+kgb (1.0b4+ds-14.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Seed CXX from dpkg's buildtools.mk (Closes: #-1).
+
+ -- Helmut Grohne <[email protected]>  Thu, 26 Sep 2019 16:07:06 +0200
+
 kgb (1.0b4+ds-14) unstable; urgency=medium
 
   * Acknowledge the NMU changes
diff --minimal -Nru kgb-1.0b4+ds/debian/rules kgb-1.0b4+ds/debian/rules
--- kgb-1.0b4+ds/debian/rules   2017-01-25 23:50:58.000000000 +0100
+++ kgb-1.0b4+ds/debian/rules   2019-09-26 16:07:05.000000000 +0200
@@ -2,8 +2,8 @@
 
 #export DH_VERBOSE=1
 
-DEB_HOST_GNU_TYPE      ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE     ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+include /usr/share/dpkg/architecture.mk
+-include /usr/share/dpkg/buildtools.mk
 
 export DEB_BUILD_MAINT_OPTIONS:=hardening=+all
 

Reply via email to