summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch')
-rw-r--r--recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch b/recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch
new file mode 100644
index 00000000..87595341
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-5.0.2/0006-qt_functions-temporary-remove-isEmpty-check.patch
@@ -0,0 +1,46 @@
1From 753924949e1d72c63283ecc904e2134fa76888d7 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Wed, 17 Apr 2013 18:06:25 +0200
4Subject: [PATCH 6/6] qt_functions: temporary remove isEmpty check
5
6* now we assume that every build will provide QT_EXTERNAL_HOST_BINS value
7
8Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
9---
10 mkspecs/features/qt_functions.prf | 6 +++++-
11 mkspecs/features/qt_tool.prf | 2 +-
12 2 files changed, 6 insertions(+), 2 deletions(-)
13
14diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
15index 876f657..0e094a8 100644
16--- a/mkspecs/features/qt_functions.prf
17+++ b/mkspecs/features/qt_functions.prf
18@@ -194,7 +194,11 @@ defineTest(qtPrepareTool) {
19 $$1 = $$eval(QT_TOOL.$${2}.command)
20 isEmpty($$1) {
21 $$1 = $$[QT_EXTERNAL_HOST_BINS]/$$2
22- isEmpty($$[QT_EXTERNAL_HOST_BINS]) {
23+ # for some reason isEmpty does not work here, FIXME before submitting upstream
24+ # DEBUG 1: mkspecs/features/qt_functions.prf:198: calling built-in isEmpty(/OE/oe-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/qt5)
25+ # DEBUG 1: mkspecs/features/qt_functions.prf:198: test function returned true
26+ # DEBUG 1: mkspecs/features/qt_functions.prf:198: taking 'then' branch
27+ !exists($$[QT_EXTERNAL_HOST_BINS]/$$2) {
28 $$1 = $$[QT_HOST_BINS]/$$2
29 }
30 contains(QMAKE_HOST.os, Windows):!contains($$1, .*\\.(exe|bat)$) {
31diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf
32index 8a636c7..0dad97c 100644
33--- a/mkspecs/features/qt_tool.prf
34+++ b/mkspecs/features/qt_tool.prf
35@@ -31,7 +31,7 @@ load(qt_targets)
36
37 # If we are doing a prefix build, create a "module" pri which enables
38 # qtPrepareTool() to work with the non-installed build.
39-!build_pass:force_independent:isEmpty($$[QT_EXTERNAL_HOST_BINS]) {
40+!build_pass:force_independent:!exists($$[QT_EXTERNAL_HOST_BINS]) {
41
42 isEmpty(MODULE):MODULE = $$TARGET
43
44--
451.8.2.1
46