Subject: 20030518 build succeeds, install=/ fails
To: None <current-users@netbsd.org>
From: Arto Selonen <arto@selonen.org>
List: current-users
Date: 05/19/2003 19:14:50
Hi!

I've been trying to upgrade -current using the sources from anoncvs
on May 17th (and then using sources from anoncvs around May 18th,
~noon GMT).

I haven't noticed anything in source-changes, that would obviously (for my
untrained eye) fix the problem shown below, so I'm asking which of the
standard solutions should I choose (instead of the "lock'n'load" option of
using build.sh -E -D /):

	- try "cvs update" until I get a proper snapshot
	- fix some file/dependency in my source/destdir
	- wait for a fix to appear in anoncvs (and then 'cvs update')

Here is what I get when I try to upgrade (from ~1 month old -current):
(the following is my typical build, NOT cut&paste; just for background):

  # cd /blah
  # rm -rf destdir
  # cd /usr/src
  # make cleandir
  # ./build.sh tools
  # ./build.sh -T /usr/obj/tools kernel=MYKERNEL
  <copy MYKERNEL/netbsd to /netbsd>
  <reboot new kernel>
  # cd /usr/src
  # ./build.sh -D /blah/destdir -T /usr/obj/tools build

The build succeeds, but then the following fails:
(this is cut&paste with paths edited to use /blah for short):

# ./build.sh -D /blah/destdir -T /usr/obj/tools install=/
===> build.sh command: ./build.sh -D /blah/destdir -T /usr/obj/tools install=/
===> build.sh started: Mon May 19 18:11:27 EEST 2003
===> MACHINE:         i386
===> MACHINE_ARCH:    i386
===> TOOLDIR path:    /usr/obj/tools
===> DESTDIR path:    /blah/destdir
===> RELEASEDIR path: /blah/releasedir
===> Updated /usr/obj/tools/bin/nbmake-i386
(cd /fs/cvs/src/distrib/sets &&  /usr/obj/tools/bin/nbmake INSTALLDIR=/ INSTALLSETS= installsets)
DESTDIR=/blah/destdir  MACHINE=i386 MACHINE_ARCH=i386
CKSUM=/usr/obj/tools/bin/nbcksum MAKE=/usr/obj/tools/bin/nbmake
MTREE=/usr/obj/tools/bin/nbmtree PAX=/usr/obj/tools/bin/nbpax sh
/fs/cvs/src/distrib/sets/maketars -d /blah/destdir   -N
/fs/cvs/src/etc  -i /
Copying set base
Copying set comp
pax: Unable to access <<<<<<< (No such file or directory)
pax: Unable to access ======= (No such file or directory)
pax: Unable to access >>>>>>> (No such file or directory)
Copying set games
Copying set man
Copying set misc
Copying set text
*** Error code 1

Stop.
nbmake: stopped in /fs/cvs/src/distrib/sets
*** Error code 1

Stop.
nbmake: stopped in /fs/cvs/src

ERROR: Failed to make installworld to /
*** BUILD ABORTED ***
Exit 1


And finally, since it may have something to do with this (although
"it did work before"), relevant entries from /etc/mk.conf:

BSDOBJDIR=              /usr/obj/src
MKOBJDIRS=              yes
TOOLDIR=                /usr/obj/tools
MKTOOLS=                yes
BSDSRCDIR!=             cd /usr/src ; pwd
BUILD=                  1
MANINSTALL=             maninstall catinstall
.ifndef NOUPDATE
UPDATE=                 1
.endif


Artsi
#######======------  http://www.selonen.org/arto/  --------========########
Everstinkuja 5 B 35                               Don't mind doing it.
FIN-02600 Espoo        arto@selonen.org         Don't mind not doing it.
Finland              tel +358 50 560 4826     Don't know anything about it.