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

Re: make install rewrites source files

From
HFHallvard B Furuseth <h.b.furuseth@usit.uio.no>
Date
Jan 27, 2012, 09:46 UTC
Message-ID
<79b0e5e55a438cc757cfeb6408be4d23@ulrik.uio.no>
In-Reply-To
<4F1DC2F7.2070502@ubuntu.com>
 On Mon, 23 Jan 2012 15:28:39 -0500, Phillip Susi <psusi@ubuntu.com> 
 wrote:
Show 13 quoted lines
> On 1/23/2012 9:18 AM, Hallvard Breien Furuseth wrote:
>> However, make install should not write to the source directory in
>> any case.  That fails as root if root lacks write access there, due
>> to NFS mounts that map root to nobody etc.  At least git-instaweb
>> and GIT-BUILD-OPTIONS are rewritten.  You can simulate this with su
>> nobody -s /bin/bash -c 'make -k install' after configuring with
>> prefix=<directory owned by nobody>.
>
> If you want to build locally from a read only nfs mount, then you
> should run the configure script in a local directory:
>
> mkdir /tmp/build
> (...)
 Not a read-only nfs mount.  Just an ordinary remote mount where root
 on the local host is mapped to nobody on the remote host.  (Having
 local root access does not mean you should get root on the remote.)
 In any case, it's normal practice to do as little as possible as root,
 and also to at least try not write to the source dir during install.
 BTW, building in /tmp can be nasty to other users when you don't know
 how much space the build (and maybe test) will use, so you may need
 access to some other local dir.
-- 
 Hallvard
Previous: Junio C Hamano
Message 9 of 9 in “make install rewrites source files”
  1. Hallvard Breien FurusethJan 23, 2012
  2. Junio C HamanoJan 23, 2012
  3. Hallvard Breien FurusethJan 23, 2012
  4. Clemens BuchacherJan 26, 2012
  5. Junio C HamanoJan 27, 2012
  6. Hallvard Breien FurusethJan 27, 2012
  7. Phillip SusiJan 23, 2012
  8. Junio C HamanoJan 23, 2012
  9. Hallvard B FurusethJan 27, 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.