Source: packagesearch
Version: 2.7.10
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

packagesearch fails to cross build from source, because it runs the
build architcture qmake. The attached patch passes a cross qmake along
for cross compilation. An alternative fix could be running
dh_auto_configure for each of src and src/plugins. Please consider
applying the patch.

Helmut
diff --minimal -Nru packagesearch-2.7.10/debian/changelog 
packagesearch-2.7.10+nmu1/debian/changelog
--- packagesearch-2.7.10/debian/changelog       2018-10-19 21:50:28.000000000 
+0200
+++ packagesearch-2.7.10+nmu1/debian/changelog  2018-10-29 20:47:13.000000000 
+0100
@@ -1,3 +1,10 @@
+packagesearch (2.7.10+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass a cross qmake to make. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 29 Oct 2018 20:47:13 +0100
+
 packagesearch (2.7.10) unstable; urgency=medium
 
   * fixed build because of included Makefile 
diff --minimal -Nru packagesearch-2.7.10/debian/rules 
packagesearch-2.7.10+nmu1/debian/rules
--- packagesearch-2.7.10/debian/rules   2018-10-19 21:50:28.000000000 +0200
+++ packagesearch-2.7.10+nmu1/debian/rules      2018-10-29 20:47:11.000000000 
+0100
@@ -10,17 +10,24 @@
 export DH_VERBOSE=1
 export QT_SELECT=qt5
 
+include /usr/share/dpkg/architecture.mk
+ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+QMAKE = /usr/bin/qmake
+else
+QMAKE = /usr/bin/$(DEB_HOST_GNU_TYPE)-qmake
+endif
+
 %:
        dh $@ 
 
 override_dh_auto_build:
        docbook-to-man debian/manpage.sgml > debian/packagesearch.1
-       dh_auto_build
+       dh_auto_build -- QMAKE=$(QMAKE)
        # not yet ready for release - no popcon data available
        rm -f src/plugins/libpopconplugin.so
 
 override_dh_auto_clean:
-       dh_auto_clean
+       dh_auto_clean -- QMAKE=$(QMAKE)
        rm -f debian/packagesearch.1
 
 override_dh_installchangelogs:

Reply via email to