Subject: Re: Problem updating 1.6_STABLE
To: Lista de NetBSD Users <list10@sepc.edu.mx>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 12/22/2002 20:19:18
In message <Pine.NEB.4.44.0212221854440.25619-100000@tarkus.nodosur.csxxi.net.m
x>, Lista de NetBSD Users writes:
>Hello
>
>This script was working fine in november but now
>it doesnt works:
>
>victoria# cd /usr/src
>victoria# sh
># export CVSROOT=":pserver:anoncvs@anoncvs.netbsd.org:/cvsroot"
># cvs -d $CVSROOT login
>(Logging in to anoncvs@anoncvs.netbsd.org)
>CVS password:
>#
># cvs -d $CVSROOT update -Pd -r netbsd-1-6
>[.....]
>cvs server: cannot open directory /cvsroot/basesrc: No such file or
>directory
>cvs server: skipping directory
>cvs [server aborted]: no such tag netbsd-1-6
>#
># ^D
>victoria#
>
>Does somebody can tell me what am I doing wrong?
>
>Thanks in advance
>
>Heron Gallegos
>
>

Did you update your cvs tree, as Perry's note said you needed to?  
Here's the note he posted:

----------

Subject: Anonymous CVS users please note: modules are being merged
From: "Perry E. Metzger" <perry@piermont.com>
Date: 19 Dec 2002 11:56:12 -0500
To: current-users@netbsd.org, netbsd-announce@netbsd.org

(Unknown charset: <us-ascii
	tests=signature_short_dense,spam_phrase_00_01
	version=2.43-cvs>)


This announcement is of interest primarily to those that use
Anonymous CVS to access the NetBSD sources or maintain mirrors of
those sources.

The NetBSD source tree was split into several CVS modules some years
ago. This split is now being undone, and should be completed on
anoncvs.netbsd.org and ftp.netbsd.org within the next few hours.

Unfortunately, because there are many mirrors in our system and delays
in updating them, it may take some time before this split propagates
across all mirrors.

Once the split is complete, if you maintain a checked out copy of the
NetBSD sources, you will need to run the following script on them in
order to fix up the CVS/Repository files before doing a cvs update.

----------------------------------------------------------------------
#!/bin/sh

if [ -z "$1" -o ! -d "$1" ]; then
	echo "$0: directory not specified or not a directory"
	echo "Synopsis: $0 DIRECTORY"
	exit 1
fi

find "$1" -path '*/CVS/Repository' | \
while read fname; do
	sed -e 's@^.*base\(src\)@\1@'     \
		-e 's@^.*gnu\(src\)@\1@' \
		-e 's@^.*share\(src\)@\1@' \
		-e 's@^.*sys\(src\)@\1@' \
	 "$fname" > "$fname.out"
	mv "$fname.out" "$fname"
done
----------------------------------------------------------------------

If you maintain an anoncvs mirror, use CVSup, or otherwise have a copy
of the actual CVS repository, you will need to run a script similar to
this one in order to avoid having to re-fetch the entire repository.

----------------------------------------------------------------------
#!/bin/sh

# script to undo the split of the CVS repository
# only handles the dirs, not editing the CVSROOT/modules file

if [ -z "$1" -o ! -d "$1" ]; then
	echo "$0: directory not specified or not a directory"
	echo "Synopsis: $0 DIRECTORY"
	exit 1
fi

cd $1
mv basesrc src
mv gnusrc/gnu src/
rmdir gnusrc
mv sharesrc/share src/
rmdir sharesrc
mv syssrc/sys src/
mv syssrc/usr.sbin/config src/usr.sbin/
mv syssrc/usr.sbin/dbsym src/usr.sbin/
rmdir syssrc/usr.sbin
rmdir syssrc

		--Steve Bellovin, http://www.research.att.com/~smb (me)
		http://www.wilyhacker.com (2nd edition of "Firewalls" book)