GNU bug report logs - #57912
[PATCH 0/3] Build ibus with GTK4

Previous Next

Package: guix-patches;

Reported by: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Date: Sun, 18 Sep 2022 15:33:01 UTC

Severity: normal

Tags: patch

Done: Liliana Marie Prikler <liliana.prikler <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 57912 in the body.
You can then email your comments to 57912 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 guix-patches <at> gnu.org:
bug#57912; Package guix-patches. (Sun, 18 Sep 2022 15:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Liliana Marie Prikler <liliana.prikler <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 18 Sep 2022 15:33:02 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/3] Build ibus with GTK4
Date: Sun, 18 Sep 2022 17:28:52 +0200
Hi Guix,

after updating my system to the new GNOME 42, I noticed that my ibus input
methods broke.  Now obviously, this is due to the bump to GTK4, which is not
an ibus input (yet).  To make it one without sending Guix into an endless
loop, a little more is required, though.

Note that this series is as of yet untested; I will test it once I refreshed
all the broken extensions, so I only need to create one VM for all the tests.

Cheers

Liliana Marie Prikler (3):
  gnu: Add ibus-minimal.
  gnu: sdl2: Use ibus-minimal instead of ibus.
  gnu: ibus: Build with GTK4.

 gnu/packages/ibus.scm | 17 ++++++++++++++---
 gnu/packages/sdl.scm  |  2 +-
 2 files changed, 15 insertions(+), 4 deletions(-)

-- 
2.37.3





Information forwarded to guix-patches <at> gnu.org:
bug#57912; Package guix-patches. (Sun, 18 Sep 2022 15:55:02 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 57912 <at> debbugs.gnu.org
Subject: [PATCH 1/3] gnu: Add ibus-minimal.
Date: Sun, 18 Sep 2022 17:16:21 +0200
* gnu/packages/ibus.scm (ibus-minimal): New variable.
(ibus): Inherit from ibus-minimal.
---
 gnu/packages/ibus.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 4be80ecbe0..e4662901f3 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -67,9 +67,10 @@ (define-module (gnu packages ibus)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages unicode)
   #:use-module (gnu packages xorg)
-  #:use-module (gnu packages xdisorg))
+  #:use-module (gnu packages xdisorg)
+  #:use-module (srfi srfi-1))
 
-(define-public ibus
+(define-public ibus-minimal
   (package
     (name "ibus")
     (version "1.5.27")
@@ -233,7 +234,12 @@ (define-public ibus
 input method user interface.  It comes with multilingual input support.  It
 may also simplify input method development.")
     (home-page "https://github.com/ibus/ibus/wiki")
-    (license lgpl2.1+)))
+    (license lgpl2.1+)
+    (properties '((hidden? . #t)))))
+
+(define-public ibus
+  (package/inherit ibus-minimal
+    (properties (alist-delete 'hidden? (package-properties ibus-minimal)))))
 
 (define-public ibus-libpinyin
   (package
-- 
2.37.3





Information forwarded to guix-patches <at> gnu.org:
bug#57912; Package guix-patches. (Sun, 18 Sep 2022 15:55:02 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 57912 <at> debbugs.gnu.org
Subject: [PATCH 3/3] gnu: ibus: Build with GTK4.
Date: Sun, 18 Sep 2022 17:27:30 +0200
* gnu/packages/ibus.scm (ibus)[arguments]: Add “--enable-gtk4”.
[inputs]: Add gtk and pango-next.
---
 gnu/packages/ibus.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index e4662901f3..29bfc44e4a 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -239,6 +239,11 @@ (define-public ibus-minimal
 
 (define-public ibus
   (package/inherit ibus-minimal
+    (arguments (substitute-keyword-arguments (package-arguments ibus-minimal)
+                 ((#:configure-flags flags)
+                  #~(cons* "--enable-gtk4" #$flags))))
+    (inputs (modify-inputs (package-inputs ibus-minimal)
+              (prepend gtk pango-next)))
     (properties (alist-delete 'hidden? (package-properties ibus-minimal)))))
 
 (define-public ibus-libpinyin
-- 
2.37.3





Information forwarded to guix-patches <at> gnu.org:
bug#57912; Package guix-patches. (Sun, 18 Sep 2022 15:55:03 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 57912 <at> debbugs.gnu.org
Subject: [PATCH 2/3] gnu: sdl2: Use ibus-minimal instead of ibus.
Date: Sun, 18 Sep 2022 17:18:09 +0200
This prevents an input cycle between GTK -> ffmpeg -> sdl2 -> ibus -> GTK.

* gnu/packages/sdl.scm (sdl2)[inputs]: Replace ibus with ibus-minimal.
---
 gnu/packages/sdl.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 2523889a8d..8d1a9613da 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -148,7 +148,7 @@ (define-public sdl2
                eudev                    ;for discovering input devices
                fcitx                    ;helps with CJK input
                glib
-               ibus
+               ibus-minimal
                libxkbcommon
                libxcursor               ;enables X11 cursor support
                wayland
-- 
2.37.3





Reply sent to Liliana Marie Prikler <liliana.prikler <at> gmail.com>:
You have taken responsibility. (Tue, 04 Oct 2022 18:47:01 GMT) Full text and rfc822 format available.

Notification sent to Liliana Marie Prikler <liliana.prikler <at> gmail.com>:
bug acknowledged by developer. (Tue, 04 Oct 2022 18:47:01 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 57912-done <at> debbugs.gnu.org
Subject: Re: [PATCH 3/3] gnu: ibus: Build with GTK4.
Date: Tue, 04 Oct 2022 20:46:28 +0200
Am Sonntag, dem 18.09.2022 um 17:27 +0200 schrieb Liliana Marie
Prikler:
> * gnu/packages/ibus.scm (ibus)[arguments]: Add “--enable-gtk4”.
> [inputs]: Add gtk and pango-next.
Pushed now.

The reason this took so long was because the ibus registry really hates
me.  See also <https://issues.guix.gnu.org/22707>.  The series of
command that led me to success was

$ rm ~/.cache/ibus -rf
$ ibus write-cache
$ pkill ibus
$ ibus-setup

Note that this was more or less required thanks to a stale cache and
not due to the lack of GTK4 support; the GTK4 support just makes it so
that GTK4 apps can actually use ibus.

Hopefully there's a more sane way to do this and hopefully this isn't
required per reboot.

Cheers




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

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

Previous Next


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