pkgsrc-Users archive

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

Re: non-root package-building sandbox?



On Thu, 7 May 2015 16:03:20 -0500 "J. Lewis Muir" <jlmuir%imca-cat.org@localhost>
wrote:
> On 5/7/15 3:23 PM, Ian D. Leroux wrote:
> > Is there a tool that would let one build (or better yet test) pkgsrc
> > packages without installing them to /usr/pkg and without requiring
> > root privileges?
>
> I do my pkgsrc development inside a chroot sandbox.  This way
> everything is restricted to the sandbox and not affecting my
> production system.  I have scripts to automate setting everything up,
> many of them just copied from those by Jonathan Perkin in his post,
> "Distributed chrooted pkgsrc bulk builds" [1] and then modified to
> suit my needs.

Interesting.  On the surface, that sounds a lot like pkg_comp, except
that it drops root privileges inside the chroot which is indeed
desirable.  That and wider usage among pkgsrc developers might be good
reasons to switch to pbulk.  It's not clear to me though what sort of
environment it provides for debugging faulty packages.  My main
complaint, which I didn't make clear in my original message, is that I
can't easily chase bugs in, say, vlc (a graphical program) while I'm
inside the chroot, and right now the only way I can get access to
things from outside the chroot is to install them to my system.  Am I
failing to understand how you use pbulk, or am I trying to solve the
wrong problem?

--
IDL


Home | Main Index | Thread Index | Old Index