Subject: Re: Would pkgviews be appropriate for build-new-before-replace of,
To: None <tech-pkg@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 03/29/2004 20:27:57
On Mon, 29 Mar 2004 20:16:47 +0200
Michal Pasternak <michal@pasternak.w.lub.pl> wrote:

> Marc Tooley [Mon, Mar 29, 2004 at 10:06:26AM -0800]:
> > Or, is there some way to set LOCALBASE (and some other variable I'm not 
> > aware of) to somewhere else to start with a simulated "clean slate" as 
> > it were, and then when the complete builds are finished, delete the old 
> > packages and rename the new build directories..?
> 
> IMO easiest way is to create a chroot with "clean" / and /usr, then use
> mount_null to mount needed directories under it (eg. /usr/pkgsrc, but no
> /var/db/pkg and no /usr/pkg, of course).

And, as I usually say, use pkgsrc/pkgtools/pkg_comp for this ;-)

-- 
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/