unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 7bf2193bc2081d54d7510a3c4d5e5c613445f8d4 1270 bytes (raw)
name: gnu/packages/patches/qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.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
 
From d7a9a3b0ecdbb1b5829f25954d763d767f1c8794 Mon Sep 17 00:00:00 2001
From: Nick Cao <nickcao@nichi.co>
Date: Tue, 10 Oct 2023 10:12:56 -0400
Subject: [PATCH 07/11] qtbase: pass to qmlimportscanner the QML2_IMPORT_PATH

---
 src/tools/macdeployqt/shared/shared.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/tools/macdeployqt/shared/shared.cpp b/src/tools/macdeployqt/shared/shared.cpp
index 2ae4f998944..ba10ae02bcd 100644
--- a/src/tools/macdeployqt/shared/shared.cpp
+++ b/src/tools/macdeployqt/shared/shared.cpp
@@ -1297,6 +1297,13 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
     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
+    // locations and normally set in the environment like this
+    auto envQmlImportPaths = ::qgetenv("QML2_IMPORT_PATH").split(':');
+    for (const QString &importPath : envQmlImportPaths)
+        argumentList << "-importPath" << importPath;
+
     // run qmlimportscanner
     QProcess qmlImportScanner;
     qmlImportScanner.start(qmlImportScannerPath, argumentList);
-- 
2.42.0


debug log:

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

applying [1/1] https://yhetil.org/guix-patches/7ab3bccb56aef7d6c72a47f41d05836d240492c8.1710135242.git.zhengjunjie@iscas.ac.cn/
diff --git a/gnu/packages/patches/qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch b/gnu/packages/patches/qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch
new file mode 100644
index 0000000000..7bf2193bc2

1:23: trailing whitespace.
 
1:34: trailing whitespace.
-- 
Checking patch gnu/packages/patches/qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch...
1:36: new blank line at EOF.
+
Applied patch gnu/packages/patches/qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch cleanly.
warning: 3 lines add whitespace errors.

skipping https://yhetil.org/guix-patches/bc18872a7614d817539858083458054025f132a0.1710154350.git.zhengjunjie@iscas.ac.cn/ for 7bf2193bc2
index at:
100644 7bf2193bc2081d54d7510a3c4d5e5c613445f8d4	gnu/packages/patches/qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).