Bug#918038: plee-the-bear FTCBFS: runs cmake for the wrong architecture
Helmut Grohne
helmut at subdivi.de
Wed Jan 2 16:25:53 GMT 2019
Source: plee-the-bear
Version: 0.6.0-4
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
plee-the-bear fails to cross build from source, because it does not pass
cross flags to cmake. The easiest way of doing so is using
dh_auto_configure and that is sufficient to make plee-the-bear cross
buildable. Please consider applying the attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru plee-the-bear-0.6.0/debian/changelog plee-the-bear-0.6.0/debian/changelog
--- plee-the-bear-0.6.0/debian/changelog 2017-08-18 18:27:03.000000000 +0200
+++ plee-the-bear-0.6.0/debian/changelog 2019-01-02 15:52:12.000000000 +0100
@@ -1,3 +1,10 @@
+plee-the-bear (0.6.0-4.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> Wed, 02 Jan 2019 15:52:12 +0100
+
plee-the-bear (0.6.0-4) unstable; urgency=medium
* Team upload.
diff --minimal -Nru plee-the-bear-0.6.0/debian/rules plee-the-bear-0.6.0/debian/rules
--- plee-the-bear-0.6.0/debian/rules 2017-08-18 18:27:03.000000000 +0200
+++ plee-the-bear-0.6.0/debian/rules 2019-01-02 15:52:12.000000000 +0100
@@ -23,9 +23,7 @@
dh_testdir
# Perform an out-of-tree build to keep a clean source tree
- mkdir $(BUILD_TREE)
- cd $(BUILD_TREE); cmake .. \
- -DCMAKE_INSTALL_PREFIX:STRING="/usr" \
+ dh_auto_configure --builddirectory=$(BUILD_TREE) -- \
-DCMAKE_C_FLAGS:STRING="$(CFLAGS) -DNDEBUG" \
-DBEAR_ENGINE_INSTALL_LIBRARY_DIR:STRING="lib/games/plee-the-bear" \
-DBEAR_ENGINE_INSTALL_EXECUTABLE_DIR:STRING="games" \
More information about the Pkg-games-devel
mailing list