Bug#911249: between FTCBFS: builds for the wrong architecture

Helmut Grohne helmut at subdivi.de
Wed Oct 17 18:13:51 BST 2018


Source: between
Version: 6+dfsg1-3
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

between fails to cross build from source, because it builds for the
wrong architecture. No cross tools are passed to make. dh_auto_build
fixes that in theory. However, between uses the uncommon variable GXX,
so we need to rename the compiler. That's sufficient to make between
cross buildable. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru between-6+dfsg1/debian/changelog between-6+dfsg1/debian/changelog
--- between-6+dfsg1/debian/changelog	2013-05-10 15:02:07.000000000 +0200
+++ between-6+dfsg1/debian/changelog	2018-10-17 16:26:11.000000000 +0200
@@ -1,3 +1,12 @@
+between (6+dfsg1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Pass the C++ compiler as GXX.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 17 Oct 2018 16:26:11 +0200
+
 between (6+dfsg1-3) unstable; urgency=low
 
   * Bump the debhelper compat to 9 and enable extra hardening
diff --minimal -Nru between-6+dfsg1/debian/rules between-6+dfsg1/debian/rules
--- between-6+dfsg1/debian/rules	2013-05-09 09:23:18.000000000 +0200
+++ between-6+dfsg1/debian/rules	2018-10-17 16:26:11.000000000 +0200
@@ -20,7 +20,7 @@
 	sed -i -e 's/^OPTIMIZE_FLAG = .*/OPTIMIZE_FLAG = /' game7/gameSource/Makefile
 	sed -i -e 's/^COMPILE_FLAGS = /COMPILE_FLAGS = $$(CFLAGS) $$(CPPFLAGS) /' game7/gameSource/Makefile
 	sed -i -e 's/^LINK_FLAGS = /LINK_FLAGS = $$(LDFLAGS) /' game7/gameSource/Makefile
-	$(MAKE) -C game7/gameSource LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS) -DETCDIR=\\\"/etc/between\\\" -DDATADIR=\\\"/usr/share/games/between/\\\""
+	dh_auto_build --sourcedirectory=game7/gameSource -- 'GXX=$$(CXX)' LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS) -DETCDIR=\\\"/etc/between\\\" -DDATADIR=\\\"/usr/share/games/between/\\\""
 
 override_dh_auto_clean:
 	[ ! -f game7/gameSource/Makefile ] || $(MAKE) -C game7/gameSource clean


More information about the Pkg-games-devel mailing list