Subject: Re: How to build X source?
To: Peter Varga <peter.varga@screaminet.com>
From: David Querbach <querbach@realtime.bc.ca>
List: current-users
Date: 12/18/2002 14:21:46
On Wed, Dec 18, 2002 at 03:26:47PM -0500, Peter Varga wrote:
> On Wed, Dec 18, 2002 at 02:13:46PM -0600, Frederick Bruckman wrote:
> > On Wed, 18 Dec 2002, Bryan P wrote:
> > 
> > > I've built -current src a number of times, but never xsrc.  It appears that
> > > I simply check it out, set DESTDIR and RELEASEDIR and run "make release"
> > > (so I can have .tgz's).  However, there does not seem to be a way to run
> > > this build as a non-root user.  Is this correct?
> > 
> > There's no support for making the sets as non-root. The best you can
> > do, currently, is "make" as non-root (in a clean tree), then "make
> > release RELEASEDIR=/foo DESTDIR=/bar BUILD_DONE=1", as root. Make sure
> > to set "BUILD_DONE", or it'll clean out everything you've just built.
> > 
> 
> Why would sudo not work?

Actually, sudo will work, but you want to be careful to limit the possible
damage.

To that end, I've written a set of relatively safe cross-make scripts that
use sudo only when working in DESTDIR.  For all other parts of the build,
the scripts run without extra privileges.

This is conceptually different than the metalog approach, in that a DESTDIR
built with my scripts can be immediately NFS-mounted by a target machine,
without first untarring.  In addition, the usual approach of just doing a
make in a part of the tree, then testing on the target machine, work
properly as a non-root user.

If you're interested, I can mail them to you or post them somewhere.

Regards,

David Querbach
Real-Time Systems Inc.