Subject: Re: updating kernel stable source to current
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-help
Date: 09/17/2003 00:29:31
In article <20030916181802.GA3123@krishna>,
Bang Jun-Young <junyoung@netbsd.org> wrote:
>On Tue, Sep 16, 2003 at 08:10:43PM +0200, Lubos Vrbka wrote:
>> hi,
>> 
>> for the i386 2-cpu support, it was suggested to me to get -current 
>> kernel. i had netbsd-1.6.1-stable sources (from ftp 
>> pub/netbsd/netbsd-1.6.1/source/sets/) and did cvs up -dP in /usr/src. 
>> but it seems, that my kernel sources are still from -stable branch. i 
>> recompiled kernel and i'm still getting NETBSD 1.6.1_STABLE message from 
>> dmesg.
>> 
>> what am i doing wrong? what am i missing?
>
>Append -A to 'cvs up' to clear sticky tags.

Maybe you are suffering of the basesrc syndrome too.
If you are, cat CVS/Repository on /usr/src will say basesrc instead of src.

To fix that:

cd /usr/src
cat << _EOF > foo.sh
#!/bin/sh
for i
do
	sed -e 's/.*src/src/' < $i > tmp$$ && mv tmp$$ $i
done
_EOF
chmod +x foo.sh
find . -name Repository | xargs ./foo.sh

christos