Bug#883886: pianobooster FTCBFS: does not pass cross flags to cmake

Helmut Grohne helmut at subdivi.de
Fri Dec 8 20:56:47 UTC 2017


Source: pianobooster
Version: 0.6.7~svn156-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

pianobooster fails to cross build from source, because it does not pass
the relevant cross flags to cmake. After deferring that task to
dh_auto_configure, pianobooster cross builds successfully. Please
consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru pianobooster-0.6.7~svn156/debian/changelog pianobooster-0.6.7~svn156/debian/changelog
--- pianobooster-0.6.7~svn156/debian/changelog	2016-11-17 01:08:17.000000000 +0100
+++ pianobooster-0.6.7~svn156/debian/changelog	2017-12-08 21:53:17.000000000 +0100
@@ -1,3 +1,10 @@
+pianobooster (0.6.7~svn156-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass cross flags to cmake. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 08 Dec 2017 21:53:17 +0100
+
 pianobooster (0.6.7~svn156-1) unstable; urgency=medium
 
   [ Miriam Ruiz ]
diff --minimal -Nru pianobooster-0.6.7~svn156/debian/rules pianobooster-0.6.7~svn156/debian/rules
--- pianobooster-0.6.7~svn156/debian/rules	2016-11-16 23:15:05.000000000 +0100
+++ pianobooster-0.6.7~svn156/debian/rules	2017-12-08 21:53:13.000000000 +0100
@@ -15,12 +15,9 @@
 config-stamp: 
 	dh_testdir
 	# Perform an out-of-tree build to keep a clean source tree
-	mkdir $(BUILD_TREE)
-	cd $(BUILD_TREE); cmake $(CURDIR)/src/ \
+	dh_auto_configure --builddirectory=$(BUILD_TREE) --sourcedirectory=src --
 		--debug-output \
 		-DCMAKE_BUILD_TYPE=Debug \
-		-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-		-DCMAKE_INSTALL_PREFIX:STRING="/usr" \
 		-DCMAKE_C_FLAGS:STRING="$(CFLAGS) $(CPPFLAGS)" \
 		-DCMAKE_CXX_FLAGS:STRING="$(CXXFLAGS) $(CPPFLAGS)" \
 		-DBUILD_STATIC:BOOL=ON \


More information about the Pkg-games-devel mailing list