diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-21 21:44:31 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-21 21:45:11 +0200 |
commit | 81b7031859176f24c028c7234d795812bd1a3c95 (patch) | |
tree | 8fc657ea80127a6dae314ce4f81880a66f8c4290 | |
parent | 26d8de54047979dee8289c077467ee8b4f4934af (diff) | |
download | meta-qt5-81b7031859176f24c028c7234d795812bd1a3c95.tar.gz |
qtbase: fix qlibrayinfo patch
* returning QSettings even without existing qtconfig was causing,
e.g. QLibraryInfo::location(QLibraryInfo::PluginsPath) returning
"`pwd`/plugins" instead of correct "/usr/lib/qt5/plugins"
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
3 files changed, 18 insertions, 45 deletions
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch index 1834beea..be7813ae 100644 --- a/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +++ b/recipes-qt/qt5/qtbase-5.0.2/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 41257668e0cb03056d79b2917d54a6e01bf2ed36 Mon Sep 17 00:00:00 2001 | 1 | From 5ba803e0ad0883ff6abc0e1efa1bf3ac3765348d Mon Sep 17 00:00:00 2001 |
2 | From: Holger Freyther <zecke@selfish.org> | 2 | From: Holger Freyther <zecke@selfish.org> |
3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 | 3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 |
4 | Subject: [PATCH 02/11] qlibraryinfo: allow to set qt.conf from the outside | 4 | Subject: [PATCH 02/14] qlibraryinfo: allow to set qt.conf from the outside |
5 | using the environment | 5 | using the environment |
6 | 6 | ||
7 | Allow to set a qt.conf from the outside using the environment. This allows | 7 | Allow to set a qt.conf from the outside using the environment. This allows |
@@ -10,13 +10,14 @@ the same qmake binary to build qt/x11 and qt/embedded | |||
10 | 10 | ||
11 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
12 | 12 | ||
13 | Change-Id: Ice5b16b3e3f6ba2c6cff7bd055d074628ab3aed0 | ||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
14 | --- | 15 | --- |
15 | src/corelib/global/qlibraryinfo.cpp | 7 ++++++- | 16 | src/corelib/global/qlibraryinfo.cpp | 5 ++++- |
16 | 1 file changed, 6 insertions(+), 1 deletion(-) | 17 | 1 file changed, 4 insertions(+), 1 deletion(-) |
17 | 18 | ||
18 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | 19 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp |
19 | index 5fb9640..acd11f5 100644 | 20 | index 5fb9640..6b40731 100644 |
20 | --- a/src/corelib/global/qlibraryinfo.cpp | 21 | --- a/src/corelib/global/qlibraryinfo.cpp |
21 | +++ b/src/corelib/global/qlibraryinfo.cpp | 22 | +++ b/src/corelib/global/qlibraryinfo.cpp |
22 | @@ -138,7 +138,10 @@ QLibrarySettings::QLibrarySettings() | 23 | @@ -138,7 +138,10 @@ QLibrarySettings::QLibrarySettings() |
@@ -31,16 +32,6 @@ index 5fb9640..acd11f5 100644 | |||
31 | #ifdef QT_BOOTSTRAPPED | 32 | #ifdef QT_BOOTSTRAPPED |
32 | if(!QFile::exists(qtconfig)) | 33 | if(!QFile::exists(qtconfig)) |
33 | qtconfig = qt_libraryInfoFile(); | 34 | qtconfig = qt_libraryInfoFile(); |
34 | @@ -165,7 +168,9 @@ QSettings *QLibraryInfoPrivate::findConfiguration() | ||
35 | } | ||
36 | #endif | ||
37 | if (QFile::exists(qtconfig)) | ||
38 | + printf("Using qt.conf from: %s\n", qtconfig.toLatin1().data()); | ||
39 | return new QSettings(qtconfig, QSettings::IniFormat); | ||
40 | + printf("qt.conf wasn't found!!\n"); | ||
41 | return 0; //no luck | ||
42 | } | ||
43 | |||
44 | -- | 35 | -- |
45 | 1.8.2.1 | 36 | 1.8.2.1 |
46 | 37 | ||
diff --git a/recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch index f1447597..dfb6ae93 100644 --- a/recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +++ b/recipes-qt/qt5/qtbase-git/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From a256652b730e88566eb04dd7cdc39d5a1281c7fe Mon Sep 17 00:00:00 2001 | 1 | From e4636d4d18246278fb504cff3e16321c98d1f99d Mon Sep 17 00:00:00 2001 |
2 | From: Holger Freyther <zecke@selfish.org> | 2 | From: Holger Freyther <zecke@selfish.org> |
3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 | 3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 |
4 | Subject: [PATCH 02/11] qlibraryinfo: allow to set qt.conf from the outside | 4 | Subject: [PATCH 02/14] qlibraryinfo: allow to set qt.conf from the outside |
5 | using the environment | 5 | using the environment |
6 | 6 | ||
7 | Allow to set a qt.conf from the outside using the environment. This allows | 7 | Allow to set a qt.conf from the outside using the environment. This allows |
@@ -10,13 +10,14 @@ the same qmake binary to build qt/x11 and qt/embedded | |||
10 | 10 | ||
11 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
12 | 12 | ||
13 | Change-Id: I0a53b713574e1860189fa52b44251eb4d19eeddc | ||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
14 | --- | 15 | --- |
15 | src/corelib/global/qlibraryinfo.cpp | 7 ++++++- | 16 | src/corelib/global/qlibraryinfo.cpp | 5 ++++- |
16 | 1 file changed, 6 insertions(+), 1 deletion(-) | 17 | 1 file changed, 4 insertions(+), 1 deletion(-) |
17 | 18 | ||
18 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | 19 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp |
19 | index 5fb9640..acd11f5 100644 | 20 | index 5fb9640..6b40731 100644 |
20 | --- a/src/corelib/global/qlibraryinfo.cpp | 21 | --- a/src/corelib/global/qlibraryinfo.cpp |
21 | +++ b/src/corelib/global/qlibraryinfo.cpp | 22 | +++ b/src/corelib/global/qlibraryinfo.cpp |
22 | @@ -138,7 +138,10 @@ QLibrarySettings::QLibrarySettings() | 23 | @@ -138,7 +138,10 @@ QLibrarySettings::QLibrarySettings() |
@@ -31,16 +32,6 @@ index 5fb9640..acd11f5 100644 | |||
31 | #ifdef QT_BOOTSTRAPPED | 32 | #ifdef QT_BOOTSTRAPPED |
32 | if(!QFile::exists(qtconfig)) | 33 | if(!QFile::exists(qtconfig)) |
33 | qtconfig = qt_libraryInfoFile(); | 34 | qtconfig = qt_libraryInfoFile(); |
34 | @@ -165,7 +168,9 @@ QSettings *QLibraryInfoPrivate::findConfiguration() | ||
35 | } | ||
36 | #endif | ||
37 | if (QFile::exists(qtconfig)) | ||
38 | + printf("Using qt.conf from: %s\n", qtconfig.toLatin1().data()); | ||
39 | return new QSettings(qtconfig, QSettings::IniFormat); | ||
40 | + printf("qt.conf wasn't found!!\n"); | ||
41 | return 0; //no luck | ||
42 | } | ||
43 | |||
44 | -- | 35 | -- |
45 | 1.8.2.1 | 36 | 1.8.2.1 |
46 | 37 | ||
diff --git a/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch index fc71a653..883b8096 100644 --- a/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +++ b/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 29812cee9589dedd10a94b66ed5279549ed62f36 Mon Sep 17 00:00:00 2001 | 1 | From 7d3de13a6d7a3142da0a5c6ebd815d343a356a23 Mon Sep 17 00:00:00 2001 |
2 | From: Holger Freyther <zecke@selfish.org> | 2 | From: Holger Freyther <zecke@selfish.org> |
3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 | 3 | Date: Wed, 26 Sep 2012 17:22:30 +0200 |
4 | Subject: [PATCH 02/11] qlibraryinfo: allow to set qt.conf from the outside | 4 | Subject: [PATCH 02/14] qlibraryinfo: allow to set qt.conf from the outside |
5 | using the environment | 5 | using the environment |
6 | 6 | ||
7 | Allow to set a qt.conf from the outside using the environment. This allows | 7 | Allow to set a qt.conf from the outside using the environment. This allows |
@@ -10,13 +10,14 @@ the same qmake binary to build qt/x11 and qt/embedded | |||
10 | 10 | ||
11 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
12 | 12 | ||
13 | Change-Id: I9247949c20a39eac8e815c175510ea3fb5bf9d33 | ||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
14 | --- | 15 | --- |
15 | src/corelib/global/qlibraryinfo.cpp | 7 ++++++- | 16 | src/corelib/global/qlibraryinfo.cpp | 5 ++++- |
16 | 1 file changed, 6 insertions(+), 1 deletion(-) | 17 | 1 file changed, 4 insertions(+), 1 deletion(-) |
17 | 18 | ||
18 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | 19 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp |
19 | index a8dc086..c16dfcb 100644 | 20 | index a8dc086..8138fff 100644 |
20 | --- a/src/corelib/global/qlibraryinfo.cpp | 21 | --- a/src/corelib/global/qlibraryinfo.cpp |
21 | +++ b/src/corelib/global/qlibraryinfo.cpp | 22 | +++ b/src/corelib/global/qlibraryinfo.cpp |
22 | @@ -138,7 +138,10 @@ QLibrarySettings::QLibrarySettings() | 23 | @@ -138,7 +138,10 @@ QLibrarySettings::QLibrarySettings() |
@@ -31,16 +32,6 @@ index a8dc086..c16dfcb 100644 | |||
31 | #ifdef QT_BOOTSTRAPPED | 32 | #ifdef QT_BOOTSTRAPPED |
32 | if(!QFile::exists(qtconfig)) | 33 | if(!QFile::exists(qtconfig)) |
33 | qtconfig = qt_libraryInfoFile(); | 34 | qtconfig = qt_libraryInfoFile(); |
34 | @@ -165,7 +168,9 @@ QSettings *QLibraryInfoPrivate::findConfiguration() | ||
35 | } | ||
36 | #endif | ||
37 | if (QFile::exists(qtconfig)) | ||
38 | + printf("Using qt.conf from: %s\n", qtconfig.toLatin1().data()); | ||
39 | return new QSettings(qtconfig, QSettings::IniFormat); | ||
40 | + printf("qt.conf wasn't found!!\n"); | ||
41 | return 0; //no luck | ||
42 | } | ||
43 | |||
44 | -- | 35 | -- |
45 | 1.8.2.1 | 36 | 1.8.2.1 |
46 | 37 | ||