[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#902647: maelstrom FTCBFS: configures for the build architecture



Source: maelstrom
Version: 1.4.3-L3.0.6+main-9
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

maelstrom fails to cross build from source, because it configures for
the build architecture. I'd normally suggest using dh_auto_configure
here, but dh_auto_configure passes --runstatedir and maelstrom's
./configure doesn't like that. Thus the attached patch adds the relevant
--build and --host flags explicitly. Please consider applying it.

Helmut
diff --minimal -Nru maelstrom-1.4.3-L3.0.6+main/debian/changelog maelstrom-1.4.3-L3.0.6+main/debian/changelog
--- maelstrom-1.4.3-L3.0.6+main/debian/changelog	2018-03-01 01:04:45.000000000 +0100
+++ maelstrom-1.4.3-L3.0.6+main/debian/changelog	2018-06-28 23:19:50.000000000 +0200
@@ -1,3 +1,10 @@
+maelstrom (1.4.3-L3.0.6+main-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --host to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Thu, 28 Jun 2018 23:19:50 +0200
+
 maelstrom (1.4.3-L3.0.6+main-9) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru maelstrom-1.4.3-L3.0.6+main/debian/rules maelstrom-1.4.3-L3.0.6+main/debian/rules
--- maelstrom-1.4.3-L3.0.6+main/debian/rules	2015-09-30 22:00:00.000000000 +0200
+++ maelstrom-1.4.3-L3.0.6+main/debian/rules	2018-06-28 23:19:50.000000000 +0200
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
 TMPDIR=maelstrom
 BINDIR=debian/${TMPDIR}/usr/games
 LIBDIR=debian/${TMPDIR}/usr/lib/games/maelstrom
@@ -22,7 +24,7 @@
 build:
 	cp /usr/share/misc/config.guess .
 	cp /usr/share/misc/config.sub .
-	./configure CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
+	./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
 	$(MAKE)
 	touch build
 

Reply to: