[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58046: Poedit fails to open PO files
From: |
( |
Subject: |
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")
"\"")))))
-- (