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.