* How to disable docs when building Git from sources
@ 2019-03-25 6:40 Jeffrey Walton
2019-03-25 7:14 ` Johannes Sixt
0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Walton @ 2019-03-25 6:40 UTC (permalink / raw)
To: Git List
Hi Everyone,
I'm working on a low-resource dev-board. It is missing a lot of
utilities to save space. I'm building Git 2.20 from sources. Make is
failing due to '/bin/sh: 1: msgfmt: not found'. I don't cross-compile
because that's a bigger pain in the ass than waiting for the native
build to finish.
I ran './configure --help' but I don't see a way to disable the docs.
In the past I tired --disable-docs but it had no effect.
How do I disable the docs?
=========================
gcc -o builtin/write-tree.o -c -MF builtin/.depend/write-tree.o.d -MQ builtin/wr
ite-tree.o -MMD -MP -I/usr/local/include -DNDEBUG -g2 -O2 -march=native -fPIC -I
. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"armv7l\"" -DUSE_LIBPCRE2 -I/usr/local/include
-DHAVE_ALLOCA_H -I/usr/local/include -DUSE_CURL_FOR_IMAP_SEND -I/usr/local/incl
ude -I/usr/local/include -I/usr/local/include -DSHA1_DC -DSHA1DC_NO_STANDARD_INC
LUDES -DSHA1DC_INIT_SAFE_HASH_DEFAULT=0 -DSHA1DC_CUSTOM_INCLUDE_SHA1_C="\"cache.
h\"" -DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C="\"git-compat-util.h\"" -DSHA256_BLK -
DHAVE_PATHS_H -DHAVE_LIBCHARSET_H -DHAVE_STRINGS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_G
ETTIME -DHAVE_CLOCK_MONOTONIC -DHAVE_GETDELIM '-DPROCFS_EXECUTABLE_PATH="/proc/s
elf/exe"' -DFREAD_READS_DIRECTORIES -DNO_STRLCPY -DSHELL_PATH='"/bin/sh"' -DPAG
ER_ENV='"LESS=FRX LV=-c"' builtin/write-tree.c
mkdir -p po/build/locale/pt_PT/LC_MESSAGES/ && msgfmt --check --statistics -o po
/build/locale/pt_PT/LC_MESSAGES/git.mo po/pt_PT.po
/bin/sh: 1: msgfmt: not found
Makefile:2533: recipe for target 'po/build/locale/pt_PT/LC_MESSAGES/git.mo' fail
ed
make: *** [po/build/locale/pt_PT/LC_MESSAGES/git.mo] Error 127
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to disable docs when building Git from sources
2019-03-25 6:40 How to disable docs when building Git from sources Jeffrey Walton
@ 2019-03-25 7:14 ` Johannes Sixt
2019-03-25 14:37 ` Jeffrey Walton
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Sixt @ 2019-03-25 7:14 UTC (permalink / raw)
To: noloader; +Cc: Git List
Am 25.03.19 um 07:40 schrieb Jeffrey Walton:
> I'm working on a low-resource dev-board. It is missing a lot of
> utilities to save space. I'm building Git 2.20 from sources. Make is
> failing due to '/bin/sh: 1: msgfmt: not found'. I don't cross-compile
> because that's a bigger pain in the ass than waiting for the native
> build to finish.
>
> I ran './configure --help' but I don't see a way to disable the docs.
> In the past I tired --disable-docs but it had no effect.
>
> How do I disable the docs?
These are message translations, not documentation. To disable them, set
NO_GETTEXT=Yes
in your config.mak.
-- Hannes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to disable docs when building Git from sources
2019-03-25 7:14 ` Johannes Sixt
@ 2019-03-25 14:37 ` Jeffrey Walton
2019-03-25 14:52 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Walton @ 2019-03-25 14:37 UTC (permalink / raw)
To: Johannes Sixt; +Cc: Git List
On Mon, Mar 25, 2019 at 3:14 AM Johannes Sixt <j6t@kdbg.org> wrote:
>
> Am 25.03.19 um 07:40 schrieb Jeffrey Walton:
> > I'm working on a low-resource dev-board. It is missing a lot of
> > utilities to save space. I'm building Git 2.20 from sources. Make is
> > failing due to '/bin/sh: 1: msgfmt: not found'. I don't cross-compile
> > because that's a bigger pain in the ass than waiting for the native
> > build to finish.
> >
> > I ran './configure --help' but I don't see a way to disable the docs.
> > In the past I tired --disable-docs but it had no effect.
> >
> > How do I disable the docs?
>
> These are message translations, not documentation. To disable them, set
>
> NO_GETTEXT=Yes
>
> in your config.mak.
Thanks Hannes.
I used 'make -j 4 NO_GETTEXT=Yes' and I think that fixed the command
line components. Or at least I did not see the error where I was
previously seeing it.
I am seeing a similar issue now for the GUI components (assuming
po2msg.sh is doing similar):
make -C git-gui gitexecdir='/usr/local/libexec/git-core' all
make[1]: Entering directory '/home/jwalton/Build-Scripts/git-2.21.0/git-gui'
GITGUI_VERSION = 0.21.GITGUI
* new locations or Tcl/Tk interpreter
tclsh po/po2msg.sh --statistics --tcl -l hu -d po/ po/hu.po
tclsh po/po2msg.sh --statistics --tcl -l pt_pt -d po/ po/pt_pt.po
make[1]: tclsh: Command not found
make[1]: tclsh: Command not found
tclsh po/po2msg.sh --statistics --tcl -l ja -d po/ po/ja.po
Makefile:252: recipe for target 'po/hu.msg' failed
make[1]: tclsh: Command not found
make[1]: *** [po/hu.msg] Error 127
make[1]: *** Waiting for unfinished jobs....
Makefile:252: recipe for target 'po/pt_pt.msg' failed
make[1]: *** [po/pt_pt.msg] Error 127
Makefile:252: recipe for target 'po/ja.msg' failed
make[1]: *** [po/ja.msg] Error 127
make[1]: Leaving directory '/home/jwalton/Build-Scripts/git-2.21.0/git-gui'
Makefile:2037: recipe for target 'all' failed
make: *** [all] Error 2
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to disable docs when building Git from sources
2019-03-25 14:37 ` Jeffrey Walton
@ 2019-03-25 14:52 ` Jeff King
0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2019-03-25 14:52 UTC (permalink / raw)
To: Jeffrey Walton; +Cc: Johannes Sixt, Git List
On Mon, Mar 25, 2019 at 10:37:24AM -0400, Jeffrey Walton wrote:
> I used 'make -j 4 NO_GETTEXT=Yes' and I think that fixed the command
> line components. Or at least I did not see the error where I was
> previously seeing it.
>
> I am seeing a similar issue now for the GUI components (assuming
> po2msg.sh is doing similar):
>
> make -C git-gui gitexecdir='/usr/local/libexec/git-core' all
> make[1]: Entering directory '/home/jwalton/Build-Scripts/git-2.21.0/git-gui'
> GITGUI_VERSION = 0.21.GITGUI
> * new locations or Tcl/Tk interpreter
> tclsh po/po2msg.sh --statistics --tcl -l hu -d po/ po/hu.po
> tclsh po/po2msg.sh --statistics --tcl -l pt_pt -d po/ po/pt_pt.po
> make[1]: tclsh: Command not found
> make[1]: tclsh: Command not found
It looks like you don't have tcl at all. Try NO_TCLTK=Nope ?
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-25 14:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-25 6:40 How to disable docs when building Git from sources Jeffrey Walton
2019-03-25 7:14 ` Johannes Sixt
2019-03-25 14:37 ` Jeffrey Walton
2019-03-25 14:52 ` Jeff King
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).