Source: qbrew Version: 0.4.1-8 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
qbrew fails to cross build from source, because it uses the build architecture qmake. It is doing so via a handwritten ./configure script. Swapping out the qmake command is possible, but then it assumes that it can run a simple qmake application. Ultimately, this test must fail for cross compilation. The attached patch implements the few relevant bits of the ./configure script inside debian rules. The qt5-qmake:native dependency is required for running lrelease. Please consider applying the attached patch. Helmut
diff --minimal -Nru qbrew-0.4.1/debian/changelog qbrew-0.4.1/debian/changelog --- qbrew-0.4.1/debian/changelog 2018-01-21 19:54:07.000000000 +0100 +++ qbrew-0.4.1/debian/changelog 2019-09-16 06:20:17.000000000 +0200 @@ -1,3 +1,10 @@ +qbrew (0.4.1-8.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Don't use ./configure. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 16 Sep 2019 06:20:17 +0200 + qbrew (0.4.1-8) unstable; urgency=medium * Use debhelper v11 diff --minimal -Nru qbrew-0.4.1/debian/control qbrew-0.4.1/debian/control --- qbrew-0.4.1/debian/control 2018-01-21 17:08:43.000000000 +0100 +++ qbrew-0.4.1/debian/control 2019-09-16 06:20:12.000000000 +0200 @@ -2,7 +2,7 @@ Section: x11 Priority: optional Maintainer: Dr. Tobias Quathamer <to...@debian.org> -Build-Depends: debhelper (>= 11), qtbase5-dev, qttools5-dev-tools +Build-Depends: debhelper (>= 11), qtbase5-dev, qttools5-dev-tools, qt5-qmake:native Standards-Version: 4.1.3 Homepage: http://www.usermode.org/code.html Vcs-Browser: https://salsa.debian.org/debian/qbrew diff --minimal -Nru qbrew-0.4.1/debian/rules qbrew-0.4.1/debian/rules --- qbrew-0.4.1/debian/rules 2016-10-21 17:20:00.000000000 +0200 +++ qbrew-0.4.1/debian/rules 2019-09-16 06:20:17.000000000 +0200 @@ -7,12 +7,13 @@ include /usr/share/dpkg/buildflags.mk %: - dh $@ + dh $@ --buildsystem=qmake -# dh_auto_configure does not work with this package, thus -# we need to call the configure script manually. +# dh_auto_configure does not work with this package. The configure script is +# completely broken for cross compilation, so we need to implement it here. override_dh_auto_configure: - ./configure --debug --prefix=/usr + lrelease qbrew.pro + BINDIR=/usr/bin DATADIR=/usr/share/qbrew dh_auto_configure -- QMAKE_CXXFLAGS="$(CXXFLAGS)" "QMAKE_LFLAGS=$(LDFLAGS)" "CONFIG+=debug configure" # Install two icons for desktop file # Important: Specify the buildsystem for dh_auto_install as "qmake", @@ -21,6 +22,6 @@ # The build will fail because the installation then uses the system # directories. See bug #840732. override_dh_auto_install: - dh_auto_install --buildsystem=qmake + dh_auto_install install -m 0644 pics/qbrew.png $(CURDIR)/debian/qbrew/usr/share/icons/hicolor/48x48/apps install -m 0644 pics/qbrew.svg $(CURDIR)/debian/qbrew/usr/share/icons/hicolor/scalable/apps