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

Re: Build without BUILT_INS

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 24, 2012, 02:42 UTC
Message-ID
<xmqqmx61hmtu.fsf@junio.mtv.corp.google.com>
In-Reply-To
<CAAXzdLVbqp-_9A+BwcOuiHi3A39gAJb7_NqANfhAfuK9-+iZ0g@mail.gmail.com>
Steven Penny <svnpenn@gmail.com> writes:
Show 7 quoted lines
> I would like to build Git for Windows without the hard links in libexec/git-core
>
> I tried doing
>
> make install prefix=/c/git BUILT_INS=
>
> and I get this error
Unsurprising.

What are you trying to do? Are you trying to build a git that does not know any of the built-in commands like "checkout", "commit", etc? Or do you still want a full-featured git, but because you know the code to perform "git foo" for any builtin command "foo" is contained in git executable itself, you want to "rm -f git-foo" from the filesystem?

The latter is a bad idea to begin with, as it will break older scripts that trust the promise that by having git --exec-path early on the $PATH older forms "git-foo" will always work.

If you really want to do so, the right way is not by mucking BUILT_INS to empty. I do not know how GfW is built, but if it uses our usual Makefile, find the place where it installs the git-foo forms of links after it installs the main git executable, and comment it out.

And no, it will *not* be a compilation option, as the resulting installation will break the age-old promise we made to script writers.

Good luck, and have fun.
Previous: Steven PennyNext: Andreas Ericsson
Message 2 of 5 in “Build without BUILT_INS”
  1. Steven PennyApr 24, 2012
  2. Junio C HamanoApr 24, 2012
  3. Andreas EricssonApr 24, 2012
  4. Junio C HamanoApr 24, 2012
  5. Steven PennyApr 25, 2012

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.