summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Levonmaa <mikko.levonmaa@gmail.com>2012-12-18 12:14:40 -0800
committerMartin Jansa <Martin.Jansa@gmail.com>2013-02-17 10:04:10 +0100
commita812c654dbf9df088ab9a06a890e49d39bd7d6a6 (patch)
tree13092b196c841e39a65ad18ee18296de072be6e9
parent9f04cb7bb6f9753e32988127038b648afbd9b974 (diff)
downloadmeta-qt5-a812c654dbf9df088ab9a06a890e49d39bd7d6a6.tar.gz
qt5-native: Getting rid of printf statements in qmake
They will cause the building of cmake-native to fail as it will parse the output of qmake -query and is not expecting to find the added lines in the output Signed-off-by: Mikko Levonmaa <mikko.levonmaa@gmail.com>
-rw-r--r--recipes-qt/qt5/qt5-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch3
-rw-r--r--recipes-qt/qt5/qtbase/0001-qlibraryinfo-Allow-the-specification-of-where-to-loa.patch3
2 files changed, 2 insertions, 4 deletions
diff --git a/recipes-qt/qt5/qt5-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch b/recipes-qt/qt5/qt5-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch
index 6c9affae..1b294fd2 100644
--- a/recipes-qt/qt5/qt5-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch
+++ b/recipes-qt/qt5/qt5-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch
@@ -14,13 +14,12 @@ diff --git a/qmake/option.cpp b/qmake/option.cpp
14index 91c154a..a4f3a85 100644 14index 91c154a..a4f3a85 100644
15--- a/qmake/option.cpp 15--- a/qmake/option.cpp
16+++ b/qmake/option.cpp 16+++ b/qmake/option.cpp
17@@ -647,6 +647,11 @@ qmakeAddCacheClear(qmakeCacheClearFunc func, void **data) 17@@ -647,6 +647,10 @@ qmakeAddCacheClear(qmakeCacheClearFunc func, void **data)
18 18
19 QString qt_libraryInfoFile() 19 QString qt_libraryInfoFile()
20 { 20 {
21+ QString qtconfig = QFile::decodeName(getenv("QT_CONF_PATH")); 21+ QString qtconfig = QFile::decodeName(getenv("QT_CONF_PATH"));
22+ if (QFile::exists(qtconfig)) { 22+ if (QFile::exists(qtconfig)) {
23+ printf("Overriding with qt.conf from: %s\n", qtconfig.toLatin1().data());
24+ return qtconfig; 23+ return qtconfig;
25+ } 24+ }
26 if (!Option::globals->qmake_abslocation.isEmpty()) 25 if (!Option::globals->qmake_abslocation.isEmpty())
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
index f72bccd4..10219ec9 100644
--- 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
@@ -17,13 +17,12 @@ diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryin
17index a756577..0c92e12 100644 17index a756577..0c92e12 100644
18--- a/src/corelib/global/qlibraryinfo.cpp 18--- a/src/corelib/global/qlibraryinfo.cpp
19+++ b/src/corelib/global/qlibraryinfo.cpp 19+++ b/src/corelib/global/qlibraryinfo.cpp
20@@ -164,6 +164,10 @@ QSettings *QLibraryInfoPrivate::findConfiguration() 20@@ -164,6 +164,9 @@ QSettings *QLibraryInfoPrivate::findConfiguration()
21 } 21 }
22 } 22 }
23 #endif 23 #endif
24+ if (!QFile::exists(qtconfig)) { 24+ if (!QFile::exists(qtconfig)) {
25+ qtconfig = QFile::decodeName(getenv("QT_CONF_PATH")); 25+ qtconfig = QFile::decodeName(getenv("QT_CONF_PATH"));
26+ printf("Using qt.conf from: %s\n", qtconfig.toLatin1().data());
27+ } 26+ }
28 if (QFile::exists(qtconfig)) 27 if (QFile::exists(qtconfig))
29 return new QSettings(qtconfig, QSettings::IniFormat); 28 return new QSettings(qtconfig, QSettings::IniFormat);