Bug#970942: nikwi FTCBFS: builds for the build architecture

Helmut Grohne helmut at subdivi.de
Fri Sep 25 21:55:42 BST 2020


Source: nikwi
Version: 0.0.20120213-4
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

nikwi fails to cross build from source, because it does not pass cross
tools to make. The easiest way of doing so - using dh_auto_build - does
not suffice though as it doesn't pass LD. The LD variable does not have
a consistent meaning and here it should contain a C++ compiler. It needs
to be passed explicitly. Once doing so, nikwi cross builds successfully.
Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru nikwi-0.0.20120213/debian/changelog nikwi-0.0.20120213/debian/changelog
--- nikwi-0.0.20120213/debian/changelog	2017-07-31 00:05:21.000000000 +0200
+++ nikwi-0.0.20120213/debian/changelog	2020-09-25 22:37:57.000000000 +0200
@@ -1,3 +1,11 @@
+nikwi (0.0.20120213-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make and also pass
+    LD. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 25 Sep 2020 22:37:57 +0200
+
 nikwi (0.0.20120213-4) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru nikwi-0.0.20120213/debian/rules nikwi-0.0.20120213/debian/rules
--- nikwi-0.0.20120213/debian/rules	2017-07-31 00:05:21.000000000 +0200
+++ nikwi-0.0.20120213/debian/rules	2020-09-25 22:37:57.000000000 +0200
@@ -19,7 +19,8 @@
 
 build-arch-stamp: configure-stamp
 	dh_testdir
-	cd src; $(MAKE) -f Makefile.debian \
+	dh_auto_build --buildsystem=makefile --sourcedirectory=src -- -f Makefile.debian \
+		'LD=$$(CXX)' \
 		CFLAGS="$(CFLAGS) $(CPPFLAGS) -DDATADIR=\\\\\\\"/usr/share/games/nikwi\\\\\\\"" \
 		CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS) -DDATADIR=\\\\\\\"/usr/share/games/nikwi\\\\\\\"" \
 		LDFLAGS="$(LDFLAGS) $(LDFLAGS2)"


More information about the Pkg-games-devel mailing list