summarylogtreecommitdiffstats
path: root/0008-Prevent-error-when-qmlimportscanner-not-available.patch
diff options
context:
space:
mode:
authorMartchus2017-08-09 22:24:26 +0200
committerMartchus2017-08-09 22:24:26 +0200
commitf06a161bf2daa014a475878a7f98ae95a9f7fd9e (patch)
treee5f1f9908f88e175002d30c223aa1b131c6f2b9a /0008-Prevent-error-when-qmlimportscanner-not-available.patch
downloadaur-apple-darwin-qt5-base.tar.gz
Initial import
Diffstat (limited to '0008-Prevent-error-when-qmlimportscanner-not-available.patch')
-rw-r--r--0008-Prevent-error-when-qmlimportscanner-not-available.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/0008-Prevent-error-when-qmlimportscanner-not-available.patch b/0008-Prevent-error-when-qmlimportscanner-not-available.patch
new file mode 100644
index 000000000000..0f82bbab1a94
--- /dev/null
+++ b/0008-Prevent-error-when-qmlimportscanner-not-available.patch
@@ -0,0 +1,35 @@
+From 3381229855389d88f3599a4e1f1a42ac0f1b86e5 Mon Sep 17 00:00:00 2001
+From: Martchus <martchus@gmx.net>
+Date: Sun, 6 Aug 2017 20:14:11 +0200
+Subject: [PATCH 8/8] Prevent error when qmlimportscanner not available
+
+When using `make qmake_all` the qmlimportscanner is not
+built when creating Makefiles for targets depending on
+QML so the error must be ignored.
+
+BTW: Using `make qmake_all` is required to fix Makefiles
+using sed because qmake fails to set library search paths
+for host standard library correctly.
+
+Not sure why this error does not occur when cross
+compiling static Qt for Windows.
+---
+ mkspecs/features/qt.prf | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
+index 3ccbbe7061..c547c89910 100644
+--- a/mkspecs/features/qt.prf
++++ b/mkspecs/features/qt.prf
+@@ -305,7 +305,7 @@ contains(all_qt_module_deps, qml): \
+ #message(run $$QMLIMPORTSCANNER $$_PRO_FILE_PWD_ $$IMPORTPATHS)
+ JSON = $$system($$QMLIMPORTSCANNER $$system_quote($$_PRO_FILE_PWD_) $$IMPORTPATHS)
+
+- parseJson(JSON, IMPORTS)| error("Failed to parse qmlimportscanner output.")
++ parseJson(JSON, IMPORTS)#| error("Failed to parse qmlimportscanner output.")
+
+ !isEmpty(IMPORTS._KEYS_) {
+ # add import plugins to LIBS line
+--
+2.13.4
+