Source: cutemaze Version: 1.2.4-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
cutemaze fails to cross build from source, because it does not pass cross flags to qmake. The easiest way of doing so - using dh_auto_configure - makes cutemaze cross build successfully. Please consider applying the attached patch. In the process, I've reduced redundant flags. However, debhelper passes CPPFLAGS via CFLAGS/CXXFLAGS. You may want to check whether QMAKE_CPPFLAGS_RELEASE is interpreted. https://qa.debian.org/bls/packages/c/cutemaze.html suggests that it does not work. Removing all those QMAKE_* assignments should fix that as it lets debhelper do its job. Helmut
diff --minimal -Nru cutemaze-1.2.4/debian/changelog cutemaze-1.2.4/debian/changelog --- cutemaze-1.2.4/debian/changelog 2018-07-22 12:43:34.000000000 +0200 +++ cutemaze-1.2.4/debian/changelog 2019-03-02 14:03:14.000000000 +0100 @@ -1,3 +1,11 @@ +cutemaze (1.2.4-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass relevant flags to qmake. + (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 02 Mar 2019 14:03:14 +0100 + cutemaze (1.2.4-1) unstable; urgency=medium * New upstream version. diff --minimal -Nru cutemaze-1.2.4/debian/rules cutemaze-1.2.4/debian/rules --- cutemaze-1.2.4/debian/rules 2018-07-22 12:43:34.000000000 +0200 +++ cutemaze-1.2.4/debian/rules 2019-03-02 14:03:14.000000000 +0100 @@ -1,16 +1,16 @@ #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=+all +export QT_SELECT=qt5 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) -DFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) %: dh $@ override_dh_auto_configure: - /usr/bin/qmake -qt5 -makefile -nocache \ - QMAKE_LFLAGS_RELEASE="$(LDFLAGS)" QMAKE_CFLAGS_RELEASE="$(CFLAGS)" \ - QMAKE_CXXFLAGS_RELEASE="$(CXXFLAGS)" QMAKE_CPPFLAGS_RELEASE="$(CPPFLAGS)" PREFIX=/usr BINDIR=games + dh_auto_configure -- -nocache \ + QMAKE_CFLAGS_RELEASE="$(CFLAGS)" \ + QMAKE_CXXFLAGS_RELEASE="$(CXXFLAGS)" QMAKE_CPPFLAGS_RELEASE="$(CPPFLAGS)" BINDIR=games