{"thread":{"id":"46306","subject":"Help needed for solving a few issues with building git","startedAt":"2017-07-03T13:18:47Z","lastAt":"2017-07-05T17:06:58Z","messageCount":6,"participants":["Kaartic Sivaraam","Torsten Bögershausen","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"323749","messageId":"1499087898.4156.6.camel@gmail.com","threadId":"46306","inReplyTo":null,"subject":"Help needed for solving a few issues with building git","fromName":"Kaartic Sivaraam","fromEmail":"kaarticsivaraam91196@gmail.com","sentAt":"2017-07-03T13:18:18Z","receivedAt":"2017-07-03T13:18:47Z","isPatch":false,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"Hello all,\n\nBuilding without localization support\n------------------------------------\nI tried to build git from source without localization support by adding\nthe following line to the Makefile,\n\n    NO_GETTEXT=1\n\nIt doesn't seem to be working for reasons I'm unable to find. I used\nthe following commands to build git.\n\n    make prefix=$CUSTOM_BUILD_LOCATION\n    make install prefix=$CUSTOM_BUILD_LOCATION\n\nWhile trying to build (without the 'gettext' library that's required\nfor localization) I get the following error,\n\n    Manifying 8 pod documents\n        SUBDIR templates\n        MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo\n    /bin/sh: 1: msgfmt: not found\n    Makefile:2179: recipe for target\n    'po/build/locale/pt_PT/LC_MESSAGES/git.mo' failed\n    make: *** [po/build/locale/pt_PT/LC_MESSAGES/git.mo] Error 127\n\n    What could I be missing?\n\n\n    Adding HTTPS support\n    --------------------\n    I tried to add HTTP/HTTPS support to the custom built version for which\n    AFAIK 'git' depends on 'curl'. I tried providing the location of the\n    curl source in the Makefile using the following line after reading the\n    instructions in the Makefile.\n\n    CURLDIR=/path/to/curl/source\n\n    Even after doing this the custom built git errors with the following\n    message when I try to use the 'git fetch' command,\n\n    fatal: Unable to find remote helper for 'https'\n\n    Any thing I'm missing?\n\n    Note: In case you were wondering, I was able to build 'git' after\n    installing the dependant package which I find useless as I don't\n    require any localization messages.\n\n-- \nKaartic\n"},{"id":"323750","messageId":"8f7d8990-6915-9cb6-1867-524318bf7529@web.de","threadId":"46306","inReplyTo":"1499087898.4156.6.camel@gmail.com","subject":"Re: Help needed for solving a few issues with building git","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2017-07-03T14:14:11Z","receivedAt":"2017-07-03T14:14:23Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 2017-07-03 15:18, Kaartic Sivaraam wrote:\n> Hello all,\n> \n> Building without localization support\n> ------------------------------------\n> I tried to build git from source without localization support by adding\n> the following line to the Makefile,\n> \n>     NO_GETTEXT=1\n> \n\nMay be\n\nmake NO_GETTEXT=yes\n"},{"id":"323757","messageId":"xmqqshidl76n.fsf@gitster.mtv.corp.google.com","threadId":"46306","inReplyTo":"1499087898.4156.6.camel@gmail.com","subject":"Re: Help needed for solving a few issues with building git","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-07-03T18:13:52Z","receivedAt":"2017-07-03T18:13:59Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> writes:\n\n> Hello all,\n>\n> Building without localization support\n> ------------------------------------\n> I tried to build git from source without localization support by adding\n> the following line to the Makefile,\n>\n>     NO_GETTEXT=1\n>\n> It doesn't seem to be working for reasons I'm unable to find. I used\n> the following commands to build git.\n>\n>     make prefix=$CUSTOM_BUILD_LOCATION\n>     make install prefix=$CUSTOM_BUILD_LOCATION\n>\n> While trying to build (without the 'gettext' library that's required\n> for localization) I get the following error,\n>\n>     Manifying 8 pod documents\n>         SUBDIR templates\n>         MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo\n>     /bin/sh: 1: msgfmt: not found\n>     Makefile:2179: recipe for target\n>     'po/build/locale/pt_PT/LC_MESSAGES/git.mo' failed\n>     make: *** [po/build/locale/pt_PT/LC_MESSAGES/git.mo] Error 127\n>\n>     What could I be missing?\n\nThere is\n\n    ifndef NO_GETTEXT\n    all:: $(MOFILES)\n    endif\n\nwhich attempts to avoid generating *.mo files, but that does not\nseem to be working.\n\n>\n>\n>     Adding HTTPS support\n>     --------------------\n>     I tried to add HTTP/HTTPS support to the custom built version for which\n>     AFAIK 'git' depends on 'curl'. I tried providing the location of the\n>     curl source in the Makefile using the following line after reading the\n>     instructions in the Makefile.\n>\n>     CURLDIR=/path/to/curl/source\n\nShouldn't this point at an installed location (iow, we do not build\ncurl from the source while building Git)?\n\n    # Define CURLDIR=/foo/bar if your curl header and library files are in\n    # /foo/bar/include and /foo/bar/lib directories.\n\n\n>     Even after doing this the custom built git errors with the following\n>     message when I try to use the 'git fetch' command,\n>\n>     fatal: Unable to find remote helper for 'https'\n\nThis is probably because you are trying to run without installing?\nAsk the \"git\" you built what its --exec-path is, and run \"ls\" on\nthat directory to see if you have git-remote-https installed?\n\nTrying a freshly built Git binaries without installing is done by\nsetting GIT_EXEC_PATH to point at bin-wrappers/ directory at the\ntop-level of your build tree (that is how our tests can run on an\notherwise virgin box with no Git installed).\n"},{"id":"323773","messageId":"xmqqk23pl1q8.fsf@gitster.mtv.corp.google.com","threadId":"46306","inReplyTo":"xmqqshidl76n.fsf@gitster.mtv.corp.google.com","subject":"Re: Help needed for solving a few issues with building git","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-07-03T20:11:43Z","receivedAt":"2017-07-03T20:11:53Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Junio C Hamano <gitster@pobox.com> writes:\n\n>> While trying to build (without the 'gettext' library that's required\n>> for localization) I get the following error,\n>>\n>>     Manifying 8 pod documents\n>>         SUBDIR templates\n>>         MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo\n>>     /bin/sh: 1: msgfmt: not found\n>>     Makefile:2179: recipe for target\n>>     'po/build/locale/pt_PT/LC_MESSAGES/git.mo' failed\n>>     make: *** [po/build/locale/pt_PT/LC_MESSAGES/git.mo] Error 127\n>>\n>>     What could I be missing?\n>\n> There is\n>\n>     ifndef NO_GETTEXT\n>     all:: $(MOFILES)\n>     endif\n>\n> which attempts to avoid generating *.mo files, but that does not\n> seem to be working.\n\nThe above comes from one of the Tcl things (probably gitk-git)\nFor now\n\n    $ make NO_GETTEXT=1 NO_MSGFMT=1\n\nmay help.\n\nNO_GETTEXT is \"My build environment may or may not be capable of\ndoing the gettext things, but I choose not to use it in my build\nresult\" but NO_MSGFMT is simply \"I do not have the msgfmt tool\".\n\nHaving to specify both is rather unfortunate and we may want to\nstreamline this.\n"},{"id":"323807","messageId":"1499198419.6428.7.camel@gmail.com","threadId":"46306","inReplyTo":"xmqqk23pl1q8.fsf@gitster.mtv.corp.google.com","subject":"Re: Help needed for solving a few issues with building git","fromName":"Kaartic Sivaraam","fromEmail":"kaarticsivaraam91196@gmail.com","sentAt":"2017-07-04T20:00:19Z","receivedAt":"2017-07-04T20:00:24Z","isPatch":false,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"On Mon, 2017-07-03 at 11:13 -0700, Junio C Hamano wrote:\n>     Adding HTTPS support\n> > >     --------------------\n> > >     I tried to add HTTP/HTTPS support to the custom built version\n> > > for which\n> > >     AFAIK 'git' depends on 'curl'. I tried providing the location\n> > > of the\n> > >     curl source in the Makefile using the following line after\n> > > reading the\n> > >     instructions in the Makefile.\n> > > \n> > >     CURLDIR=/path/to/curl/source\n> > \n>  Shouldn't this point at an installed location (iow, we do not build\n>  curl from the source while building Git)?\n>  \n>      # Define CURLDIR=/foo/bar if your curl header and library files\n>  are in\n>      # /foo/bar/include and /foo/bar/lib directories.\nI tried pointing it to the installed location, it doesn't seem to be\nworking. To elaborate a little on what I did,\n\n        * I installed the \"libcurl4-openssl-dev\" package b\n        * I found that the 'include' directory to be present  at\n        '/usr/include/x86_64-linux-gnu/curl'. I wasn't sure if\n        '/usr/lib/x86_64-linux-gnu/' is the corresponding library\n        directory. \n        * I took the common parent of both '/usr' and ran the following \n          commands to build 'git'\n\n            $ make CURLDIR=/usr prefix=/custom/location\n            $ make CURLDIR=/usr install prefix=/custom/location\n\n        * The build did succeed but I get an error that \"'https' helper\n        is not found\"\n\nWas anything I did, wrong?\n\n>  This is probably because you are trying to run without installing?\nNope. I'm *installing* git not using the binary wrappers.\n\n>  Ask the \"git\" you built what its --exec-path is, and run \"ls\" on\n>  that directory to see if you have git-remote-https installed?\n>  \nObviously, I don't see any 'git-remote-https' binary in the folder to\nwhich I built git.\n\n>  Trying a freshly built Git binaries without installing is done by\n>  setting GIT_EXEC_PATH to point at bin-wrappers/ directory at the\n>  top-level of your build tree (that is how our tests can run on an\n>  otherwise virgin box with no Git installed).\n> \n\n\nOn Mon, 2017-07-03 at 13:11 -0700, Junio C Hamano wrote:\n> Junio C Hamano <gitster@pobox.com> writes:\n> \n>     $ make NO_GETTEXT=1 NO_MSGFMT=1\n> \n> may help.\n> \nOk, I seem to have crapped a little. It seems following the intructions\nin the Makefile blindly led to this issue. Reading the instruction\n\"Define NO_GETTEXT if you don't want Git output to be translated.\", I\ndefined NO_GETTEXT=1 in the Makefile itself! (as specified in the\nprevious thread)\n\nI'm able to build git without localization support by using the\nfollowing command,\n\n    make NO_GETTEXT=1 prefix=/custom/location\n\n> NO_GETTEXT is \"My build environment may or may not be capable of\n> doing the gettext things, but I choose not to use it in my build\n> result\" but NO_MSGFMT is simply \"I do not have the msgfmt tool\".\n> \n> Having to specify both is rather unfortunate and we may want to\n> streamline this.\nI guess it's not required!\n\n-- \nKaartic\n"},{"id":"323846","messageId":"1499274396.16389.4.camel@gmail.com","threadId":"46306","inReplyTo":"1499198419.6428.7.camel@gmail.com","subject":"Re: Help needed for solving a few issues with building git","fromName":"Kaartic Sivaraam","fromEmail":"kaarticsivaraam91196@gmail.com","sentAt":"2017-07-05T17:06:36Z","receivedAt":"2017-07-05T17:06:58Z","isPatch":false,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"On Wed, 2017-07-05 at 01:30 +0530, Kaartic Sivaraam wrote:\n> I tried pointing it to the installed location, it doesn't seem to be\n> working. To elaborate a little on what I did,\n> \n>         * I installed the \"libcurl4-openssl-dev\" package b\n>         * I found that the 'include' directory to be present  at\n>         '/usr/include/x86_64-linux-gnu/curl'. I wasn't sure if\n>         '/usr/lib/x86_64-linux-gnu/' is the corresponding library\n>         directory. \n>         * I took the common parent of both '/usr' and ran the\n> following \n>           commands to build 'git'\n> \n>             $ make CURLDIR=/usr prefix=/custom/location\n>             $ make CURLDIR=/usr install prefix=/custom/location\n> \n>         * The build did succeed but I get an error that \"'https'\n> helper\n>         is not found\"\n> \n> Was anything I did, wrong?\n> \nOk, at last I was able to build git with https support using 'curl'\nbuilt from it's source. Anyways, thanks for the help, folks.\n\n> >  This is probably because you are trying to run without installing?\n> \n> Nope. I'm *installing* git not using the binary wrappers.\n> \n> >  Ask the \"git\" you built what its --exec-path is, and run \"ls\" on\n> >  that directory to see if you have git-remote-https installed?\n> >  \n> \n> Obviously, I don't see any 'git-remote-https' binary in the folder to\n> which I built git.\n> \n> >  Trying a freshly built Git binaries without installing is done by\n> >  setting GIT_EXEC_PATH to point at bin-wrappers/ directory at the\n> >  top-level of your build tree (that is how our tests can run on an\n> >  otherwise virgin box with no Git installed).\n> > \n> \n"}]}