summary refs log tree commit diff
diff options
context:
space:
mode:
author宋文武 <iyzsong@member.fsf.org>2023-09-04 18:24:26 +0800
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-09-05 19:50:42 -0400
commit9809f27657a6a16a4bbb45d8b571a6f92e6e2117 (patch)
tree4ad592d7ad527e56e0223fe13ccf7515b0ad2d9c
parent67c705f481b25488789f42eaf3ddd8ca821b71f1 (diff)
downloadguix-9809f27657a6a16a4bbb45d8b571a6f92e6e2117.tar.gz
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>
-rw-r--r--gnu/packages/ibus.scm6
1 files changed, 6 insertions, 0 deletions
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