diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-03 16:42:45 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-17 16:10:01 +0200 |
commit | c27dac3e4e11fb512a1483dacb8a4dcceb827323 (patch) | |
tree | cf40bb71172ac67846f6051d1829004a0c95c13e /recipes-qt/qt5/qtbase | |
parent | 70b1b233b20c4128cd068c35244c1a97934edf1d (diff) | |
download | meta-qt5-c27dac3e4e11fb512a1483dacb8a4dcceb827323.tar.gz |
qtbase: use the same patch for qt.conf override for target and native
Diffstat (limited to 'recipes-qt/qt5/qtbase')
-rw-r--r-- | recipes-qt/qt5/qtbase/0001-qlibraryinfo-Allow-the-specification-of-where-to-loa.patch | 32 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | 46 |
2 files changed, 46 insertions, 32 deletions
diff --git a/recipes-qt/qt5/qtbase/0001-qlibraryinfo-Allow-the-specification-of-where-to-loa.patch b/recipes-qt/qt5/qtbase/0001-qlibraryinfo-Allow-the-specification-of-where-to-loa.patch deleted file mode 100644 index 10219ec9..00000000 --- a/recipes-qt/qt5/qtbase/0001-qlibraryinfo-Allow-the-specification-of-where-to-loa.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 4dcf1eeaa1742435027ad0cb2a218e7e9b776011 Mon Sep 17 00:00:00 2001 | ||
2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | Date: Mon, 19 Nov 2012 10:19:52 -0200 | ||
4 | Subject: [PATCH] qlibraryinfo: Allow the specification of where to load | ||
5 | qt.conf | ||
6 | |||
7 | This is important to allow cross toolchains to work out of box. | ||
8 | |||
9 | This patch was based on an existent patch in OpenEmbedded. | ||
10 | |||
11 | Change-Id: Idc4feee95a9961db02752d88da9cfe360e89f8e3 | ||
12 | --- | ||
13 | src/corelib/global/qlibraryinfo.cpp | 4 ++++ | ||
14 | 1 file changed, 4 insertions(+) | ||
15 | |||
16 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
17 | index a756577..0c92e12 100644 | ||
18 | --- a/src/corelib/global/qlibraryinfo.cpp | ||
19 | +++ b/src/corelib/global/qlibraryinfo.cpp | ||
20 | @@ -164,6 +164,9 @@ QSettings *QLibraryInfoPrivate::findConfiguration() | ||
21 | } | ||
22 | } | ||
23 | #endif | ||
24 | + if (!QFile::exists(qtconfig)) { | ||
25 | + qtconfig = QFile::decodeName(getenv("QT_CONF_PATH")); | ||
26 | + } | ||
27 | if (QFile::exists(qtconfig)) | ||
28 | return new QSettings(qtconfig, QSettings::IniFormat); | ||
29 | return 0; //no luck | ||
30 | -- | ||
31 | 1.7.10.4 | ||
32 | |||
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 new file mode 100644 index 00000000..857d5e84 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 2af433da710aff74445cb5148d369427bdd501de 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 | ||
5 | environment | ||
6 | |||
7 | Allow to set a qt.conf from the outside using the environment. This allows | ||
8 | to inject new prefixes and other paths into qmake. This is needed when using | ||
9 | the same qmake binary to build qt/x11 and qt/embedded | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
14 | --- | ||
15 | src/corelib/global/qlibraryinfo.cpp | 8 ++++++++ | ||
16 | 1 file changed, 8 insertions(+) | ||
17 | |||
18 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | ||
19 | index 747fd87..c9f8170 100644 | ||
20 | --- a/src/corelib/global/qlibraryinfo.cpp | ||
21 | +++ b/src/corelib/global/qlibraryinfo.cpp | ||
22 | @@ -140,6 +140,10 @@ QSettings *QLibraryInfoPrivate::findConfiguration() | ||
23 | { | ||
24 | QString qtconfig = QStringLiteral(":/qt/etc/qt.conf"); | ||
25 | #ifdef QT_BOOTSTRAPPED | ||
26 | + if (!QFile::exists(qtconfig)) { | ||
27 | + QByteArray config = getenv("QT_CONF_PATH"); | ||
28 | + qtconfig = QFile::decodeName(config); | ||
29 | + } | ||
30 | if(!QFile::exists(qtconfig)) | ||
31 | qtconfig = qt_libraryInfoFile(); | ||
32 | #else | ||
33 | @@ -164,6 +168,10 @@ QSettings *QLibraryInfoPrivate::findConfiguration() | ||
34 | } | ||
35 | } | ||
36 | #endif | ||
37 | + if (!QFile::exists(qtconfig)) { | ||
38 | + QByteArray config = getenv("QT_CONF_PATH"); | ||
39 | + qtconfig = QFile::decodeName(config); | ||
40 | + } | ||
41 | if (QFile::exists(qtconfig)) | ||
42 | return new QSettings(qtconfig, QSettings::IniFormat); | ||
43 | return 0; //no luck | ||
44 | -- | ||
45 | 1.8.1.5 | ||
46 | |||