Subject: Re: problem with build.sh and rdonly filesystem
To: Luke Mewburn <lukem@netbsd.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: current-users
Date: 03/05/2003 12:03:29
On Wed, Mar 05, 2003 at 21:24:43 +1100, Luke Mewburn wrote:

> Try adding '-w /some/writable/file'  to that.

That's going much better.

----------
# sh build.sh -u -U -M /net/NetBSD/obj-i386 -T /net/NetBSD/tools-i386 -D /net/NetBSD/build-i386 -V MKTOOLS=no  -w /tmp/foo install=/
===> build.sh command: build.sh -u -U -M /net/NetBSD/obj-i386 -T /net/NetBSD/tools-i386 -D /net/NetBSD/build-i386 -V MKTOOLS=no -w /tmp/foo install=/
===> build.sh started: Wed Mar  5 11:39:38 CET 2003
===> DESTDIR path: /net/NetBSD/build-i386
===> TOOLDIR path: /net/NetBSD/tools-i386
===> Updated /tmp/foo
(cd /a/10.0.0.2/export/NetBSD-current/src/distrib/sets &&  /net/NetBSD/tools-i386/bin/nbmake INSTALLDIR=/ INSTALLSETS= installsets)
DESTDIR=/net/NetBSD/build-i386  MACHINE=i386 MACHINE_ARCH=i386  MAKE=/net/NetBSD/tools-i386/bin/nbmake MTREE=/net/NetBSD/tools-i386/bin/nbmtree PAX=/net/NetBSD/tools-i386/bin/nbpax sh /a/10.0.0.2/export/NetBSD-current/src/distrib/sets/maketars -d /net/NetBSD/build-i386  -M /net/NetBSD/build-i386/METALOG -N /a/10.0.0.2/export/NetBSD-current/src/etc  -i / 
Parsing /net/NetBSD/build-i386/METALOG
Copying set base
Copying set comp
Copying set games
pax: Unable to open ./var/games/hackdir/perm to read <Permission denied>
pax: Unable to open ./var/games/phantasia/gold to read <Permission denied>
pax: Unable to open ./var/games/phantasia/lastdead to read <Permission denied>
pax: Unable to open ./var/games/phantasia/mess to read <Permission denied>
pax: Unable to open ./var/games/phantasia/monsters to read <Permission denied>
pax: Unable to open ./var/games/phantasia/motd to read <Permission denied>
pax: Unable to open ./var/games/phantasia/void to read <Permission denied>
Copying set man
Copying set misc
Copying set text
*** Error code 1

Stop.
nbmake: stopped in /a/10.0.0.2/export/NetBSD-current/src/distrib/sets
*** Error code 1

Stop.
nbmake: stopped in /a/10.0.0.2/export/NetBSD-current/src

ERROR: failed to make installworld to /
*** BUILD ABORTED ***
# 
----------

I thought I had searched for files not world readable, but I missed some.
----------
kirk$ ls -l /export/NetBSD-current/build-i386/var/games/phantasia/
total 14
-rw-rw----  1 rvdp  rvdp      0 Mar  4 20:22 characs
-rw-rw----  1 rvdp  rvdp      0 Mar  4 20:22 gold
-rw-rw----  1 rvdp  rvdp      0 Mar  4 20:22 lastdead
-rw-rw----  1 rvdp  rvdp      0 Mar  4 20:22 mess
-rw-rw----  1 rvdp  rvdp  13200 Mar  4 20:22 monsters
-rw-rw----  1 rvdp  rvdp      0 Mar  4 20:22 motd
-rw-rw----  1 rvdp  rvdp      0 Mar  4 20:22 scoreboard
-rw-rw----  1 rvdp  rvdp     20 Mar  4 20:22 void
kirk$
----------

Why build.sh is failing when "Copying set text" is less clear.
"*** Error code 1" does not say much :-) 

	rvdp