Source: merkaartor Version: 0.18.3+ds-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
merkaartor fails to cross build from source. It runs lrelease, but lrelease tends to do nothing and just warn you about that unless you add qt5-qmake:native to Build-Depends. This smells like a policy 4.6 violation, but adding the missing dependency fixes it. Then the bare qmake invocation misses out all the flags needed for cross compilation that dh_auto_configure knows about. After indirecting it through dh_auto_configure, merkaartor cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru merkaartor-0.18.3+ds/debian/changelog merkaartor-0.18.3+ds/debian/changelog --- merkaartor-0.18.3+ds/debian/changelog 2017-06-25 15:16:52.000000000 +0200 +++ merkaartor-0.18.3+ds/debian/changelog 2018-02-06 20:52:35.000000000 +0100 @@ -1,3 +1,12 @@ +merkaartor (0.18.3+ds-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Fix missing build dependency qt5-qmake:native for running lrelease. + + Let dh_auto_configure pass the cross flags to qmake. + + -- Helmut Grohne <hel...@subdivi.de> Tue, 06 Feb 2018 20:52:35 +0100 + merkaartor (0.18.3+ds-2) unstable; urgency=medium * Add patch to fix 'performance' typo. diff --minimal -Nru merkaartor-0.18.3+ds/debian/control merkaartor-0.18.3+ds/debian/control --- merkaartor-0.18.3+ds/debian/control 2017-06-25 12:24:47.000000000 +0200 +++ merkaartor-0.18.3+ds/debian/control 2018-02-06 20:52:33.000000000 +0100 @@ -20,6 +20,7 @@ libxml2-dev, libxslt1-dev, qt5-qmake, + qt5-qmake:native, qtbase5-dev, qttools5-dev-tools, sharutils, diff --minimal -Nru merkaartor-0.18.3+ds/debian/rules merkaartor-0.18.3+ds/debian/rules --- merkaartor-0.18.3+ds/debian/rules 2017-06-25 12:20:33.000000000 +0200 +++ merkaartor-0.18.3+ds/debian/rules 2018-02-06 20:52:18.000000000 +0100 @@ -22,7 +22,7 @@ override_dh_auto_configure: cd translations && make release - qmake Merkaartor.pro \ + dh_auto_configure -- Merkaartor.pro \ TRANSDIR_SYSTEM="/usr/share/qt5/translations/" \ PREFIX=/usr \ GDAL=1 \