diff options
-rw-r--r-- | recipes-qt/qt5/qtbase.inc | 1 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | 44 |
2 files changed, 0 insertions, 45 deletions
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc index b328fed7..f9684908 100644 --- a/recipes-qt/qt5/qtbase.inc +++ b/recipes-qt/qt5/qtbase.inc | |||
@@ -5,7 +5,6 @@ SRC_URI += " \ | |||
5 | file://0002-qmake-is-already-built-in-qt5-tools-native.patch \ | 5 | file://0002-qmake-is-already-built-in-qt5-tools-native.patch \ |
6 | file://0003-Allow-building-a-separate-qmake-for-the-target.patch \ | 6 | file://0003-Allow-building-a-separate-qmake-for-the-target.patch \ |
7 | " | 7 | " |
8 | #file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | ||
9 | 8 | ||
10 | # to provide xcb/xcb_icccm.h, xcb/xcb_image.h, xcb/xcb_keysyms.h | 9 | # to provide xcb/xcb_icccm.h, xcb/xcb_image.h, xcb/xcb_keysyms.h |
11 | DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms" | 10 | DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms" |
diff --git a/recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch deleted file mode 100644 index 6b5bed9a..00000000 --- a/recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From d5a0cf45ebbd6a5911f8bd208fe355eb990b5388 Mon Sep 17 00:00:00 2001 | ||
2 | From: Holger Freyther <zecke@selfish.org> | ||
3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 | ||
4 | Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the environment | ||
5 | |||
6 | Allow to set a qt.conf from the outside using the environment. This allows | ||
7 | to inject new prefixes and other paths into qmake. This is needed when using | ||
8 | the same qmake binary to build qt/x11 and qt/embedded | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
13 | --- | ||
14 | src/corelib/global/qlibraryinfo.cpp | 5 +++++ | ||
15 | 1 files changed, 5 insertions(+), 0 deletions(-) | ||
16 | |||
17 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
18 | index ccf0718..497e72e 100644 | ||
19 | --- a/src/corelib/global/qlibraryinfo.cpp | ||
20 | +++ b/src/corelib/global/qlibraryinfo.cpp | ||
21 | @@ -49,6 +49,8 @@ | ||
22 | QT_BEGIN_NAMESPACE | ||
23 | extern QString qt_libraryInfoFile(); | ||
24 | QT_END_NAMESPACE | ||
25 | +#include <stdlib.h> | ||
26 | +#include <stdio.h> | ||
27 | #elif defined(QT_BOOTSTRAPPED) | ||
28 | QString qt_libraryInfoFile() | ||
29 | { | ||
30 | @@ -142,6 +143,11 @@ QSettings *QLibraryInfoPrivate::findConfiguration() | ||
31 | #ifdef QT_BOOTSTRAPPED | ||
32 | if(!QFile::exists(qtconfig)) | ||
33 | qtconfig = qt_libraryInfoFile(); | ||
34 | + if (!QFile::exists(qtconfig)) { | ||
35 | + QByteArray config = getenv("QT_CONF_PATH"); | ||
36 | + qtconfig = QFile::decodeName(config); | ||
37 | + printf("using qt.conf %s", qtconfig.toLatin1().data()); | ||
38 | + } | ||
39 | #else | ||
40 | if (!QFile::exists(qtconfig) && QCoreApplication::instance()) { | ||
41 | #ifdef Q_OS_MAC | ||
42 | -- | ||
43 | 1.7.4.1 | ||
44 | |||