all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luis Felipe via Bug reports for GNU Guix <bug-guix@gnu.org>
To: Liliana Marie Prikler <liliana.prikler@ist.tugraz.at>
Cc: 61236@debbugs.gnu.org
Subject: bug#61236: ibus-speech-to-text engine fails to run (?)
Date: Tue, 07 Feb 2023 16:41:41 +0000	[thread overview]
Message-ID: <maZwVJL3NGR0wzfQ4Rfk5n5jQBUzJfHu6RELvGir9xt8PIJLOWNR4okKL7rwqxObkbdo3vc9LrCqYXZzUN6QlRSscbkJnG15maN1d7Gyldo=@protonmail.com> (raw)
In-Reply-To: <-XqHKw2dYv2RK829tKPKd0qnAhUPgmijcLZTPXfVJUGDIsgEjUqWSzElLH3IZgoXD-YTPlZPemvS9KudtAFQzyKbjfjLfAtaaZo7Ow0JUj0=@protonmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1032 bytes --]

Hi,

The attached patch fixed the issue for me. Now ibus-engine-stt seems to be running correctly and I can switch to the input method without the workaround indicated in the initial report.

I noticed that there are some lint issues from the original package definition though. I didn't fixed those:

$ ./pre-inst-env guix lint ibus-speech-to-text
/home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0: 

[1] 'desktop-file-utils' should probably be a native input

/home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0: 

[2] 'glib:bin' should probably be a native input

/home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0: 

[3] 'gobject-introspection' should probably be a native input

/home/yo/guix/gnu/packages/ibus.scm:899:5: ibus-speech-to-text@0.4.0: 

[4] label 'glib' does not match package name 'glib:bin'

/home/yo/guix/gnu/packages/ibus.scm:856:2: ibus-speech-to-text@0.4.0: 

[5] "bash-minimal" should be in 'inputs' when 'wrap-program' is used

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-ibus-speech-to-text-Fix-execution-of-ibus-engine.patch --]
[-- Type: text/x-patch; filename="0001-gnu-ibus-speech-to-text-Fix-execution-of-ibus-engine.patch"; name="0001-gnu-ibus-speech-to-text-Fix-execution-of-ibus-engine.patch", Size: 2900 bytes --]

From 2348c2290966e6480897f89e0ca6fdc555b6d41f Mon Sep 17 00:00:00 2001
From: Luis Felipe <luis.felipe.la@protonmail.com>
Date: Tue, 7 Feb 2023 10:49:31 -0500
Subject: [PATCH] gnu: ibus-speech-to-text: Fix execution of ibus-engine-stt.

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

* gnu/packages/ibus.scm (ibus-speech-to-text)[phases]: Remove path to
ibus-stt directory from GI_TYPELIB_PATH, since it doesn't provide
typelibs. Remove path to ibus' typelibs directory from
GUIX_PYTHONPATH, since it doesn't provide Python modules. Remove
unnecessary delimiters from all environment variables.
---
 gnu/packages/ibus.scm | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 4c45671acc..b1f573a875 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2021 Songlin Jiang <hollowman@hollowman.ml>
 ;;; Copyright © 2021 Taiju HIGASHI <higashi@taiju.info>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2023 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -882,21 +883,16 @@ (define-public ibus-speech-to-text
              (let ((out (assoc-ref outputs "out")))
                (for-each (lambda (prog)
                            (wrap-program prog
-                             `("GST_PLUGIN_PATH" ":" prefix
+                             `("GST_PLUGIN_PATH" prefix
                                (,(string-append (assoc-ref inputs "gst-vosk")
                                                 "/lib/gstreamer-1.0")
                                 ,(getenv "GST_PLUGIN_SYSTEM_PATH")))
-                             `("GUIX_PYTHONPATH" ":" prefix
+                             `("GUIX_PYTHONPATH" prefix
                                (,(getenv "GUIX_PYTHONPATH")
-                                ,(string-append (assoc-ref inputs "ibus")
-                                                "/lib/girepository-1.0")
                                 ,(string-append (assoc-ref outputs "out")
                                                 "/share/ibus-stt")))
-                             `("GI_TYPELIB_PATH" ":" prefix
-                               (,(string-append (assoc-ref inputs "ibus")
-                                                "/lib/girepository-1.0")
-                                ,(string-append (assoc-ref outputs "out")
-                                                "/share/ibus-stt")))))
+                             `("GI_TYPELIB_PATH" =
+                               (,(getenv "GI_TYPELIB_PATH")))))
                          (list (string-append out "/libexec/ibus-engine-stt")
                                (string-append out "/libexec/ibus-setup-stt")))))))))
     (inputs

base-commit: 1f684d00d25f0f205c4cc4b762d8f56911062581
-- 
2.38.1


[-- Attachment #1.3: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1722 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

  reply	other threads:[~2023-02-07 16:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02 19:46 bug#61236: ibus-speech-to-text engine fails to run (?) Luis Felipe via Bug reports for GNU Guix
2023-02-03  7:14 ` Liliana Marie Prikler
2023-02-03 17:07   ` Luis Felipe via Bug reports for GNU Guix
2023-02-07 16:41     ` Luis Felipe via Bug reports for GNU Guix [this message]
2023-02-08  7:32       ` Liliana Marie Prikler
2023-02-09 19:33         ` Luis Felipe via Bug reports for GNU Guix
2023-02-10  6:42           ` Liliana Marie Prikler
2023-02-09 19:38 ` bug#61236: [PATCH v1] gnu: ibus-speech-to-text: Fix execution of ibus-engine-stt sirgazil--- via Bug reports for GNU Guix
2023-02-10 18:49 ` bug#61236: [PATCH v2 1/2] " sirgazil--- via Bug reports for GNU Guix
2023-02-10 18:49   ` bug#61236: [PATCH v2 2/2] gnu: ibus-speech-to-text: Fix lint warnings sirgazil--- via Bug reports for GNU Guix
2023-02-12  7:53     ` Liliana Marie Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='maZwVJL3NGR0wzfQ4Rfk5n5jQBUzJfHu6RELvGir9xt8PIJLOWNR4okKL7rwqxObkbdo3vc9LrCqYXZzUN6QlRSscbkJnG15maN1d7Gyldo=@protonmail.com' \
    --to=bug-guix@gnu.org \
    --cc=61236@debbugs.gnu.org \
    --cc=liliana.prikler@ist.tugraz.at \
    --cc=luis.felipe.la@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.