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

Re: Problem running 'make install' as root when on mounted fs

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 7, 2009, 17:51 UTC
Message-ID
<7vbpmr1pin.fsf@alter.siamese.dyndns.org>
In-Reply-To
<8F9F4A8A-9515-4A7D-90EE-4BD3DA3F7A2B@gmail.com>
Alex Blewitt <alex.blewitt@gmail.com> writes:
Show 6 quoted lines
> I think it would be possible to restrict the GIT-BUILD-OPTIONS to be
> generated during a build phase, so restructuring the Makefile like:
>
> install: build
> all:: build GIT-BUILD-OPTIONS
> build: ...
If you did:
	make prefix=$HOME all
        make prefix=/usr install

then the second step needs to notice that the gitexecdir computed and stored in exec_cmd.o in the first step is now invalid, and needs to recompile the file. The whole purpose of GIT-BUILD-OPTIONS is to detect such a case---doesn't your change defeat it?

Previous: Alex Blewitt
Message 2 of 2 in “Problem running 'make install' as root when on mounted fs”
  1. Alex BlewittAug 7, 2009
  2. Junio C HamanoAug 7, 2009

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.