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

Re: Does Git build things during 'make install"?

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 16, 2017, 08:23 UTC
Message-ID
<xmqq60bfsdpj.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<0ec353db-428c-bb6f-03fe-303487fde197@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
Show 5 quoted lines
> Yes, running "sudo make install" is a nightmare. sudo clears the path,
> and the git command is not found by the make invoked with root
> permissions. This changes the version string that gets compiled into
> the executable, which finally triggers a complete rebuild under
> root. Sad...

In the meantime, would it help to intall as yourself under DESTDIR set to where you can write into, and then limit the potential damange done while pretending to be a privileged user to "cp -R" (or "tar cf" in $DESTDIR piped to "tar xf" in /)?

It appears that some dependencies are screwed up around "perl" related things, which may want to get fixed. I agree that "make && make install" that runs two 'make' under the same environment and user shouldn't (re)build anything during the latter 'make', but we somehow seem to do so.

Previous: Johannes SixtNext: Johannes Sixt
Message 3 of 4 in “Does Git build things during 'make install"?”
  1. Jeffrey WaltonOct 16, 2017
  2. Johannes SixtOct 16, 2017
  3. Junio C HamanoOct 16, 2017
  4. Johannes SixtOct 16, 2017

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.