Source: libstroke
Version: 0.5.1-8
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libstroke fails to cross build from source, because it configures for
the build architecture. The attached patch explicitly passes the
required --build and --host flags to configure. Alternatively,
using dh_auto_configure they will be supplied automatically. After
applying the patch, libstroke cross builds successfully. Please consider
applying it after stretch is released.

Helmut
diff --minimal -Nru libstroke-0.5.1/debian/changelog 
libstroke-0.5.1/debian/changelog
--- libstroke-0.5.1/debian/changelog    2016-07-05 11:01:49.000000000 +0200
+++ libstroke-0.5.1/debian/changelog    2017-04-28 22:07:43.000000000 +0200
@@ -1,3 +1,10 @@
+libstroke (0.5.1-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --build and --host to ./configure (Closes: #-1).
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 28 Apr 2017 22:07:43 +0200
+
 libstroke (0.5.1-8) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru libstroke-0.5.1/debian/rules libstroke-0.5.1/debian/rules
--- libstroke-0.5.1/debian/rules        2016-07-05 09:43:17.000000000 +0200
+++ libstroke-0.5.1/debian/rules        2017-04-28 22:07:41.000000000 +0200
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
 build: build-stamp
 build-arch: build
 build-indep: build
@@ -7,7 +9,7 @@
 build-stamp:
        dh_testdir
        dh_autotools-dev_updateconfig
-       ./configure --prefix=/usr --x-includes=/usr/X11R6/include 
--x-libraries=/usr/X11R6/lib
+       ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) 
--prefix=/usr --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
 
 # Patch the generated libtool to avoid passing -rpath when linking,
 # and to explicitly link libraries against the libraries they

Reply via email to