Subject: Re: Problem updating 1.6_STABLE
To: Lista de NetBSD Users <>
From: Steven M. Bellovin <>
List: netbsd-users
Date: 12/22/2002 20:19:18
In message <
x>, Lista de NetBSD Users writes:
>This script was working fine in november but now
>it doesnt works:
>victoria# cd /usr/src
>victoria# sh
># export CVSROOT=""
># cvs -d $CVSROOT login
>(Logging in to
>CVS password:
># cvs -d $CVSROOT update -Pd -r netbsd-1-6
>cvs server: cannot open directory /cvsroot/basesrc: No such file or
>cvs server: skipping directory
>cvs [server aborted]: no such tag netbsd-1-6
># ^D
>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" <>
Date: 19 Dec 2002 11:56:12 -0500

(Unknown charset: <us-ascii

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 and 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.


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

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"

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.


# 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

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, (me) (2nd edition of "Firewalls" book)