guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/40: gnu: ibus: Disable registry cache.


From: guix-commits
Subject: 10/40: gnu: ibus: Disable registry cache.
Date: Tue, 5 Sep 2023 20:02:16 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 9809f27657a6a16a4bbb45d8b571a6f92e6e2117
Author: 宋文武 <iyzsong@member.fsf.org>
AuthorDate: Mon Sep 4 18:24:26 2023 +0800

    gnu: ibus: Disable registry cache.
    
    Fixes <https://issues.guix.gnu.org/22707>.
    
    * gnu/packages/ibus.scm (ibus)[arguments]: Add 'disable-registry-cache' 
phase.
    
    Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
 gnu/packages/ibus.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index f9ef44a6d9..62323ece6f 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -241,6 +241,12 @@ may also simplify input method development.")
                  #$flags))
        ((#:phases phases '%standard-phases)
         #~(modify-phases #$phases
+            (add-after 'unpack 'disable-registry-cache
+              ;; IBus registry cache depends on mtime, which doesn't work on
+              ;; Guix.
+              (lambda _
+                (substitute* "bus/main.c"
+                  (("ibus_init") "g_cache = \"none\"; ibus_init"))))
             (replace 'wrap-with-additional-paths
               (lambda* (#:key outputs #:allow-other-keys)
                 ;; Make sure 'ibus-setup' and 'ibus-daemon' runs with the



reply via email to

[Prev in Thread] Current Thread [Next in Thread]