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

Re: [PATCH] makefile: teach git about NO_MSGFMT (as supported in GUI and gitk)

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 2, 2021, 10:38 UTC
Message-ID
<87fsunuulu.fsf@evledraar.gmail.com>
In-Reply-To
<87ilzjuv2t.fsf@evledraar.gmail.com>
On Thu, Sep 02 2021, Ævar Arnfjörð Bjarmason wrote:
Show 19 quoted lines
> On Thu, Sep 02 2021, Carlo Marcelo Arenas Belón wrote:
>
>> NO_MSGFMT can be used to indicate there is no msgfmt available, so
>> make git recognize that and avoid failing to build while trying to
>> generate i18n files.
>
> Why would we want to avoid failing the build if we don't have msgfmt?
>
> I understand why you'd want NO_GETTEXT in that case, but what's the
> point of building with NO_GETTEXT= NO_MSGFMT=Y?
>
> If we can't build the *.mo files we'll have a completely broken
> installation that can't do anything useful with gettext, so why not just
> build without gettext at that point?
>
> When this patch is applied a lot of things related to gettext in our
> tests fail if you build with NO_GETTEXT= NO_MSGFMT=Y, because those
> things are assuming that if NO_GETTEXT isn't defined we'll have the *.mo
> files, po/build etc.

Some further digging reveals that we've got in-tree git-gui/po/po2msg.sh and gitk-git/po/po2msg.sh (copy/pasted, but slightly different) that supports some subset of "msgfmt --tcl".

I.e. those programs with NO_MSGFMT still ends up with locae files they can use, whereas in this patch we don't end up with anything at all...

Previous: Ævar Arnfjörð BjarmasonNext: Carlo Arenas
Message 3 of 6 in “makefile: teach git about NO_MSGFMT (as supported in GUI and gitk)”
  1. makefile: teach git about NO_MSGFMT (as supported in GUI and gitk)Carlo Marcelo Arenas Belón, Sep 2, 2021
  2. Ævar Arnfjörð BjarmasonSep 2, 2021
  3. Ævar Arnfjörð BjarmasonSep 2, 2021
  4. Carlo ArenasSep 3, 2021
  5. Johannes SchindelinSep 2, 2021
  6. Carlo ArenasSep 3, 2021

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.