Subject: Re: build.sh fails because of missing MAKEDEV
To: Thierry Lacoste <th.lacoste@wanadoo.fr>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: current-users
Date: 03/13/2005 18:33:25
On Sun, 2005-03-13 at 18:28 +0100, Thierry Lacoste wrote:
> 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

Try to rm /usr/src/etc/MAKEDEV (yes, the source file); it shouldn't
be there.

I guess you ran etcupdate in the past without the -b flag (or a build
without the -O switch)... am I right?

-- 
Julio M. Merino Vidal <jmmv84@gmail.com>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/