From: Junio C Hamano Date: Mon, 16 Oct 2017 08:23:52 GMT Subject: Re: Does Git build things during 'make install"? Message-ID: In-Reply-To: <0ec353db-428c-bb6f-03fe-303487fde197@kdbg.org> Johannes Sixt writes: > 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.