anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / development / libraries / qt-6 / patches / 0009-qtbase-check-in-the-QML-folder-of-this-library-does-.patch
blob890c68a97f77f07bff28e9daae1158af70be4464
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Nick Cao <nickcao@nichi.co>
3 Date: Tue, 10 Oct 2023 10:17:00 -0400
4 Subject: [PATCH] qtbase: check in the QML folder of this library does actually
5 exist
7 In a modularized installation, this folder will be the location where
8 `qtbase` itself is installed, but `qtbase` does not have any QML
9 code, and `qmlimportscanner` will complain that it does not exist.
10 ---
11 src/tools/macdeployqt/shared/shared.cpp | 7 +++++--
12 1 file changed, 5 insertions(+), 2 deletions(-)
14 diff --git a/src/tools/macdeployqt/shared/shared.cpp b/src/tools/macdeployqt/shared/shared.cpp
15 index 2b972a76c49..96c61b3824a 100644
16 --- a/src/tools/macdeployqt/shared/shared.cpp
17 +++ b/src/tools/macdeployqt/shared/shared.cpp
18 @@ -1300,9 +1300,12 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
20 for (const QString &importPath : qmlImportPaths)
21 argumentList << "-importPath" << importPath;
23 QString qmlImportsPath = QLibraryInfo::path(QLibraryInfo::QmlImportsPath);
24 - argumentList.append( "-importPath");
25 - argumentList.append(qmlImportsPath);
26 + if (QFile::exists(qmlImportsPath)) {
27 + argumentList.append( "-importPath");
28 + argumentList.append(qmlImportsPath);
29 + }
31 // In a modularized installation of qt as we have in Nix, instead, we will
32 // read the paths from the environment, as they are spread in multiple