Subject: Re: a job for union?
To: None <deker@digex.net>
From: Mike Long <mike.long@analog.com>
List: netbsd-help
Date: 03/20/1997 19:30:50
>Date: Thu, 20 Mar 1997 19:20:36 -0500 (EST)
>From: Rob Deker <deker@digex.net>
>Hi, I'm tryinug to figure out the best way to maintain one set of sources
>for everything here on my NetBSD machines. Ideally I'd like to have one
>place for source trees that i NFS exported to machines running various ports
>of NetBSD. I would like to have binaries and objects, etc land on the local
>disk of the machine ddoing the compiling. Is this a jobs for union mounts?
>I've read a bit about them, but just don't know if they will do what I want
>them to. ANy suggestions are appreciated....
No, this sort of thing is exactly why we have obj symlinks and
/usr/obj. On your NFS server, export /usr/src. On each client, make
/usr/obj be a local directory and NFS mount /usr/src from the server.
Now all you need to do is run 'make obj' from /usr/src on each client,
and it will build a directory hierarchy under the local /usr/obj for
the binaries it needs.
See make(1) and /usr/share/mk/bsd.{README,obj.mk}.
--
Mike Long <mike.long@analog.com> <URL:http://www.shore.net/~mikel>
VLSI Design Engineer finger mikel@shore.net for PGP public key
Analog Devices, CPD Division CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA (eq (opinion 'ADI) (opinion 'mike)) -> nil