unofficial mirror of bug-guix@gnu.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: Thu, 09 Feb 2023 19:33:42 +0000	[thread overview]
Message-ID: <MB-hrqN-_PH2hHlL-SN7GBo2iBRw0HRaNrLdzmL-8kWBszLpQbiWO9lfwVVJPU68CH7KMCY86S-GvUg0RAnJEIqn5tXIkwSRqfi9bD17DGQ=@protonmail.com> (raw)
In-Reply-To: <4240a5efd5a902d1ac006da472922a90580c9961.camel@ist.tugraz.at>


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

Hi Liliana,

> > Remove path to ibus' typelibs directory from GUIX_PYTHONPATH, since
> > it doesn't provide Python modules.
> 

> I think you should also use getenv here. I think we should mimic
> python-build-system here and add the output directory to
> GUIX_PYTHONPATH before it gets wrapped.

I'm not sure I understand this part. Do you mean something like this (set GUIX_PYTHONPATH in the let definitions)?:

(let* ((out (assoc-ref outputs "out"))
       (ibus-stt-dir (string-append out "/share/ibus-stt"))
       (guix-pythonpath
        (setenv "GUIX_PYTHONPATH"
                (string-append ibus-stt-dir ":"
                               (getenv "GUIX_PYTHONPATH")))))
  (for-each (lambda (prog)
              (wrap-program prog
                `("GST_PLUGIN_PATH" ":" prefix
                  (,(string-append (assoc-ref inputs "gst-vosk")
                                   "/lib/gstreamer-1.0")
                   ,(getenv "GST_PLUGIN_SYSTEM_PATH")))
                `("GUIX_PYTHONPATH" =
                  (,(getenv "GUIX_PYTHONPATH")))
                `("GI_TYPELIB_PATH" =
                  (,(getenv "GI_TYPELIB_PATH")))))
            (list (string-append out "/libexec/ibus-engine-stt")
                  (string-append out "/libexec/ibus-setup-stt"))))

In the meantime, I just sent a new version of the patch using git send-email to refresh my memory (haven't used it in years) and check whether automatic tasks are triggered in the infrastructure. The new patch amends the commit message and puts delimiters back. I will send another version later once I understand what is left to be done, together with the other patch to fix lint issues, as you suggested.

[-- Attachment #1.2: 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-09 19:34 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
2023-02-08  7:32       ` Liliana Marie Prikler
2023-02-09 19:33         ` Luis Felipe via Bug reports for GNU Guix [this message]
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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='MB-hrqN-_PH2hHlL-SN7GBo2iBRw0HRaNrLdzmL-8kWBszLpQbiWO9lfwVVJPU68CH7KMCY86S-GvUg0RAnJEIqn5tXIkwSRqfi9bD17DGQ=@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).