Bug#946136: tworld FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Wed Dec 4 05:34:23 GMT 2019


Source: tworld
Version: 1.3.2-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

tworld fails to cross build from source, because it uses the build
architecture compiler. Normally, this is due to a missing --host flag,
but here dh_auto_configure is being used and the flag passed. The
configure script is too old to understand it. Rather it needs a CC
exported in the environment to cross build. Please consider applying the
attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru tworld-1.3.2/debian/changelog tworld-1.3.2/debian/changelog
--- tworld-1.3.2/debian/changelog	2017-03-22 09:54:26.000000000 +0100
+++ tworld-1.3.2/debian/changelog	2019-12-04 06:31:40.000000000 +0100
@@ -1,3 +1,10 @@
+tworld (1.3.2-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk export CC for configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 04 Dec 2019 06:31:40 +0100
+
 tworld (1.3.2-3) unstable; urgency=medium
 
   * Remove doc symlink to -data package from tworld to make it binNMUable
diff --minimal -Nru tworld-1.3.2/debian/rules tworld-1.3.2/debian/rules
--- tworld-1.3.2/debian/rules	2017-03-22 09:54:26.000000000 +0100
+++ tworld-1.3.2/debian/rules	2019-12-04 06:31:38.000000000 +0100
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
+
 BUILD_DATE := $(shell dpkg-parsechangelog | sed -n -e 's/^Date: //p')
 
 %:


More information about the Pkg-games-devel mailing list