git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Compile error due to po/fr.po on old gettext in v2.21.0

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 25, 2019, 20:19 UTC
Message-ID
<874l8rwrh2.fsf@evledraar.gmail.com>
On a NetBSD test box I have with msgfmt 0.14.4 v2.21.0 fails to compile.

I didn't spot this in rc2 because b3225a4183 ("l10n: fr.po v2.21.0 rnd 2", 2019-02-13) along with the rest of i18n updates gets pulled in after all the RCs.

The error s:
    $ msgfmt --version; msgfmt -o fr.mo po/fr.po
    msgfmt (GNU gettext-tools) 0.14.4
    Copyright (C) 1995-1998, 2000-2005 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Written by Ulrich Drepper.
    po/fr.po:22482:4: parse error
    po/fr.po:22482: missing `msgstr' section
    po/fr.po:22487:4: parse error
    po/fr.po:22487: missing `msgstr' section
    po/fr.po:22492:4: parse error
    po/fr.po:22492: missing `msgstr' section
    po/fr.po:22497:4: parse error
    po/fr.po:22497: missing `msgstr' section
    po/fr.po:22502:4: parse error
    po/fr.po:22502: missing `msgstr' section
    po/fr.po:22507:4: parse error
    po/fr.po:22507: missing `msgstr' section
    po/fr.po:22512:4: parse error
    po/fr.po:22512: missing `msgstr' section
    po/fr.po:22517:4: parse error
    po/fr.po:22517: missing `msgstr' section
    po/fr.po:22522:4: parse error
    po/fr.po:22522: missing `msgstr' section
    po/fr.po:22527:4: parse error
    po/fr.po:22527: missing `msgstr' section
    msgfmt: too many errors, aborting
It's "fixed" by:
    perl -pi -e 's/^#~\|.*\n//' po/fr.po
I.e. this is because of the comments being parsed (fuzzy comments).

The 0.14.4 gettext release was back in 2005, so presumably this is due to some GPLv3 allergy of NetBSD's. The OS version itself is 7.1, released a couple of years ago.

Next: Jean-Noël AVILA
Message 1 of 9 in “Compile error due to po/fr.po on old gettext in v2.21.0”
  1. Ævar Arnfjörð BjarmasonFeb 25, 2019
  2. Jean-Noël AVILAFeb 25, 2019
  3. Ævar Arnfjörð BjarmasonFeb 25, 2019
  4. Jiang XinFeb 26, 2019
  5. l10n: fr.po unfuzzy commented entriesJean-Noël Avila, Feb 25, 2019
  6. Ævar Arnfjörð BjarmasonFeb 25, 2019
  7. Jean-Noël AVILAFeb 26, 2019
  8. l10n: fr.po remove obsolete entriesJean-Noël Avila, Feb 26, 2019
  9. Jiang XinFeb 27, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.