diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase-git/0002-Add-external-hostbindir-option.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase-git/0002-Add-external-hostbindir-option.patch | 53 |
1 files changed, 23 insertions, 30 deletions
diff --git a/recipes-qt/qt5/qtbase-git/0002-Add-external-hostbindir-option.patch b/recipes-qt/qt5/qtbase-git/0002-Add-external-hostbindir-option.patch index 5f9fd90d..81f18674 100644 --- a/recipes-qt/qt5/qtbase-git/0002-Add-external-hostbindir-option.patch +++ b/recipes-qt/qt5/qtbase-git/0002-Add-external-hostbindir-option.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 00ad866f82f89ce938e9eaabfc50af3cde72ccfe Mon Sep 17 00:00:00 2001 | 1 | From eaa4a4c13e65e29e2214a01b69b77b9c6f2ada05 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Sat, 6 Apr 2013 13:15:07 +0200 | 3 | Date: Sat, 6 Apr 2013 13:15:07 +0200 |
4 | Subject: [PATCH 02/10] Add -external-hostbindir option | 4 | Subject: [PATCH 2/8] Add -external-hostbindir option |
5 | 5 | ||
6 | * when cross-compiling it's sometimes useful to use existing tools from machine | 6 | * when cross-compiling it's sometimes useful to use existing tools from machine |
7 | (or in OpenEmbedded built with separate native recipe) when building for target | 7 | (or in OpenEmbedded built with separate native recipe) when building for target |
@@ -24,7 +24,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | |||
24 | Signed-off-by: Simon Busch <morphis@gravedo.de> | 24 | Signed-off-by: Simon Busch <morphis@gravedo.de> |
25 | --- | 25 | --- |
26 | configure | 15 +++++++++++++++ | 26 | configure | 15 +++++++++++++++ |
27 | mkspecs/features/qt_functions.prf | 9 ++++++++- | 27 | mkspecs/features/qt_functions.prf | 2 +- |
28 | mkspecs/features/qt_tool.prf | 3 +-- | 28 | mkspecs/features/qt_tool.prf | 3 +-- |
29 | qmake/property.cpp | 1 + | 29 | qmake/property.cpp | 1 + |
30 | qtbase.pro | 12 +++++++++--- | 30 | qtbase.pro | 12 +++++++++--- |
@@ -34,10 +34,10 @@ Signed-off-by: Simon Busch <morphis@gravedo.de> | |||
34 | src/dbus/Qt5DBusConfigExtras.cmake.in | 4 ++-- | 34 | src/dbus/Qt5DBusConfigExtras.cmake.in | 4 ++-- |
35 | src/widgets/Qt5WidgetsConfigExtras.cmake.in | 2 +- | 35 | src/widgets/Qt5WidgetsConfigExtras.cmake.in | 2 +- |
36 | tools/configure/configureapp.cpp | 8 ++++++++ | 36 | tools/configure/configureapp.cpp | 8 ++++++++ |
37 | 11 files changed, 51 insertions(+), 13 deletions(-) | 37 | 11 files changed, 44 insertions(+), 13 deletions(-) |
38 | 38 | ||
39 | diff --git a/configure b/configure | 39 | diff --git a/configure b/configure |
40 | index bb24a9c..bf7c11e 100755 | 40 | index 4eae0d3..48d5119 100755 |
41 | --- a/configure | 41 | --- a/configure |
42 | +++ b/configure | 42 | +++ b/configure |
43 | @@ -777,6 +777,7 @@ QT_HOST_BINS= | 43 | @@ -777,6 +777,7 @@ QT_HOST_BINS= |
@@ -48,7 +48,7 @@ index bb24a9c..bf7c11e 100755 | |||
48 | 48 | ||
49 | #flags for SQL drivers | 49 | #flags for SQL drivers |
50 | QT_CFLAGS_PSQL= | 50 | QT_CFLAGS_PSQL= |
51 | @@ -898,6 +899,7 @@ while [ "$#" -gt 0 ]; do | 51 | @@ -896,6 +897,7 @@ while [ "$#" -gt 0 ]; do |
52 | -testsdir| \ | 52 | -testsdir| \ |
53 | -hostdatadir| \ | 53 | -hostdatadir| \ |
54 | -hostbindir| \ | 54 | -hostbindir| \ |
@@ -56,7 +56,7 @@ index bb24a9c..bf7c11e 100755 | |||
56 | -hostlibdir| \ | 56 | -hostlibdir| \ |
57 | -extprefix| \ | 57 | -extprefix| \ |
58 | -sysroot| \ | 58 | -sysroot| \ |
59 | @@ -1112,6 +1114,9 @@ while [ "$#" -gt 0 ]; do | 59 | @@ -1110,6 +1112,9 @@ while [ "$#" -gt 0 ]; do |
60 | extprefix) | 60 | extprefix) |
61 | QT_EXT_PREFIX="$VAL" | 61 | QT_EXT_PREFIX="$VAL" |
62 | ;; | 62 | ;; |
@@ -66,7 +66,7 @@ index bb24a9c..bf7c11e 100755 | |||
66 | pkg-config) | 66 | pkg-config) |
67 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | 67 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then |
68 | CFG_PKGCONFIG="$VAL" | 68 | CFG_PKGCONFIG="$VAL" |
69 | @@ -2250,6 +2255,10 @@ Installation options: | 69 | @@ -2248,6 +2253,10 @@ Installation options: |
70 | -hostdatadir <dir> . Data used by qmake will be installed to <dir> | 70 | -hostdatadir <dir> . Data used by qmake will be installed to <dir> |
71 | (default HOSTPREFIX) | 71 | (default HOSTPREFIX) |
72 | 72 | ||
@@ -77,7 +77,7 @@ index bb24a9c..bf7c11e 100755 | |||
77 | Configure options: | 77 | Configure options: |
78 | 78 | ||
79 | The defaults (*) are usually acceptable. A plus (+) denotes a default value | 79 | The defaults (*) are usually acceptable. A plus (+) denotes a default value |
80 | @@ -2914,6 +2923,11 @@ fi | 80 | @@ -2915,6 +2924,11 @@ fi |
81 | # command line and environment validation | 81 | # command line and environment validation |
82 | #------------------------------------------------------------------------------- | 82 | #------------------------------------------------------------------------------- |
83 | 83 | ||
@@ -89,7 +89,7 @@ index bb24a9c..bf7c11e 100755 | |||
89 | # update QT_CONFIG to show our current predefined configuration | 89 | # update QT_CONFIG to show our current predefined configuration |
90 | CFG_QCONFIG_PATH=$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h | 90 | CFG_QCONFIG_PATH=$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h |
91 | case "$CFG_QCONFIG" in | 91 | case "$CFG_QCONFIG" in |
92 | @@ -3594,6 +3608,7 @@ static const char qt_configure_prefix_path_strs[][256 + 12] = { | 92 | @@ -3595,6 +3609,7 @@ static const char qt_configure_prefix_path_strs[][256 + 12] = { |
93 | "qt_hbinpath=$QT_HOST_BINS", | 93 | "qt_hbinpath=$QT_HOST_BINS", |
94 | "qt_hlibpath=$QT_HOST_LIBS", | 94 | "qt_hlibpath=$QT_HOST_LIBS", |
95 | "qt_hdatpath=$QT_HOST_DATA", | 95 | "qt_hdatpath=$QT_HOST_DATA", |
@@ -98,27 +98,20 @@ index bb24a9c..bf7c11e 100755 | |||
98 | "qt_hostspec=$shortspec", | 98 | "qt_hostspec=$shortspec", |
99 | #endif | 99 | #endif |
100 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf | 100 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf |
101 | index 1dacfed..7229845 100644 | 101 | index d41fe3b..050a4a7 100644 |
102 | --- a/mkspecs/features/qt_functions.prf | 102 | --- a/mkspecs/features/qt_functions.prf |
103 | +++ b/mkspecs/features/qt_functions.prf | 103 | +++ b/mkspecs/features/qt_functions.prf |
104 | @@ -193,7 +193,14 @@ defineTest(qtAddRpathLink) { | 104 | @@ -193,7 +193,7 @@ defineTest(qtAddRpathLink) { |
105 | defineTest(qtPrepareTool) { | 105 | defineTest(qtPrepareTool) { |
106 | $$1 = $$eval(QT_TOOL.$${2}.binary) | 106 | cmd = $$eval(QT_TOOL.$${2}.binary) |
107 | isEmpty($$1) { | 107 | isEmpty(cmd) { |
108 | - $$1 = $$[QT_HOST_BINS]/$$2 | 108 | - cmd = $$[QT_HOST_BINS]/$$2 |
109 | + $$1 = $$[QT_EXTERNAL_HOST_BINS]/$$2 | 109 | + cmd = $$[QT_EXTERNAL_HOST_BINS]/$$2 |
110 | + # for some reason isEmpty does not work here, FIXME before submitting upstream | 110 | exists($${cmd}.pl) { |
111 | + # DEBUG 1: mkspecs/features/qt_functions.prf:198: calling built-in isEmpty(/OE/oe-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/qt5) | 111 | cmd = perl -w $$system_path($${cmd}.pl) |
112 | + # DEBUG 1: mkspecs/features/qt_functions.prf:198: test function returned true | ||
113 | + # DEBUG 1: mkspecs/features/qt_functions.prf:198: taking 'then' branch | ||
114 | + !exists($$[QT_EXTERNAL_HOST_BINS]/$$2) { | ||
115 | + $$1 = $$[QT_HOST_BINS]/$$2 | ||
116 | + } | ||
117 | exists($$eval($$1).pl) { | ||
118 | $$1 = perl -w $$eval($$1).pl | ||
119 | } else: contains(QMAKE_HOST.os, Windows) { | 112 | } else: contains(QMAKE_HOST.os, Windows) { |
120 | diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf | 113 | diff --git a/mkspecs/features/qt_tool.prf b/mkspecs/features/qt_tool.prf |
121 | index f0864f9..50bfac8 100644 | 114 | index 1d3e88c..bd44754 100644 |
122 | --- a/mkspecs/features/qt_tool.prf | 115 | --- a/mkspecs/features/qt_tool.prf |
123 | +++ b/mkspecs/features/qt_tool.prf | 116 | +++ b/mkspecs/features/qt_tool.prf |
124 | @@ -15,8 +15,7 @@ CONFIG += console | 117 | @@ -15,8 +15,7 @@ CONFIG += console |
@@ -144,7 +137,7 @@ index e50485c..71291ad 100644 | |||
144 | { "QMAKE_XSPEC", QLibraryInfo::TargetSpecPath, true }, | 137 | { "QMAKE_XSPEC", QLibraryInfo::TargetSpecPath, true }, |
145 | }; | 138 | }; |
146 | diff --git a/qtbase.pro b/qtbase.pro | 139 | diff --git a/qtbase.pro b/qtbase.pro |
147 | index ed6fc39..2421f41 100644 | 140 | index d6861cf..92e6a83 100644 |
148 | --- a/qtbase.pro | 141 | --- a/qtbase.pro |
149 | +++ b/qtbase.pro | 142 | +++ b/qtbase.pro |
150 | @@ -71,16 +71,22 @@ CONFIG -= qt | 143 | @@ -71,16 +71,22 @@ CONFIG -= qt |
@@ -273,7 +266,7 @@ index 99d87e2..5621dc0 100644 | |||
273 | _qt5_Widgets_check_file_exists(${imported_location}) | 266 | _qt5_Widgets_check_file_exists(${imported_location}) |
274 | 267 | ||
275 | diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp | 268 | diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp |
276 | index cff3f1b..540708b 100644 | 269 | index b756509..7e61845 100644 |
277 | --- a/tools/configure/configureapp.cpp | 270 | --- a/tools/configure/configureapp.cpp |
278 | +++ b/tools/configure/configureapp.cpp | 271 | +++ b/tools/configure/configureapp.cpp |
279 | @@ -1213,6 +1213,13 @@ void Configure::parseCmdLine() | 272 | @@ -1213,6 +1213,13 @@ void Configure::parseCmdLine() |
@@ -290,7 +283,7 @@ index cff3f1b..540708b 100644 | |||
290 | else if (configCmdLine.at(i) == "-make-tool") { | 283 | else if (configCmdLine.at(i) == "-make-tool") { |
291 | ++i; | 284 | ++i; |
292 | if (i == argCount) | 285 | if (i == argCount) |
293 | @@ -3986,6 +3993,7 @@ void Configure::generateQConfigCpp() | 286 | @@ -3983,6 +3990,7 @@ void Configure::generateQConfigCpp() |
294 | << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl | 287 | << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl |
295 | << " \"qt_hlibpath=" << formatPath(dictionary["QT_HOST_LIBS"]) << "\"," << endl | 288 | << " \"qt_hlibpath=" << formatPath(dictionary["QT_HOST_LIBS"]) << "\"," << endl |
296 | << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl | 289 | << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl |
@@ -299,5 +292,5 @@ index cff3f1b..540708b 100644 | |||
299 | << " \"qt_hostspec=" << hostSpec << "\"," << endl | 292 | << " \"qt_hostspec=" << hostSpec << "\"," << endl |
300 | << "#endif" << endl | 293 | << "#endif" << endl |
301 | -- | 294 | -- |
302 | 1.9.1 | 295 | 2.0.0 |
303 | 296 | ||