pkgsrc-Users archive

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

Re: driving pbulk



* On 2014-05-21 at 15:55 BST, Patrick Welche wrote:

> On Wed, May 21, 2014 at 03:04:50PM +0100, Jonathan Perkin wrote:
> > * On 2014-05-21 at 14:49 BST, Patrick Welche wrote:
> > 
> > > According to wiki.netbsd.org/tutorials/pkgsrc/pbulk I should pop
> > > 
> > > WRKOBJDIR=/tmp/obj/pkgsrc
> > > 
> > > inside the chroot's /etc/mk. I tried that, yet
> > > 
> > > sandbox# more /bulklog/digest-20121220/configure.log 
> > > ...
> > > mkdir: /usr/pkgsrc/pkgtools/digest/work: Permission denied
> > > 
> > > So, it looks as though pbulk isn't picking WRKOBJDIR up?
> > > (Or should it go somewhere else?
> > > 
> > > sandbox# ls -ld /tmp/obj/pkgsrc
> > > drwxr-xr-x  2 bulk  wheel  0 May 21 13:24 /tmp/obj/pkgsrc
> > 
> > WRKOBJDIR definitely works.  My best guess here is that you mean
> > /etc/mk.conf,  when it should instead go in the mk.conf for the pbulk
> > tools you built (e.g. /usr/pbulk/etc/mk.conf).
> 
> Sorry typo - I put WRKOBJDIR into sandbox/etc/mk.conf, and not in
> sandbox/usr/pkg_bulk/etc/mk.conf .
> 
> wiki.netbsd.org/tutorials/pkgsrc/pbulk says "Last but not least,
> you should configure your /etc/mk.conf (in the chroot !)."
> 
> So does this need to be changed?

No, sorry, my mistake.  For NetBSD this is the correct location, in
which case I don't know why WRKOBJDIR isn't working.  I was assuming a
bootstrapped environment.

> What uses sandbox/etc/mk.conf and what uses sandbox/usr/pkg_bulk/etc/mk.conf?
> e.g., where should I put PKG_OPTIONS for the packages built by pbulk?

They would go in sandbox/etc/mk.conf, along with mostly everything
else.  You would only add to sandbox/usr/pkg_bulk/etc/mk.conf any
options for pbulk itself (or any tools you may decide to add).

Whilst it isn't suitable (yet) for NetBSD, you may find the howto I
wrote useful to provide more background information:

  http://www.perkin.org.uk/posts/distributed-chrooted-pkgsrc-bulk-builds.html

This method also supports multiple chroots to speed up builds.

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index