diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch b/recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch new file mode 100644 index 00000000..210e367d --- /dev/null +++ b/recipes-qt/qt5/qtbase-git/0006-qt_functions-temporary-remove-isEmpty-check.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 6d1c296d6df2c5efd8aec3272e7eacae1c093885 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Wed, 17 Apr 2013 18:06:25 +0200 | ||
4 | Subject: [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 | |||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | mkspecs/features/qt_functions.prf | 6 +++++- | ||
11 | mkspecs/features/qt_tool.prf | 3 +-- | ||
12 | 2 files changed, 6 insertions(+), 3 deletions(-) | ||
13 | |||
14 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf | ||
15 | index 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)$) { | ||
31 | diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf | ||
32 | index 5758604..37b50d4 100644 | ||
33 | --- a/mkspecs/features/qt_tool.prf | ||
34 | +++ b/mkspecs/features/qt_tool.prf | ||
35 | @@ -36,8 +36,7 @@ load(qt_common) | ||
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 | -# Non-bootstrapped tools always need this because of the environment setup. | ||
40 | -!build_pass:if(!host_build|!force_bootstrap|force_independent):isEmpty($$[QT_EXTERNAL_HOST_BINS]) { | ||
41 | +!build_pass:if(!host_build|!force_bootstrap|force_independent):!exists($$[QT_EXTERNAL_HOST_BINS]) { | ||
42 | isEmpty(MODULE):MODULE = $$TARGET | ||
43 | |||
44 | MODULE_DEPENDS = $$replace(QT, -private$, ) | ||
45 | -- | ||
46 | 1.8.2.1 | ||
47 | |||