Subject: bug#65728: closed (Re: bug#65728: [PATCH] gnu: ibus: Disable registry cache.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 06 Sep 2023 01:00:03 +0000

Your bug report

#65728: [PATCH] gnu: ibus: Disable registry cache.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
65728: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65728
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#65728: [PATCH] gnu: ibus: Disable registry cache.
From: Maxim Cournoyer <[email-masked]>
To: [email-masked]
Cc: 宋文武 <[email-masked]>, [email-masked], Zhu Zihao <[email-masked]>
Date: Tue, 05 Sep 2023 20:58:53 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

[email-masked] writes:

> From: 宋文武 <[email-masked]>
>
> Fixes <https://issues.guix.gnu.org/22707>.
>
> * gnu/packages/ibus.scm (ibus)[arguments]: Add 'disable-registry-cache' phase.
> ---
>  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 @@ (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
>
> base-commit: c72bc0bb71a7315241c174636f96faee46a6dfa8

Thanks, installed!

-- 
Thanks,
Maxim

Subject: [PATCH] gnu: ibus: Disable registry cache.
From: [email-masked]
To: [email-masked]
Cc: 宋文武 <[email-masked]>
Date: Mon, 4 Sep 2023 18:24:26 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

From: 宋文武 <[email-masked]>

Fixes <https://issues.guix.gnu.org/22707>.

* gnu/packages/ibus.scm (ibus)[arguments]: Add 'disable-registry-cache' phase.
---
 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 @@ (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

base-commit: c72bc0bb71a7315241c174636f96faee46a6dfa8
-- 
2.41.0