On Thu, Apr 12, 2007 at 11:31:30PM +0200, Maurice Janssen wrote:
> Hi,
> 
> Is it possible to have a single src directory that is shared by various
> architectures to build releases?
> 
> I have a few old computers (vax, hppa, sparc), most of them with quite
> small hard disks.  Too small to build the userland.  I also have a i386
> with more than enough disk space running as nfs server.
> Right now, I have a /export/${arch}/src and /export/${arch}/obj for each
> architecture.  Works fine, but most of the contents of the source
> directories is the same for each architecture.  Seems like a waste of
> resources to keep it separate.
> 
> The FAQ mentions building a kernel with a read only source tree, but
> nothing about userland.  Is it possible to mount /usr/src read-only and
> build the userland?

Yes, 'mostly'. You *will* need to 'make obj' beforehand, but IIRC most
everything will only write to obj when compiling. A noticeable exception
are the kernels (but you could always symlink /usr/src/sys to somewhere
appropriate).

For a better idea, how about one of the 'remove duplicates by
hardlinking them together' packages? It would allow you to have
essentially identical trees without wasting more than some inodes. Other
variations on this theme are possible, like lndir(1).

                Joachim

-- 
TFMotD: join (1) - relational database operator

Reply via email to