Source: wesnoth-1.12
Version: 1:1.12.6-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

wesnoth-1.12 fails to cross build from source, because it does not pass
cross compilers to cmake and thus uses the build architecture toolchain.
Fortunately, dh_auto_configure knows how to do that for the cmake
buildsystem, so indirecting the explicit cmake invocation through
dh_auto_configure makes a cross build just work. Please consider
applying the attached patch after stretch is released.

Helmut
diff --minimal -Nru wesnoth-1.12-1.12.6/debian/changelog 
wesnoth-1.12-1.12.6/debian/changelog
--- wesnoth-1.12-1.12.6/debian/changelog        2016-05-21 08:48:55.000000000 
+0200
+++ wesnoth-1.12-1.12.6/debian/changelog        2017-01-29 15:06:49.000000000 
+0100
@@ -1,3 +1,10 @@
+wesnoth-1.12 (1:1.12.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass cross compilers. (Closes #-1)
+
+ -- Helmut Grohne <[email protected]>  Sun, 29 Jan 2017 15:06:49 +0100
+
 wesnoth-1.12 (1:1.12.6-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru wesnoth-1.12-1.12.6/debian/rules 
wesnoth-1.12-1.12.6/debian/rules
--- wesnoth-1.12-1.12.6/debian/rules    2016-04-06 06:52:34.000000000 +0200
+++ wesnoth-1.12-1.12.6/debian/rules    2017-01-29 15:06:45.000000000 +0100
@@ -69,8 +69,7 @@
 
 configure: debian/stamp-configure
 debian/stamp-configure:
-       mkdir -p build
-       cd build && \
+       dh_auto_configure --builddirectory=build -- \
                cmake .. $(CMAKE_SWITCHES)
        # CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" ./configure 
$(CONFIGURE_SWITCHES)
        touch $@

Reply via email to