{"thread":{"id":"50816","subject":"How to disable docs when building Git from sources","startedAt":"2019-03-25T06:40:52Z","lastAt":"2019-03-25T14:52:07Z","messageCount":4,"participants":["Jeffrey Walton","Johannes Sixt","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"372399","messageId":"CAH8yC8mDWpf0b3zykyvHRLLbYdmLB7hAk9LcsciB=dYhs4C=VA@mail.gmail.com","threadId":"50816","inReplyTo":null,"subject":"How to disable docs when building Git from sources","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2019-03-25T06:40:24Z","receivedAt":"2019-03-25T06:40:52Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"Hi Everyone,\n\nI'm working on a low-resource dev-board. It is missing a lot of\nutilities to save space. I'm building Git 2.20 from sources. Make is\nfailing due to '/bin/sh: 1: msgfmt: not found'. I don't cross-compile\nbecause that's a bigger pain in the ass than waiting for the native\nbuild to finish.\n\nI ran './configure --help' but I don't see a way to disable the docs.\nIn the past I tired --disable-docs but it had no effect.\n\nHow do I disable the docs?\n\n=========================\n\ngcc -o builtin/write-tree.o -c -MF builtin/.depend/write-tree.o.d -MQ builtin/wr\nite-tree.o -MMD -MP -I/usr/local/include -DNDEBUG -g2 -O2 -march=native -fPIC -I\n. -DHAVE_SYSINFO -DGIT_HOST_CPU=\"\\\"armv7l\\\"\" -DUSE_LIBPCRE2 -I/usr/local/include\n -DHAVE_ALLOCA_H -I/usr/local/include -DUSE_CURL_FOR_IMAP_SEND -I/usr/local/incl\nude -I/usr/local/include -I/usr/local/include -DSHA1_DC -DSHA1DC_NO_STANDARD_INC\nLUDES -DSHA1DC_INIT_SAFE_HASH_DEFAULT=0 -DSHA1DC_CUSTOM_INCLUDE_SHA1_C=\"\\\"cache.\nh\\\"\" -DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C=\"\\\"git-compat-util.h\\\"\" -DSHA256_BLK  -\nDHAVE_PATHS_H -DHAVE_LIBCHARSET_H -DHAVE_STRINGS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_G\nETTIME -DHAVE_CLOCK_MONOTONIC -DHAVE_GETDELIM '-DPROCFS_EXECUTABLE_PATH=\"/proc/s\nelf/exe\"'  -DFREAD_READS_DIRECTORIES -DNO_STRLCPY -DSHELL_PATH='\"/bin/sh\"' -DPAG\nER_ENV='\"LESS=FRX LV=-c\"'  builtin/write-tree.c\nmkdir -p po/build/locale/pt_PT/LC_MESSAGES/ && msgfmt --check --statistics -o po\n/build/locale/pt_PT/LC_MESSAGES/git.mo po/pt_PT.po\n/bin/sh: 1: msgfmt: not found\nMakefile:2533: recipe for target 'po/build/locale/pt_PT/LC_MESSAGES/git.mo' fail\ned\nmake: *** [po/build/locale/pt_PT/LC_MESSAGES/git.mo] Error 127\n"},{"id":"372401","messageId":"27b99f79-7a6a-1205-b528-84fd81433e0e@kdbg.org","threadId":"50816","inReplyTo":"CAH8yC8mDWpf0b3zykyvHRLLbYdmLB7hAk9LcsciB=dYhs4C=VA@mail.gmail.com","subject":"Re: How to disable docs when building Git from sources","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2019-03-25T07:14:12Z","receivedAt":"2019-03-25T07:14:17Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 25.03.19 um 07:40 schrieb Jeffrey Walton:\n> I'm working on a low-resource dev-board. It is missing a lot of\n> utilities to save space. I'm building Git 2.20 from sources. Make is\n> failing due to '/bin/sh: 1: msgfmt: not found'. I don't cross-compile\n> because that's a bigger pain in the ass than waiting for the native\n> build to finish.\n> \n> I ran './configure --help' but I don't see a way to disable the docs.\n> In the past I tired --disable-docs but it had no effect.\n> \n> How do I disable the docs?\n\nThese are message translations, not documentation. To disable them, set\n\nNO_GETTEXT=Yes\n\nin your config.mak.\n\n-- Hannes\n"},{"id":"372426","messageId":"CAH8yC8nheOmz0G_Pv3oCv03Se16-+Ynwse9xFRDqKf-x2b9Qkw@mail.gmail.com","threadId":"50816","inReplyTo":"27b99f79-7a6a-1205-b528-84fd81433e0e@kdbg.org","subject":"Re: How to disable docs when building Git from sources","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2019-03-25T14:37:24Z","receivedAt":"2019-03-25T14:37:53Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"On Mon, Mar 25, 2019 at 3:14 AM Johannes Sixt <j6t@kdbg.org> wrote:\n>\n> Am 25.03.19 um 07:40 schrieb Jeffrey Walton:\n> > I'm working on a low-resource dev-board. It is missing a lot of\n> > utilities to save space. I'm building Git 2.20 from sources. Make is\n> > failing due to '/bin/sh: 1: msgfmt: not found'. I don't cross-compile\n> > because that's a bigger pain in the ass than waiting for the native\n> > build to finish.\n> >\n> > I ran './configure --help' but I don't see a way to disable the docs.\n> > In the past I tired --disable-docs but it had no effect.\n> >\n> > How do I disable the docs?\n>\n> These are message translations, not documentation. To disable them, set\n>\n> NO_GETTEXT=Yes\n>\n> in your config.mak.\n\nThanks Hannes.\n\nI used 'make -j 4 NO_GETTEXT=Yes' and I think that fixed the command\nline components. Or at least I did not see the error where I was\npreviously seeing it.\n\nI am seeing a similar issue now for the GUI components (assuming\npo2msg.sh is doing similar):\n\nmake -C git-gui  gitexecdir='/usr/local/libexec/git-core' all\nmake[1]: Entering directory '/home/jwalton/Build-Scripts/git-2.21.0/git-gui'\nGITGUI_VERSION = 0.21.GITGUI\n    * new locations or Tcl/Tk interpreter\ntclsh po/po2msg.sh --statistics --tcl -l hu -d po/ po/hu.po\ntclsh po/po2msg.sh --statistics --tcl -l pt_pt -d po/ po/pt_pt.po\nmake[1]: tclsh: Command not found\nmake[1]: tclsh: Command not found\ntclsh po/po2msg.sh --statistics --tcl -l ja -d po/ po/ja.po\nMakefile:252: recipe for target 'po/hu.msg' failed\nmake[1]: tclsh: Command not found\nmake[1]: *** [po/hu.msg] Error 127\nmake[1]: *** Waiting for unfinished jobs....\nMakefile:252: recipe for target 'po/pt_pt.msg' failed\nmake[1]: *** [po/pt_pt.msg] Error 127\nMakefile:252: recipe for target 'po/ja.msg' failed\nmake[1]: *** [po/ja.msg] Error 127\nmake[1]: Leaving directory '/home/jwalton/Build-Scripts/git-2.21.0/git-gui'\nMakefile:2037: recipe for target 'all' failed\nmake: *** [all] Error 2\n\nJeff\n"},{"id":"372429","messageId":"20190325145204.GB19929@sigill.intra.peff.net","threadId":"50816","inReplyTo":"CAH8yC8nheOmz0G_Pv3oCv03Se16-+Ynwse9xFRDqKf-x2b9Qkw@mail.gmail.com","subject":"Re: How to disable docs when building Git from sources","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2019-03-25T14:52:04Z","receivedAt":"2019-03-25T14:52:07Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Mar 25, 2019 at 10:37:24AM -0400, Jeffrey Walton wrote:\n\n> I used 'make -j 4 NO_GETTEXT=Yes' and I think that fixed the command\n> line components. Or at least I did not see the error where I was\n> previously seeing it.\n> \n> I am seeing a similar issue now for the GUI components (assuming\n> po2msg.sh is doing similar):\n> \n> make -C git-gui  gitexecdir='/usr/local/libexec/git-core' all\n> make[1]: Entering directory '/home/jwalton/Build-Scripts/git-2.21.0/git-gui'\n> GITGUI_VERSION = 0.21.GITGUI\n>     * new locations or Tcl/Tk interpreter\n> tclsh po/po2msg.sh --statistics --tcl -l hu -d po/ po/hu.po\n> tclsh po/po2msg.sh --statistics --tcl -l pt_pt -d po/ po/pt_pt.po\n> make[1]: tclsh: Command not found\n> make[1]: tclsh: Command not found\n\nIt looks like you don't have tcl at all. Try NO_TCLTK=Nope ?\n\n-Peff\n"}]}