unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob df76fab910641d6428eb3de36cfde0baada8e2fa 1170 bytes (raw)
name: packages/patches/qtdeclarative-disable-qmlcache.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
 
Retrieved from
https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/development/libraries/qt-6/patches/qtdeclarative-default-disable-qmlcache.patch

From 2d561e0a80f2d123a7348187975ee845f9dcd9e0 Mon Sep 17 00:00:00 2001
From: Nick Cao <nickcao@nichi.co>
Date: Tue, 10 Oct 2023 11:12:27 -0400
Subject: [PATCH] qtdeclarative: disable qml disk cache

---
 src/qml/jsruntime/qv4engine.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
index d1b4c4fff6..50f8a07420 100644
--- a/src/qml/jsruntime/qv4engine.cpp
+++ b/src/qml/jsruntime/qv4engine.cpp
@@ -2232,11 +2232,7 @@ ExecutionEngine::DiskCacheOptions ExecutionEngine::diskCacheOptions() const
 {
     if (forceDiskCache())
         return DiskCache::Enabled;
-    if (disableDiskCache() || debugger())
-        return DiskCache::Disabled;
-    static const DiskCacheOptions options = qmlGetConfigOption<
-            DiskCacheOptions, transFormDiskCache>("QML_DISK_CACHE");
-    return options;
+    return DiskCache::Disabled;
 }
 
 void ExecutionEngine::callInContext(QV4::Function *function, QObject *self,
-- 
2.42.0

debug log:

solving df76fab910641d6428eb3de36cfde0baada8e2fa ...
found df76fab910641d6428eb3de36cfde0baada8e2fa in https://git.savannah.gnu.org/cgit/guix.git

(*) 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).