pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: using pkg_comp against the running tree?

Steven M. Bellovin wrote:
Is there some way to use pkg_comp against the current tree?  That is,
sometimes I want to rebuild everything, but I don't want to use the
latest -current source.  (If nothing else, the obvious way to use the
latest source involves building 'release', which is much more expensive
than 'sets', especially on i386 where so many kernels are built.)

Try using pkgsrc/mk/bulk/mksandbox. It null-mounts various parts of the running system into a chroot. I set up my sandboxen with:

    mksandbox --pkgsrc=/usr/pkgsrc --src=/usr/src --without-x \
        --verbose /var/chroot/sandbox

I typically edit the generated /var/chroot/sandbox/sandbox script afterwards to make the /usr/pkgsrc mount read-only. You have to manually handle the mount/umount (I suppose I could integrate the pkg_comp refcounting into the sandbox script).


        -- Johnny C. Lam

Home | Main Index | Thread Index | Old Index