Building ports in a chrooted tree

"." at babolo.ru "." at babolo.ru
Wed Apr 23 00:13:51 PDT 2003


> On 22 Apr 2003 11:58:39 -0400
> Mike Patterson <mpatters at cs.uwaterloo.ca> wrote:
> 
> Simplified explanation of what this does:
> This builds the world, installs it into a subdir, copies /usr/ports into
Or better nullfs mount RO it from base system
to chrooted.

> subdir/usr/ports (so you should have no build of a port in progress,
> else every object and source file of this port will get copied into the
> subdir too), chroots into it and then builds all ports in WANTED_PORTS.
> If you already have a /usr/obj with a finished buildworld and/or
> buildkernel you can add -DNO_BUILDWORLD and/or -DNO_BUILDKERNEL to the
> command line of make.
> 
> When it finishes without errors, you should have some packages in
> /usr/ports/packages.


More information about the freebsd-ports mailing list