Bug#1038715: simutrans FTCBFS: uses build architecture build tools

Helmut Grohne helmut at subdivi.de
Mon Jun 19 11:42:01 BST 2023


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

simutrans fails to cross build from source, because it uses build
architecture build tools. Usually, these are detected by configure and
while that correctly happens for the compiler, it is not forwarded to
the Makefile. In a similar vein, the build architecture pkg-config is
used for discovering freetype2. Since debhelper will only pass cross
tools for a non-derived makefile buildsystem, we need to force that. I'm
attaching a patch for your convenience.

Helmut
-------------- next part --------------
diff --minimal -Nru simutrans-123.0.1/debian/changelog simutrans-123.0.1/debian/changelog
--- simutrans-123.0.1/debian/changelog	2023-06-16 01:03:47.000000000 +0200
+++ simutrans-123.0.1/debian/changelog	2023-06-19 12:35:01.000000000 +0200
@@ -1,3 +1,10 @@
+simutrans (123.0.1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 19 Jun 2023 12:35:01 +0200
+
 simutrans (123.0.1-3) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru simutrans-123.0.1/debian/rules simutrans-123.0.1/debian/rules
--- simutrans-123.0.1/debian/rules	2023-06-16 01:03:47.000000000 +0200
+++ simutrans-123.0.1/debian/rules	2023-06-19 12:35:01.000000000 +0200
@@ -23,7 +23,7 @@
 	dh $@
 
 override_dh_auto_build:
-	dh_auto_build -- SDL2_CONFIG="$(PKG_CONFIG) sdl2" VERBOSE=$(if $(filter terse,$(DEB_BUILD_OPTIONS)),,1)
+	dh_auto_build --buildsystem=makefile -- SDL2_CONFIG="$(PKG_CONFIG) sdl2" FREETYPE_CONFIG="$(PKG_CONFIG) freetype2" VERBOSE=$(if $(filter terse,$(DEB_BUILD_OPTIONS)),,1)
 	dh_auto_build --sourcedirectory=makeobj -- PNG_CONFIG="$(PKG_CONFIG) libpng" VERBOSE=$(if $(filter terse,$(DEB_BUILD_OPTIONS)),,1)
 
 override_dh_auto_clean:


More information about the Pkg-games-devel mailing list