Source: libterralib
Version: 4.3.0+dfsg.2-11
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libterralib fails to cross build from source, because it runs plain
qmake, which configures for the build architecture. Running
<triplet>-qmake fixes that, but dh_auto_configure does that
automatically, so just switching to dh_auto_configure makes libterralib
cross build successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru libterralib-4.3.0+dfsg.2/debian/changelog 
libterralib-4.3.0+dfsg.2/debian/changelog
--- libterralib-4.3.0+dfsg.2/debian/changelog   2017-07-30 12:42:15.000000000 
+0200
+++ libterralib-4.3.0+dfsg.2/debian/changelog   2018-11-18 16:49:13.000000000 
+0100
@@ -1,3 +1,10 @@
+libterralib (4.3.0+dfsg.2-11.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure use a cross qmake. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 18 Nov 2018 16:49:13 +0100
+
 libterralib (4.3.0+dfsg.2-11) unstable; urgency=medium
 
   * Ack. patch and close bug: Closes: #831903
diff --minimal -Nru libterralib-4.3.0+dfsg.2/debian/rules 
libterralib-4.3.0+dfsg.2/debian/rules
--- libterralib-4.3.0+dfsg.2/debian/rules       2017-07-30 12:42:15.000000000 
+0200
+++ libterralib-4.3.0+dfsg.2/debian/rules       2018-11-18 16:49:13.000000000 
+0100
@@ -26,7 +26,7 @@
                 sed -e 's%@DEB_HOST_MULTIARCH@%${DEB_HOST_MULTIARCH}%g' < 
debian/$$f.in  > debian/$$f ; \
                 done
        for d in terralib te_functions te_utils image_processing PostgreSQL 
MySQL shapelib stat te_dxf te_shapelib   ; do \
-               ( cd build/qt4/$$d  && qmake QMAKE_CXXFLAGS=$(CXXFLAGS) $$d.pro 
    && $(MAKE) ) ; \
+               dh_auto_configure --sourcedirectory=build/qt4/$$d -- 
QMAKE_CXXFLAGS=$(CXXFLAGS) && dh_auto_build --sourcedirectory=build/qt4/$$d; \
                done
        # Disable qwt, terraView work until after libqwt-qt5-dev transition
        #for d in qwt ; do \

Reply via email to