GNU bug report logs - #58046
Poedit fails to open PO files

Previous Next

Package: guix;

Reported by: Luis Felipe <luis.felipe.la <at> protonmail.com>

Date: Sat, 24 Sep 2022 19:04:01 UTC

Severity: normal

Done: Luis Felipe <sirgazil <at> zoho.com>

Bug is archived. No further changes may be made.

Full log


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

From: "(" <paren <at> disroot.org>
To: "Luis Felipe" <luis.felipe.la <at> protonmail.com>, <58046 <at> debbugs.gnu.org>
Subject: Re: bug#58046: Poedit fails to open PO files
Date: Sat, 24 Sep 2022 20:25:56 +0100
On Sat Sep 24, 2022 at 8:02 PM BST, Luis Felipe via Bug reports for GNU Guix wrote:
> WORKAROUND
>
> Start Poedit in a guix shell that adds gettext:
>
> guix shell poedit gettext
> poedit
>
> Then, you can open the PO files normally.
>
> So it seems the package definition for Poedit is missing gettext as a run-time dependency (?).

What might be referred to as a "run-time dependency" is called a
"propagated input" in Guix, where a dependency of X is installed
whenever X itself is installed. They are generally considered
undesirable and should be avoided, so when we're faced with this
sort of problem we usually do:

  (inputs (list gettext))

and add a phase:

  (add-after 'unpack 'patch-invocations
    (lambda* (#:key inputs #:allow-other-keys)
      (substitute* "src/foo/bar.c"
        (("\"msgfmt\"")
         (string-append
          "\""
          (search-input-file inputs "bin/msgfmt")
          "\"")))))

    -- (




This bug report was last modified 198 days ago.

Previous Next


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