Bug#923178: transcend FTCBFS: builds for the build architecture

Helmut Grohne helmut at subdivi.de
Sun Feb 24 19:35:02 GMT 2019


Source: transcend
Version: 0.3.dfsg2-3
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

transcend fails to cross build from source, because it builds for the
build architecture. dh_auto_build passes cross tools for the makefile
buildsystem, but not for the autoconf buildsystem as it expects
./configure to take care of that. transcend's configure doesn't do that,
so for using this feature, we need to force the makefile build system.
Then transcend uses a non-standard compiler name GXX, so we need to
rename the variable. The attached patch implements that and makes
transcend cross buildable. Please consider applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru transcend-0.3.dfsg2/debian/changelog transcend-0.3.dfsg2/debian/changelog
--- transcend-0.3.dfsg2/debian/changelog	2013-06-01 11:46:43.000000000 +0200
+++ transcend-0.3.dfsg2/debian/changelog	2019-02-24 20:19:53.000000000 +0100
@@ -1,3 +1,10 @@
+transcend (0.3.dfsg2-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 24 Feb 2019 20:19:53 +0100
+
 transcend (0.3.dfsg2-3) unstable; urgency=low
 
   * Add patch to build with portaduio19. (Closes: #594014).
diff --minimal -Nru transcend-0.3.dfsg2/debian/rules transcend-0.3.dfsg2/debian/rules
--- transcend-0.3.dfsg2/debian/rules	2013-06-01 11:46:43.000000000 +0200
+++ transcend-0.3.dfsg2/debian/rules	2019-02-24 20:19:53.000000000 +0100
@@ -16,7 +16,8 @@
 	mkdir -p 32x32
 	convert -scale 32x32 transcend.png 32x32/transcend.png
 	convert 32x32/transcend.png 32x32/transcend.xpm
-	$(MAKE) -C Transcend/game \
+	dh_auto_build --buildsystem=makefile --sourcedirectory=Transcend/game -- \
+		GXX='$$(CXX)' \
 		OPTIMIZE_FLAG="$(CPPFLAGS) $(CXXFLAGS) \
 			-DLEVELS_DIR=\\\"/usr/share/games/transcend/levels\\\"" \
 		PLATFORM_LINK_FLAGS="$(LDFLAGS) -lGL -lglut -lGLU -lportaudio -lpthread"


More information about the Pkg-games-devel mailing list