Bug#888159: qelectrotech FTCBFS: does not pass cross flags to qmake

2018-03-10 Thread Denis Briand
tags 888159 pending
thanks

Hello Helmut,
Thank you for your patch.
It will be added to the next version.

regards

Denis Briand


pgp4hA5pYRdeK.pgp
Description: PGP signature


Bug#888159: qelectrotech FTCBFS: does not pass cross flags to qmake

2018-01-23 Thread Helmut Grohne
Source: qelectrotech
Version: 1:0.5-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

qelectrotech fails to cross build from source, because cdbs does not
pass cross flags (like -specs) to qmake. dh_auto_configure does and
using it makes qelectrotech cross build successfully. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru qelectrotech-0.5/debian/changelog 
qelectrotech-0.5/debian/changelog
--- qelectrotech-0.5/debian/changelog   2016-04-26 21:44:58.0 +0200
+++ qelectrotech-0.5/debian/changelog   2018-01-23 18:54:20.0 +0100
@@ -1,3 +1,10 @@
+qelectrotech (1:0.5-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass cross flags to qmake. (Closes: #-1)
+
+ -- Helmut Grohne   Tue, 23 Jan 2018 18:54:20 +0100
+
 qelectrotech (1:0.5-2) unstable; urgency=medium
 
   * Add libqt5printsupport5 to recommends.
diff --minimal -Nru qelectrotech-0.5/debian/rules qelectrotech-0.5/debian/rules
--- qelectrotech-0.5/debian/rules   2015-11-28 00:08:52.0 +0100
+++ qelectrotech-0.5/debian/rules   2018-01-23 18:54:18.0 +0100
@@ -12,8 +12,6 @@
 include /usr/share/cdbs/1/rules/utils.mk
 
 export QT_SELECT=qt5
-QMAKE=qmake
-
 
 #use building with n parallel processes with DEB_BUILD_OPTIONS=parallel=n
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
@@ -21,6 +19,9 @@
 MAKEFLAGS += -j$(NUMJOBS)
 endif
 
+$(DEB_BUILDDIR)/Makefile:
+   dh_auto_configure --builddirectory=$(DEB_BUILDDIR)
+
 clean::
rm -rf release
rm -rf debug