summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch')
-rw-r--r--recipes-qt/qt5/qtbase-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch b/recipes-qt/qt5/qtbase-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch
new file mode 100644
index 00000000..1b294fd2
--- /dev/null
+++ b/recipes-qt/qt5/qtbase-native/0003-qtbase-Allow-qt.conf-override-when-bootstrapping.patch
@@ -0,0 +1,30 @@
1From 40e6c0f88774b55111c63ed28bba626141797476 Mon Sep 17 00:00:00 2001
2From: Mikko Levonmaa <mikko.levonmaa@palm.com>
3Date: Tue, 4 Dec 2012 15:32:33 -0800
4Subject: [PATCH 3/3] qtbase: Allow qt.conf override when bootstrapping
5
6Upstream-Status: Inappropriate [configuration]
7
8Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com>
9---
10 qmake/option.cpp | 5 +++++
11 1 files changed, 5 insertions(+), 0 deletions(-)
12
13diff --git a/qmake/option.cpp b/qmake/option.cpp
14index 91c154a..a4f3a85 100644
15--- a/qmake/option.cpp
16+++ b/qmake/option.cpp
17@@ -647,6 +647,10 @@ qmakeAddCacheClear(qmakeCacheClearFunc func, void **data)
18
19 QString qt_libraryInfoFile()
20 {
21+ QString qtconfig = QFile::decodeName(getenv("QT_CONF_PATH"));
22+ if (QFile::exists(qtconfig)) {
23+ return qtconfig;
24+ }
25 if (!Option::globals->qmake_abslocation.isEmpty())
26 return QDir(QFileInfo(Option::globals->qmake_abslocation).absolutePath()).filePath("qt.conf");
27 return QString();
28--
291.7.4.1
30