Bug#946764: primrose FTCBFS: builds for the build architecture

Helmut Grohne helmut at subdivi.de
Sun Dec 15 10:08:48 GMT 2019


Source: primrose
Version: 6+dfsg1-4
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

primrose fails to cross build from source, because it uses build
architecture build tools. It does have a configure script, but it does
not take the host architecture into account in any way. So effectively,
we're dealing with a makefile build system here and should be passing
cross tools to make. dh_auto_build almost does the job here except for
primrose using a non-standard compiler name (GXX instead of CXX). Please
consider applying the attached to make primrose cross buildable.

Helmut
-------------- next part --------------
diff --minimal -Nru primrose-6+dfsg1/debian/changelog primrose-6+dfsg1/debian/changelog
--- primrose-6+dfsg1/debian/changelog	2017-08-01 16:33:16.000000000 +0200
+++ primrose-6+dfsg1/debian/changelog	2019-12-15 07:09:25.000000000 +0100
@@ -1,3 +1,12 @@
+primrose (6+dfsg1-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Pass C++ compiler as GXX.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 15 Dec 2019 07:09:25 +0100
+
 primrose (6+dfsg1-4) unstable; urgency=medium
 
   * Fix build reproducibility issues due to use of imagemagick (Closes: #778481)
diff --minimal -Nru primrose-6+dfsg1/debian/rules primrose-6+dfsg1/debian/rules
--- primrose-6+dfsg1/debian/rules	2014-11-26 09:44:13.000000000 +0100
+++ primrose-6+dfsg1/debian/rules	2019-12-15 07:09:25.000000000 +0100
@@ -18,7 +18,7 @@
 	convert -background None -gravity center -extent 64x64 tilePlacementGames/game1/gameSource/iPhone/icon.png $(PNGRBTD) 64x64/primrose.png
 	cp -f tilePlacementGames/game1/build/win32/icon.png 32x32/primrose.png
 	convert 32x32/primrose.png 32x32/primrose.xpm
-	$(MAKE) -C tilePlacementGames/game1/gameSource PLATFORM_LINK_FLAGS="-lGL -lSDL -lpthread $(LDFLAGS)" PLATFORM_COMPILE_FLAGS="$(CXXFLAGS) $(CPPFLAGS) -DETCDIR=\\\"/etc/primrose\\\" -DDATADIR=\\\"/usr/share/games/primrose/\\\""
+	dh_auto_build --sourcedirectory=tilePlacementGames/game1/gameSource -- GXX='$$(CXX)' PLATFORM_LINK_FLAGS="-lGL -lSDL -lpthread $(LDFLAGS)" PLATFORM_COMPILE_FLAGS="$(CXXFLAGS) $(CPPFLAGS) -DETCDIR=\\\"/etc/primrose\\\" -DDATADIR=\\\"/usr/share/games/primrose/\\\""
 
 override_dh_auto_clean:
 	[ ! -f tilePlacementGames/game1/gameSource/Makefile ] || $(MAKE) -C tilePlacementGames/game1/gameSource clean


More information about the Pkg-games-devel mailing list