Source: glbsp
Version: 2.24-4
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

glbsp fails to cross build from source, because debian/rules explicitly
selects the build architecture compiler. The host architecture compiler
should be used instead. Please refer to man dpkg-architecture for a
formal definition of build and host. In any case, the setup is best
deferred to dpkg's buildtools.mk. Please consider applying the attached
patch.

Helmut
diff -u glbsp-2.24/debian/changelog glbsp-2.24/debian/changelog
--- glbsp-2.24/debian/changelog
+++ glbsp-2.24/debian/changelog
@@ -1,3 +1,10 @@
+glbsp (2.24-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk set up CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 12 Sep 2019 06:34:44 +0200
+
 glbsp (2.24-4) unstable; urgency=medium
 
   * Provide doom-node-builder and alternative for /usr/bin/bsp, so
diff -u glbsp-2.24/debian/rules glbsp-2.24/debian/rules
--- glbsp-2.24/debian/rules
+++ glbsp-2.24/debian/rules
@@ -6,7 +6,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-CC = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)-gcc
+-include /usr/share/dpkg/buildtools.mk
 
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk

Reply via email to