From: Jeff King <peff@peff.net>
To: Kim Scarborough <kim@scarborough.kim>
Cc: "brian m. carlson" <sandals@crustytoothpaste.net>, git@vger.kernel.org
Subject: Re: Git and gettext
Date: Sun, 4 Aug 2024 20:53:11 -0400 [thread overview]
Message-ID: <20240805005311.GA66003@coredump.intra.peff.net> (raw)
In-Reply-To: <1d6e0fef-9b9a-4239-aced-d20cd5c3434c@scarborough.kim>
On Sun, Aug 04, 2024 at 04:26:19PM -0500, Kim Scarborough wrote:
> > Note that `config.mak` is not read by git-gui, so you do really have
> > to set `NO_MSGFMT=1` on the command line.
> >
> > Can you show exactly the commands you're running and exactly the output
> > you're getting? Also, what OS and version are you running this on?
>
> Not working for me. I ran "make NO_GETTEXT=1 NO_MSGFMT=1" and it dies
> thusly:
>
> BUILTIN git-version
> BUILTIN git-whatchanged
> SUBDIR git-gui
> GITGUI_VERSION = 0.21.0.128.g2864e
> * new locations or Tcl/Tk interpreter
> MSGFMT po/bg.msg MSGFMT po/de.msg MSGFMT po/el.msg
> MSGFMT po/fr.msg make[1]: *** [Makefile:239: po/bg.msg] Error 127
> make[1]: *** Waiting for unfinished jobs....
> make[1]: *** [Makefile:239: po/de.msg] Error 127
> make[1]: *** [Makefile:239: po/el.msg] Error 127
> MSGFMT po/hu.msg make[1]: *** [Makefile:239: po/fr.msg] Error 127
> MSGFMT po/it.msg make[1]: *** [Makefile:239: po/hu.msg] Error 127
> MSGFMT po/ja.msg make[1]: *** [Makefile:239: po/it.msg] Error 127
> MSGFMT po/nb.msg make[1]: *** [Makefile:239: po/ja.msg] Error 127
> make[1]: *** [Makefile:239: po/nb.msg] Error 127
> make: *** [Makefile:2365: all] Error 2
If we don't have msgfmt, I think git-gui invokes a custom script via
tclsh. If you also don't have that, it will fail. Running with "make
V=1" makes this more obvious, since it shows the fallback command name
instead of "MSGFMT".
If you don't need git-gui at all, the simplest thing is to just run
"make NO_GETTEXT=1 NO_TCLTK=1". That's what I do, and I have neither
msgfmt nor gettext on my system.
If you do need git-gui, you'll probably need to make sure your tcl
install works (and has tclsh in the path).
-Peff
next prev parent reply other threads:[~2024-08-05 0:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-03 7:58 Git and gettext Kim Scarborough
2024-08-03 16:00 ` brian m. carlson
2024-08-03 17:24 ` Kim Scarborough
2024-08-03 17:34 ` brian m. carlson
2024-08-04 21:26 ` Kim Scarborough
2024-08-05 0:53 ` Jeff King [this message]
2024-08-06 9:52 ` Kim Scarborough
2024-08-12 14:48 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240805005311.GA66003@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=kim@scarborough.kim \
--cc=sandals@crustytoothpaste.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox