GNU bug report logs - #65728
[PATCH] gnu: ibus: Disable registry cache.

Previous Next

Package: guix-patches;

Reported by: iyzsong <at> envs.net

Date: Mon, 4 Sep 2023 10:25:02 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65728 in the body.
You can then email your comments to 65728 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to all_but_last <at> 163.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#65728; Package guix-patches. (Mon, 04 Sep 2023 10:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to iyzsong <at> envs.net:
New bug report received and forwarded. Copy sent to all_but_last <at> 163.com, iyzsong <at> envs.net, guix-patches <at> gnu.org. (Mon, 04 Sep 2023 10:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: iyzsong <at> envs.net
To: guix-patches <at> gnu.org
Cc: 宋文武 <iyzsong <at> member.fsf.org>
Subject: [PATCH] gnu: ibus: Disable registry cache.
Date: Mon,  4 Sep 2023 18:24:26 +0800
From: 宋文武 <iyzsong <at> member.fsf.org>

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





Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Wed, 06 Sep 2023 01:00:02 GMT) Full text and rfc822 format available.

Notification sent to iyzsong <at> envs.net:
bug acknowledged by developer. (Wed, 06 Sep 2023 01:00:03 GMT) Full text and rfc822 format available.

Message #10 received at 65728-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: iyzsong <at> envs.net
Cc: 宋文武 <iyzsong <at> member.fsf.org>,
 65728-done <at> debbugs.gnu.org, Zhu Zihao <all_but_last <at> 163.com>
Subject: Re: bug#65728: [PATCH] gnu: ibus: Disable registry cache.
Date: Tue, 05 Sep 2023 20:58:53 -0400
iyzsong <at> envs.net writes:

> From: 宋文武 <iyzsong <at> member.fsf.org>
>
> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 04 Oct 2023 11:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 219 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.