Bug#910346: kraptor FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Fri Oct 5 05:10:36 BST 2018


Source: kraptor
Version: 0.0.20040403+ds-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

kraptor fails to cross build from source, because it uses the build
architecture compiler. The packaging uses dh_auto_build, which passes a
cross compiler via CC, but the upstream Makefile expects the compiler in
GCC. Thus it keeps using the default value. The attached also sets GCC
to make kraptor cross build. Alternatively, you could ask upstream to
change the variable name from "GCC" to the way more common "CC". That
felt a lot more intrusive, so my patch opts for the one-line packaging
change. Please consider applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru kraptor-0.0.20040403+ds/debian/changelog kraptor-0.0.20040403+ds/debian/changelog
--- kraptor-0.0.20040403+ds/debian/changelog	2017-07-12 20:38:31.000000000 +0200
+++ kraptor-0.0.20040403+ds/debian/changelog	2018-10-05 06:03:31.000000000 +0200
@@ -1,3 +1,10 @@
+kraptor (0.0.20040403+ds-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass compiler via GCC variable. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 05 Oct 2018 06:03:31 +0200
+
 kraptor (0.0.20040403+ds-1) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru kraptor-0.0.20040403+ds/debian/rules kraptor-0.0.20040403+ds/debian/rules
--- kraptor-0.0.20040403+ds/debian/rules	2017-07-12 20:38:31.000000000 +0200
+++ kraptor-0.0.20040403+ds/debian/rules	2018-10-05 06:03:29.000000000 +0200
@@ -7,7 +7,7 @@
 
 override_dh_auto_build:
 	./fix.sh linux
-	dh_auto_build
+	dh_auto_build -- GCC='$$(CC)'
 
 override_dh_auto_install:
 	cp bin/kraptor_linux.bin bin/kraptor


More information about the Pkg-games-devel mailing list