Subject: wrkdir/wrkobjdir not working / set wrong
To: None <tech-pkg@netbsd.org>
From: Florian Heigl <florian.heigl@gmail.com>
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 192.168.10.114:/smbtmp/pkgsrc
ro,soft,rsize=32768,wsize=32768,NFSv3 on Thu Mar 15 18:01:25 2007
/usr/pkgsrc/distfiles on 192.168.10.114:/smbtmp/pkgsrc/distfiles
soft,rsize=32768,wsize=32768,NFSv3 on Thu Mar 15 18:04:18 2007
/usr/pkgsrc/packages on 192.168.10.114:/smbtmp/pkgsrc/packages
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
pkgsrc.

To achieve that I set the following options in /etc/mk.conf
CREATE_WRKDIR_SYMLINK=  yes
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 http://1t2.us/246

Thanks,
florian



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