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

How to disable docs when building Git from sources

From
JWJeffrey Walton <noloader@gmail.com>
Date
Mar 25, 2019, 06:40 UTC
Message-ID
<CAH8yC8mDWpf0b3zykyvHRLLbYdmLB7hAk9LcsciB=dYhs4C=VA@mail.gmail.com>
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
Next: Johannes Sixt
Message 1 of 4 in “How to disable docs when building Git from sources”
  1. Jeffrey WaltonMar 25, 2019
  2. Johannes SixtMar 25, 2019
  3. Jeffrey WaltonMar 25, 2019
  4. Jeff KingMar 25, 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.