Subject: wrkdir/wrkobjdir not working / set wrong
To: None <>
From: Florian Heigl <>
List: tech-pkg
Date: 03/15/2007 19:17:06
Hi list,

I'm sorry I have one more faq-like question...

My pkgsrc is mounted at /usr/pkgsrc as read-only, and
packages/distfiles are writeable
/usr/pkgsrc on
ro,soft,rsize=32768,wsize=32768,NFSv3 on Thu Mar 15 18:01:25 2007
/usr/pkgsrc/distfiles on
soft,rsize=32768,wsize=32768,NFSv3 on Thu Mar 15 18:04:18 2007
/usr/pkgsrc/packages on
soft,rsize=32768,wsize=32768,NFSv3 on Thu Mar 15 18:04:22 2007

The actual builds are supposed to happen in subdirectories of
/scratch, which resides on a 15k disk (separate from the one holding
the os) as opposed to the much slower nfs fileserver that holds the

To achieve that I set the following options in /etc/mk.conf
WRKDIR=                 /scratch/work
WRKOBJDIR=              /scratch/work

Now after having this all set I tried to use it and found it's looking
good but not working.
for the sake of example, here is the error message while trying to build bash.

=> Checksum SHA1 OK for bash32-008
=> Checksum SHA1 OK for bash32-009
mkdir: cannot create /usr/pkgsrc/shells/bash/work: Read-only file system
/bin/sh: /usr/pkgsrc/shells/bash/work/.checksum_done: Cannot create
the specified file.
*** Error code 1

I'm assuming I messed things up somehow, before these changes the
workdir was called work.$hostname

my complete mk.conf is at


'Sie brauchen sich um Ihre Zukunft keine Gedanken zu machen'