Bug#931120: morris FTCBFS: does not pass --host to ./configure

Helmut Grohne helmut at subdivi.de
Wed Jun 26 16:30:19 BST 2019


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

morris fails to cross build from source, because it does not pass --host
to ./configure. The easiest way of fixing that - using dh_auto_configure
- does not work for morris, because its configure does not like
--runstatedir. Thus we have to manually construct the --host flag.
Please consider applying the attached patch to make morris cross
buildable.

Helmut
-------------- next part --------------
diff --minimal -Nru morris-0.2/debian/changelog morris-0.2/debian/changelog
--- morris-0.2/debian/changelog	2018-09-13 18:54:58.000000000 +0200
+++ morris-0.2/debian/changelog	2019-06-26 17:26:53.000000000 +0200
@@ -1,3 +1,10 @@
+morris (0.2-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --host to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 26 Jun 2019 17:26:53 +0200
+
 morris (0.2-5) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru morris-0.2/debian/rules morris-0.2/debian/rules
--- morris-0.2/debian/rules	2018-09-13 18:54:58.000000000 +0200
+++ morris-0.2/debian/rules	2019-06-26 17:26:51.000000000 +0200
@@ -5,6 +5,9 @@
 
 include /usr/share/dpkg/default.mk
 
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+CROSS=--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+endif
 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)


More information about the Pkg-games-devel mailing list