summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-03 16:42:45 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-17 16:10:01 +0200
commitc27dac3e4e11fb512a1483dacb8a4dcceb827323 (patch)
treecf40bb71172ac67846f6051d1829004a0c95c13e /recipes-qt/qt5/qtbase
parent70b1b233b20c4128cd068c35244c1a97934edf1d (diff)
downloadmeta-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.patch32
-rw-r--r--recipes-qt/qt5/qtbase/0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch46
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 @@
1From 4dcf1eeaa1742435027ad0cb2a218e7e9b776011 Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Mon, 19 Nov 2012 10:19:52 -0200
4Subject: [PATCH] qlibraryinfo: Allow the specification of where to load
5 qt.conf
6
7This is important to allow cross toolchains to work out of box.
8
9This patch was based on an existent patch in OpenEmbedded.
10
11Change-Id: Idc4feee95a9961db02752d88da9cfe360e89f8e3
12---
13 src/corelib/global/qlibraryinfo.cpp | 4 ++++
14 1 file changed, 4 insertions(+)
15
16diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
17index 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--
311.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 @@
1From 2af433da710aff74445cb5148d369427bdd501de Mon Sep 17 00:00:00 2001
2From: Holger Freyther <zecke@selfish.org>
3Date: Wed, 26 Sep 2012 17:22:30 +0200
4Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the
5 environment
6
7Allow to set a qt.conf from the outside using the environment. This allows
8to inject new prefixes and other paths into qmake. This is needed when using
9the same qmake binary to build qt/x11 and qt/embedded
10
11Upstream-Status: Pending
12
13Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
14---
15 src/corelib/global/qlibraryinfo.cpp | 8 ++++++++
16 1 file changed, 8 insertions(+)
17
18diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
19index 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--
451.8.1.5
46