On Mon, 23 Jan 2012 15:28:39 -0500, Phillip Susi <psusi@xxxxxxxxxx>
wrote:
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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html