all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob ed749cb238a5441242f2a7a7c454e11c9764ab03 1466 bytes (raw)
name: gnu/packages/patches/qtbase-check-in-the-QML-folder-of-this-library-does-.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
From c00e310092d9aeb48adf21dd22f1ee4dbdbf5ebb Mon Sep 17 00:00:00 2001
From: Nick Cao <nickcao@nichi.co>
Date: Tue, 10 Oct 2023 10:17:00 -0400
Subject: [PATCH 10/11] qtbase: check in the QML folder of this library does
 actually exist

In a modularized installation, this folder will be the location where
`qtbase` itself is installed, but `qtbase` does not have any QML
code, and `qmlimportscanner` will complain that it does not exist.
---
 src/tools/macdeployqt/shared/shared.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/tools/macdeployqt/shared/shared.cpp b/src/tools/macdeployqt/shared/shared.cpp
index 320095a972d..87ba0d4e24b 100644
--- a/src/tools/macdeployqt/shared/shared.cpp
+++ b/src/tools/macdeployqt/shared/shared.cpp
@@ -1297,9 +1297,12 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
     }
     for (const QString &importPath : qmlImportPaths)
         argumentList << "-importPath" << importPath;
+
     QString qmlImportsPath = QLibraryInfo::path(QLibraryInfo::QmlImportsPath);
-    argumentList.append( "-importPath");
-    argumentList.append(qmlImportsPath);
+    if (QFile::exists(qmlImportsPath)) {
+        argumentList.append( "-importPath");
+        argumentList.append(qmlImportsPath);
+    }
 
     // In a modularized installation of qt as we have in Nix, instead, we will
     // read the paths from the environment, as they are spread in multiple
-- 
2.42.0


debug log:

solving ed749cb238 ...
found ed749cb238 in https://yhetil.org/guix/7ab3bccb56aef7d6c72a47f41d05836d240492c8.1710135242.git.zhengjunjie@iscas.ac.cn/ ||
	https://yhetil.org/guix/bc18872a7614d817539858083458054025f132a0.1710154350.git.zhengjunjie@iscas.ac.cn/

applying [1/1] https://yhetil.org/guix/7ab3bccb56aef7d6c72a47f41d05836d240492c8.1710135242.git.zhengjunjie@iscas.ac.cn/
diff --git a/gnu/packages/patches/qtbase-check-in-the-QML-folder-of-this-library-does-.patch b/gnu/packages/patches/qtbase-check-in-the-QML-folder-of-this-library-does-.patch
new file mode 100644
index 0000000000..ed749cb238

1:36: trailing whitespace.
 
1:39: trailing whitespace.
-- 
Checking patch gnu/packages/patches/qtbase-check-in-the-QML-folder-of-this-library-does-.patch...
1:41: new blank line at EOF.
+
Applied patch gnu/packages/patches/qtbase-check-in-the-QML-folder-of-this-library-does-.patch cleanly.
warning: 3 lines add whitespace errors.

skipping https://yhetil.org/guix/bc18872a7614d817539858083458054025f132a0.1710154350.git.zhengjunjie@iscas.ac.cn/ for ed749cb238
index at:
100644 ed749cb238a5441242f2a7a7c454e11c9764ab03	gnu/packages/patches/qtbase-check-in-the-QML-folder-of-this-library-does-.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.