Source: mtpaint
Version: 3.40-3
Tags: patch
User: [email protected]
Usertags: rebootstrap

mtpaint fails to cross build from source, because it configures for the
build architecture. The easiest way of passing --host to ./configure is
letting dh_auto_configure do it. After doing so, mtpaint cross builds
successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru mtpaint-3.40/debian/changelog mtpaint-3.40/debian/changelog
--- mtpaint-3.40/debian/changelog       2016-04-07 11:49:10.000000000 +0200
+++ mtpaint-3.40/debian/changelog       2018-07-06 11:25:22.000000000 +0200
@@ -1,3 +1,10 @@
+mtpaint (3.40-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass --host to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Fri, 06 Jul 2018 11:25:22 +0200
+
 mtpaint (3.40-3) unstable; urgency=medium
 
   * Bump Standards-Version to 3.9.7. No changes were needed.
diff --minimal -Nru mtpaint-3.40/debian/rules mtpaint-3.40/debian/rules
--- mtpaint-3.40/debian/rules   2016-04-07 11:22:59.000000000 +0200
+++ mtpaint-3.40/debian/rules   2018-07-06 11:25:22.000000000 +0200
@@ -6,7 +6,7 @@
        dh $@
 
 override_dh_auto_configure:
-       ./configure gtk2 cflags GIF jpeg tiff intl man --prefix=/usr \
+       dh_auto_configure -- gtk2 cflags GIF jpeg tiff intl man --prefix=/usr \
        --bindir=/usr/bin --mandir=/usr/share/man
 
 override_dh_auto_clean:

Reply via email to