Bug#945871: xgalaga FTCBFS: configures for the build architecture

Helmut Grohne helmut at subdivi.de
Sat Nov 30 07:56:07 GMT 2019


Source: xgalaga
Version: 2.1.1.0-5
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

xgalaga fails to cross build from source, because it does not pass
--host to ./configure. Please consider applying the attached patch.
Alternatively, consider using dh_auto_configure.

Helmut
-------------- next part --------------
diff --minimal -Nru xgalaga-2.1.1.0/debian/changelog xgalaga-2.1.1.0/debian/changelog
--- xgalaga-2.1.1.0/debian/changelog	2015-12-12 21:44:20.000000000 +0100
+++ xgalaga-2.1.1.0/debian/changelog	2019-11-29 21:22:13.000000000 +0100
@@ -1,3 +1,10 @@
+xgalaga (2.1.1.0-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --host to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 29 Nov 2019 21:22:13 +0100
+
 xgalaga (2.1.1.0-5) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru xgalaga-2.1.1.0/debian/rules xgalaga-2.1.1.0/debian/rules
--- xgalaga-2.1.1.0/debian/rules	2015-12-12 21:44:20.000000000 +0100
+++ xgalaga-2.1.1.0/debian/rules	2019-11-29 21:22:10.000000000 +0100
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
 CFLAGS = -Wall -g -DXF86VIDMODE
 CFLAGS += $(shell dpkg-buildflags --get CFLAGS)
 CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
@@ -23,6 +25,7 @@
 	ln -sf /usr/share/misc/config.sub
 	ln -sf /usr/share/misc/config.guess
 	LIBS=-lXxf86vm ./configure \
+	        --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
 		--prefix=/usr/share/games/xgalaga \
 		--exec-prefix=/usr/games CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
 	# hack SOUNDDEFS so we don't need symlinks


More information about the Pkg-games-devel mailing list