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>
This commit is contained in:
宋文武 2023-09-04 18:24:26 +08:00 committed by Maxim Cournoyer
parent 67c705f481
commit 9809f27657
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -241,6 +241,12 @@ (define-public ibus
#$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