Subject: build.sh fails because of missing MAKEDEV
To: None <current-users@netbsd.org>
From: Thierry Lacoste <th.lacoste@wanadoo.fr>
List: current-users
Date: 03/13/2005 18:28:44
I'm trying to upgrade my system after a cvs update.

# dmesg | head -2
NetBSD 2.99.15 (MYKERNEL) #1: Sat Jan 29 01:37:24 CET 2005
        root@sirius.stars.net:/usr/obj/sys/arch/i386/compile/MYKERNEL

# cd /usr && rm -rf tools/* && rm -rf obj/**

#./build.sh -O ../obj -T ../tools -U -u tools  
works fine.

./build.sh -O ../obj -T ../tools -U -u distribution
[...]
#   install  /usr/src/../obj/destdir.i386/dev/MAKEDEV
cd /usr/src/../obj/etc && 
STRIP=/usr/src/../tools/bin/i386--netbsdelf-strip /usr/src/../tools/bin/nbinstall 
-U -M /usr/src/../obj/destdir.i386/METALOG -D /usr/src/../obj/destdir.i386 -h 
sha1 -N /usr/src/etc -c -p -r -T etc_pkg -o root -g wheel -m 555  
MAKEDEV /usr/src/../obj/destdir.i386/dev
nbinstall: MAKEDEV: stat: No such file or directory

*** Failed target:  install-etc-files
*** Failed command: cd /usr/src/../obj/etc && 
STRIP=/usr/src/../tools/bin/i386--netbsdelf-strip /usr/src/../tools/bin/nbinstall 
-U -M /usr/src/../obj/destdir.i386/METALOG -D /usr/src/../obj/destdir.i386 -h 
sha1 -N /usr/src/etc -c -p -r -T etc_pkg -o root -g wheel -m 555 
MAKEDEV /usr/src/../obj/destdir.i386/dev
*** Error code 1

Stop.
nbmake: stopped in /usr/src/etc
[...]

# cp /usr/src/etc/MAKEDEV /usr/obj/etc/
After that make distribution completes.
I guess there is a cleaner solution. What did I miss ?
I'm following http://www.netbsd.org/Documentation/current/#updating

Regards,
Thierry.