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>

To reply to this bug, email your comments to 58046 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#58046; Package guix. (Sat, 24 Sep 2022 19:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Luis Felipe <luis.felipe.la <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 24 Sep 2022 19:04:02 GMT) Full text and rfc822 format available.

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

From: Luis Felipe <luis.felipe.la <at> protonmail.com>
To: Luis Felipe via Bug reports for GNU Guix <bug-guix <at> gnu.org>
Subject: Poedit fails to open PO files
Date: Sat, 24 Sep 2022 19:02:41 +0000
[Message part 1 (text/plain, inline)]
STEPS TO REPRODUCE

1. Launch Poedit
2. Open the attached PO file (guix-website-es.po)


EXPECTED RESULT

☑ Poedit displays the catalog correctly


UNEXPECTED RESULT

☒ The catalog is not displayed. Instead you see an error:

Poedit Error: Unhandled exception occurred: Cannot execute program: msgfmt -o /dev/null -c "/path/to/guix-website-es.po"


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 (?).


SYSTEM INFO

Guix System (guix 77e768a)  

Poedit 2.2.4  




---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/
[guix-website-es.po (text/x-gettext-translation, attachment)]
[publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#58046; Package guix. (Sat, 24 Sep 2022 19:27:01 GMT) Full text and rfc822 format available.

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")
          "\"")))))

    -- (




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

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

From: Luis Felipe <luis.felipe.la <at> protonmail.com>
To: "(" <paren <at> disroot.org>
Cc: 58046 <at> debbugs.gnu.org
Subject: Re: bug#58046: Poedit fails to open PO files
Date: Sun, 25 Sep 2022 13:14:02 +0000
[Message part 1 (text/plain, inline)]
On Saturday, September 24th, 2022 at 19:25, ( <paren <at> disroot.org> wrote:

> 

> 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")
> "\"")))))

Thanks, (, I'll try to patch it.

[publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Reply sent to Luis Felipe <sirgazil <at> zoho.com>:
You have taken responsibility. (Sat, 02 Nov 2024 15:19:02 GMT) Full text and rfc822 format available.

Notification sent to Luis Felipe <luis.felipe.la <at> protonmail.com>:
bug acknowledged by developer. (Sat, 02 Nov 2024 15:19:02 GMT) Full text and rfc822 format available.

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

From: Luis Felipe <sirgazil <at> zoho.com>
To: 58046-done <at> debbugs.gnu.org
Subject: Poedit fails to open PO files
Date: Sat, 2 Nov 2024 15:18:02 +0000
[Message part 1 (text/plain, inline)]
This issue has been solved indirectly, apparently (I don't see changes 
to the package definition since 2019).

I followed the steps to reproduce the issue, but the file attached to 
the initial report opens successfully:

Screenshot of Poedit 2.2.4 loading the catalog correctly.

This test was using:

guix ac19ae3
poedit 2.2.4

-- 
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/

[OpenPGP_0x0AB0D067012F08C3.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 24 days ago.

Previous Next


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