Subject: Re: wrkdir/wrkobjdir not working / set wrong [solved]
To: None <tech-pkg@netbsd.org>
From: Florian Heigl <florian.heigl@gmail.com>
List: tech-pkg
Date: 03/18/2007 19:48:19
Just for reference,

there was two issues involved here:
At FIRST, I used /etc/mk.conf over /usr/pkg/etc/mk.conf, which was the
wrong thing to do on a non-NetBSD host; it didn't occur to me for a
long time, till I added sendmail-license to the acceptable licenses
and it wasn't picked up.

Second, for my read-only pkgsrc only the following settings would have
been correct:
CREATE_WRKDIR_SYMLINK=no
WRKOBJDIR=/scratch/work

After adjusting this, everything is fine and building at high speed.

On a side note, I didn't dare to go with a real bulk build yet, but
http://wartungsfenster.dyndns.org/mirrors/index.php?path=pkgsrc%2FAll/
has over 500 pkgsrc packages for HP-UX 11.11/pa-risc2.0 already.

This is using Tobias' patchset 20070315, he's already fixed a LOT more
things I yet need to catch up on.

Regards,
Florian

---------- Forwarded message ----------
From: Florian Heigl <florian.heigl@gmail.com>
Date: 15.03.2007 19:17
Subject: wrkdir/wrkobjdir not working / set wrong
To: tech-pkg@netbsd.org


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'


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