Bug#956347: blastem FTCBFS: misdetects cpu

Helmut Grohne helmut at subdivi.de
Fri Apr 10 07:02:21 BST 2020


Source: blastem
Version: 0.6.3.3-2
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

blastem fails to cross build from source, because the upstream Makefile
detects the processor architecture using uname. The debian/rules should
pass a reasonable CPU variable to make to fix that. After doing so,
cross builds fails in the same way as native builds (e.g. for ppc64el).
Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru blastem-0.6.3.3/debian/changelog blastem-0.6.3.3/debian/changelog
--- blastem-0.6.3.3/debian/changelog	2019-11-16 07:26:12.000000000 +0100
+++ blastem-0.6.3.3/debian/changelog	2020-04-10 01:14:32.000000000 +0200
@@ -1,3 +1,10 @@
+blastem (0.6.3.3-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass CPU variable to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 10 Apr 2020 01:14:32 +0200
+
 blastem (0.6.3.3-2) unstable; urgency=medium
 
   * debian/control:
diff --minimal -Nru blastem-0.6.3.3/debian/rules blastem-0.6.3.3/debian/rules
--- blastem-0.6.3.3/debian/rules	2019-11-16 07:26:12.000000000 +0100
+++ blastem-0.6.3.3/debian/rules	2020-04-10 01:14:31.000000000 +0200
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE = 1
 
+include /usr/share/dpkg/architecture.mk
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
@@ -8,4 +10,5 @@
 
 override_dh_auto_build:
 	dh_auto_build -- HOST_ZLIB=1 CONFIG_PATH=/etc/blastem \
+	CPU=$(DEB_HOST_GNU_CPU) \
 	DATA_PATH=/usr/share/games/blastem


More information about the Pkg-games-devel mailing list