Bug#1126478: xpuzzles FTCBFS: configures for the build architecture

Helmut Grohne helmut at subdivi.de
Mon Jan 26 16:21:02 GMT 2026


Source: xpuzzles
Version: 8.8.7+ds-2
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

xpuzzles fails to cross build from source, because it configures for the
build architecture. To configure for cross compilation, the flags
--build and --host should be supplied. While the easiest way of doing so
would be using dh_auto_configure, doing so here would be significantly
refactoring debian/rules. Instead, I am attaching a patch that adds
those flags explicitly. Please consider applying it or using
dh_auto_configure.

Helmut
-------------- next part --------------
diff -Nru xpuzzles-8.8.7+ds/debian/changelog xpuzzles-8.8.7+ds/debian/changelog
--- xpuzzles-8.8.7+ds/debian/changelog	2025-04-05 17:19:03.000000000 +0200
+++ xpuzzles-8.8.7+ds/debian/changelog	2026-01-26 16:47:10.000000000 +0100
@@ -1,3 +1,10 @@
+xpuzzles (8.8.7+ds-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --build/--host to configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 26 Jan 2026 16:47:10 +0100
+
 xpuzzles (8.8.7+ds-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru xpuzzles-8.8.7+ds/debian/rules xpuzzles-8.8.7+ds/debian/rules
--- xpuzzles-8.8.7+ds/debian/rules	2025-04-05 17:05:31.000000000 +0200
+++ xpuzzles-8.8.7+ds/debian/rules	2026-01-26 16:47:08.000000000 +0100
@@ -3,11 +3,17 @@
 
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/architecture.mk
+
 PROGRAMS = $(shell find . -maxdepth 1 -type d -name "[a-z]*" | grep -v debian | sed 's?^\./??' | sort)
 
 CONFIGURE_FLAGS := --prefix=/usr --bindir=\$${prefix}/games --mandir=\$${prefix}/share/man \
 			--with-x --with-xpm --without-rplay --without-esound --without-nas
 
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+CONFIGURE_FLAGS += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+endif
+
 %:
 	dh $@
 


More information about the Pkg-games-devel mailing list