NetBSD Problem Report #15797

Received: (qmail 23840 invoked from network); 3 Mar 2002 22:14:32 -0000
Message-Id: <20020303221429.6638748B8@zembla.Princeton.EDU>
Date: Sun,  3 Mar 2002 17:14:29 -0500 (EST)
From: richards@CS.Princeton.EDU
Reply-To: richards+netbsd@CS.Princeton.EDU
To: gnats-bugs@gnats.netbsd.org
Subject: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
X-Send-Pr-Version: 3.95

>Number:         15797
>Category:       misc
>Synopsis:       Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 03 22:15:00 +0000 2002
>Closed-Date:    Thu Jan 02 11:01:35 +0000 2014
>Last-Modified:  Thu Jan 02 11:01:35 +0000 2014
>Originator:     Chris Richards
>Release:        NetBSD 1.5.3_ALPHA
>Organization:
>Environment:


System: NetBSD zembla.Princeton.EDU 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (ZEMBLA) #11: Sat Mar 2 23:34:00 EST 2002 richards@zembla.Princeton.EDU:/usr/home/richards/kern i386
Architecture: i386
Machine: i386
>Description:
	CVSup, by default, does not expand the $NetBSD$ keyword.  Hence
	files tracked by CVSup have off-by-one revisions in $NetBSD$.

	(I know that NetBSD is reluctant to imply that CVSup is supported,
	but this is a small, quick fix that benefits many people.)
>How-To-Repeat:
	Grab NetBSD source files from any of the CVSup mirrors listed on
	the mirrors page (except the one in Norway, which has fixed this
	problem locally).
>Fix:
	In the CVSROOT directory (i.e. the CVSROOT directory that is
	propagated to mirror sites), add a file named "options" with the
	following contents:

	tag=NetBSD=Id

	Henceforth CVSup mirrors will expand the $NetBSD$ keyword properly.
	CVSup clients may have to re-checkout their sources to see the
	corrected keyword.
>Release-Note:
>Audit-Trail:

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: richards+netbsd@CS.Princeton.EDU
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Sun, 3 Mar 2002 23:42:39 +0100

 On Sun, Mar 03, 2002 at 05:14:29PM -0500, richards@CS.Princeton.EDU wrote:
 > >Description:
 > 	CVSup, by default, does not expand the $NetBSD$ keyword.  Hence
 > 	files tracked by CVSup have off-by-one revisions in $NetBSD$.
 > 
 > 	(I know that NetBSD is reluctant to imply that CVSup is supported,
 > 	but this is a small, quick fix that benefits many people.)
 > >How-To-Repeat:
 > 	Grab NetBSD source files from any of the CVSup mirrors listed on
 > 	the mirrors page (except the one in Norway, which has fixed this
 > 	problem locally).
 > >Fix:
 > 	In the CVSROOT directory (i.e. the CVSROOT directory that is
 > 	propagated to mirror sites), add a file named "options" with the

 Well, unfortunably the CVSROOT is *not* propagated to mirrors; each mirror
 maintain their own CVSROOT.
 So this has to be fixed on each mirror.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
 --

From: woods@weird.com (Greg A. Woods)
To: richards+netbsd@CS.Princeton.EDU
Cc: gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups),
	netbsd-bugs@NetBSD.ORG (NetBSD Bugs and PR posting List)
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Sun,  3 Mar 2002 18:14:49 -0500 (EST)

 [ On Sunday, March 3, 2002 at 17:14:29 (-0500), richards@CS.Princeton.EDU wrote: ]
 > Subject: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
 >
 > 
 > 	CVSup, by default, does not expand the $NetBSD$ keyword.  Hence
 > 	files tracked by CVSup have off-by-one revisions in $NetBSD$.
 > 
 > 	(I know that NetBSD is reluctant to imply that CVSup is supported,
 > 	but this is a small, quick fix that benefits many people.)

 I didn't know CVSup used a different configuration file from CVS....

 NetBSD's CVS of course has a similar feature, and for CVS it is enabled
 in the CVSROOT/config file.  The content necessary to set a local tag is
 similar to what you show for CVSup:

 	tag=NetBSD

 Would CVSup need the "options" file if CVSROOT/config existed and
 contained at least the above line?

 In any case there should be a CVSROOT/config file shipped with the
 NetBSD CVS repository for similar reasons that you cite for CVSup's
 CVSROOT/options (files in locally checked out working directories have
 off-by-one $NetBSD revision numbers since those are what were checked in
 during the commit of the current revision).

 It would probably be a good idea for _ALL_ of the files in the NetBSD
 CVSROOT directory to be shipped with the repository (i.e. all the RCS
 files _and_ the checked out copy that CVS will actually read when
 accessing the repository) regardless of how it is accessed (FTP, rsync,
 CVSup, etc.).  (I've asked for this many times before but it never seems
 to happen....)

 -- 
 								Greg A. Woods

 +1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
 Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>

From: Chris Richards <richards+netbsd@CS.Princeton.EDU>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Sun, 3 Mar 2002 18:17:01 -0500

 On Sun, 03 Mar 2002, Manuel Bouyer wrote:

 > On Sun, Mar 03, 2002 at 05:14:29PM -0500, richards@CS.Princeton.EDU wrote:
 > > >Description:
 > > 	CVSup, by default, does not expand the $NetBSD$ keyword.  Hence
 > > 	files tracked by CVSup have off-by-one revisions in $NetBSD$.
 > > 
 > > 	(I know that NetBSD is reluctant to imply that CVSup is supported,
 > > 	but this is a small, quick fix that benefits many people.)
 > > >How-To-Repeat:
 > > 	Grab NetBSD source files from any of the CVSup mirrors listed on
 > > 	the mirrors page (except the one in Norway, which has fixed this
 > > 	problem locally).
 > > >Fix:
 > > 	In the CVSROOT directory (i.e. the CVSROOT directory that is
 > > 	propagated to mirror sites), add a file named "options" with the
 > 
 > Well, unfortunably the CVSROOT is *not* propagated to mirrors; each mirror
 > maintain their own CVSROOT.
 > So this has to be fixed on each mirror.

 The mirror, if it mirrored the "anoncvs" collection, would it not pick
 up everything under ftp.netbsd.org:/pub/NetBSD-cvs/main, including
 pub/NetBSD-cvs/main/CVSROOT?

 -- 
 CDR

From: woods@weird.com (Greg A. Woods)
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Sun,  3 Mar 2002 18:16:47 -0500 (EST)

 [ On Sunday, March 3, 2002 at 23:42:39 (+0100), Manuel Bouyer wrote: ]
 > Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
 >
 > Well, unfortunably the CVSROOT is *not* propagated to mirrors; each mirror
 > maintain their own CVSROOT.

 That's really bogus.  The files in the CVSROOT directory are the very
 core and most necessary part of any CVS repository!  These files really
 should all be shipped with replicas of the repository, even if such
 replicas are intended to be read-only!

 -- 
 								Greg A. Woods

 +1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
 Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>

From: Chris Richards <richards+netbsd@CS.Princeton.EDU>
To: NetBSD GNATS submissions and followups <gnats-bugs@gnats.netbsd.org>,
   NetBSD Bugs and PR posting List <netbsd-bugs@netbsd.org>
Cc:  
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Sun, 3 Mar 2002 18:26:19 -0500

 On Sun, 03 Mar 2002, Greg A. Woods wrote:

 > I didn't know CVSup used a different configuration file from CVS....
 > 
 > NetBSD's CVS of course has a similar feature, and for CVS it is enabled
 > in the CVSROOT/config file.  The content necessary to set a local tag is
 > similar to what you show for CVSup:
 > 
 > 	tag=NetBSD
 > 
 > Would CVSup need the "options" file if CVSROOT/config existed and
 > contained at least the above line?

 Yes.  There's no mention of "CVSROOT/config" in the cvsupd manual
 page, alas.

 > In any case there should be a CVSROOT/config file shipped with the
 > NetBSD CVS repository for similar reasons that you cite for CVSup's
 > CVSROOT/options

 [...]

 > It would probably be a good idea for _ALL_ of the files in the NetBSD
 > CVSROOT directory to be shipped with the repository (i.e. all the RCS
 > files _and_ the checked out copy that CVS will actually read when
 > accessing the repository)

 I agree, if only because I would love to have a copy of NetBSD's
 log_accum and commit_prep :-).

 -- 
 CDR

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Cc:  
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon, 4 Mar 2002 08:27:05 +0100

 On Sun, Mar 03, 2002 at 06:16:47PM -0500, Greg A. Woods wrote:
 > [ On Sunday, March 3, 2002 at 23:42:39 (+0100), Manuel Bouyer wrote: ]
 > > Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
 > >
 > > Well, unfortunably the CVSROOT is *not* propagated to mirrors; each mirror
 > > maintain their own CVSROOT.
 > 
 > That's really bogus.  The files in the CVSROOT directory are the very
 > core and most necessary part of any CVS repository!  These files really
 > should all be shipped with replicas of the repository, even if such
 > replicas are intended to be read-only!

 And how do you deal with mirrors that mirror other repositories than
 the NetBSD one ?

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
 --

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Chris Richards <richards+netbsd@CS.Princeton.EDU>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon, 4 Mar 2002 08:30:41 +0100

 On Sun, Mar 03, 2002 at 06:17:01PM -0500, Chris Richards wrote:
 > On Sun, 03 Mar 2002, Manuel Bouyer wrote:
 > 
 > > On Sun, Mar 03, 2002 at 05:14:29PM -0500, richards@CS.Princeton.EDU wrote:
 > > > >Description:
 > > > 	CVSup, by default, does not expand the $NetBSD$ keyword.  Hence
 > > > 	files tracked by CVSup have off-by-one revisions in $NetBSD$.
 > > > 
 > > > 	(I know that NetBSD is reluctant to imply that CVSup is supported,
 > > > 	but this is a small, quick fix that benefits many people.)
 > > > >How-To-Repeat:
 > > > 	Grab NetBSD source files from any of the CVSup mirrors listed on
 > > > 	the mirrors page (except the one in Norway, which has fixed this
 > > > 	problem locally).
 > > > >Fix:
 > > > 	In the CVSROOT directory (i.e. the CVSROOT directory that is
 > > > 	propagated to mirror sites), add a file named "options" with the
 > > 
 > > Well, unfortunably the CVSROOT is *not* propagated to mirrors; each mirror
 > > maintain their own CVSROOT.
 > > So this has to be fixed on each mirror.
 > 
 > The mirror, if it mirrored the "anoncvs" collection, would it not pick
 > up everything under ftp.netbsd.org:/pub/NetBSD-cvs/main, including
 > pub/NetBSD-cvs/main/CVSROOT?

 Yes, but anoncvs mirrors don't mirror from the sup/ftp/rsync machine.
 They mirror directly from the anoncvs machine using rsync (no need to add
 another indirection).

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
 --

From: Chris Richards <richards+netbsd@CS.Princeton.EDU>
To: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Cc:  
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon, 4 Mar 2002 03:04:53 -0500

 On Mon, 04 Mar 2002, Manuel Bouyer wrote:

 > > The mirror, if it mirrored the "anoncvs" collection, would it not pick
 > > up everything under ftp.netbsd.org:/pub/NetBSD-cvs/main, including
 > > pub/NetBSD-cvs/main/CVSROOT?
 > 
 > Yes, but anoncvs mirrors don't mirror from the sup/ftp/rsync machine.
 > They mirror directly from the anoncvs machine using rsync (no need to add
 > another indirection).

 I'm missing something.  Why couldn't the required "CVSROOT/options"
 file be placed in the CVSROOT directory on the anoncvs machine?

 -- 
 CDR

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Chris Richards <richards+netbsd@CS.Princeton.EDU>,
   gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Cc:  
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon, 4 Mar 2002 15:52:50 +0100

 On Mon, Mar 04, 2002 at 03:04:53AM -0500, Chris Richards wrote:
 > On Mon, 04 Mar 2002, Manuel Bouyer wrote:
 > 
 > > > The mirror, if it mirrored the "anoncvs" collection, would it not pick
 > > > up everything under ftp.netbsd.org:/pub/NetBSD-cvs/main, including
 > > > pub/NetBSD-cvs/main/CVSROOT?
 > > 
 > > Yes, but anoncvs mirrors don't mirror from the sup/ftp/rsync machine.
 > > They mirror directly from the anoncvs machine using rsync (no need to add
 > > another indirection).
 > 
 > I'm missing something.  Why couldn't the required "CVSROOT/options"
 > file be placed in the CVSROOT directory on the anoncvs machine?

 It can. But mirror won't necesserely pick it, as they may not mirror
 CVSROOT (and for cvs mirrors that mirror more than the NetBSD anoncvs, 
 they can't).


 --
 Manuel Bouyer <bouyer@antioche.eu.org>
 --

From: woods@weird.com (Greg A. Woods)
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon,  4 Mar 2002 13:59:00 -0500 (EST)

 [ On Monday, March 4, 2002 at 08:27:05 (+0100), Manuel Bouyer wrote: ]
 > Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
 >
 > On Sun, Mar 03, 2002 at 06:16:47PM -0500, Greg A. Woods wrote:
 > > [ On Sunday, March 3, 2002 at 23:42:39 (+0100), Manuel Bouyer wrote: ]
 > > > Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
 > > >
 > > > Well, unfortunably the CVSROOT is *not* propagated to mirrors; each mirror
 > > > maintain their own CVSROOT.
 > > 
 > > That's really bogus.  The files in the CVSROOT directory are the very
 > > core and most necessary part of any CVS repository!  These files really
 > > should all be shipped with replicas of the repository, even if such
 > > replicas are intended to be read-only!
 > 
 > And how do you deal with mirrors that mirror other repositories than
 > the NetBSD one ?

 Huh?  There is no problem to deal with.  Provided you have the available
 disk space you could have a thousand million repositories on the same
 machine with no problem -- they would all, by definition, have unique
 pathname prefixes since that is what makes them unique.

 -- 
 								Greg A. Woods

 +1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
 Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Cc:  
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon, 4 Mar 2002 20:02:10 +0100

 On Mon, Mar 04, 2002 at 01:59:00PM -0500, Greg A. Woods wrote:
 > Huh?  There is no problem to deal with.  Provided you have the available
 > disk space you could have a thousand million repositories on the same
 > machine with no problem -- they would all, by definition, have unique
 > pathname prefixes since that is what makes them unique.

 Ops, yes you're rigth; the CVSROOT is not shared.
 Ignore what I said :)

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
 --

From: woods@weird.com (Greg A. Woods)
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon,  4 Mar 2002 14:03:27 -0500 (EST)

 [ On Monday, March 4, 2002 at 08:30:41 (+0100), Manuel Bouyer wrote: ]
 > Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
 >
 > > The mirror, if it mirrored the "anoncvs" collection, would it not pick
 > > up everything under ftp.netbsd.org:/pub/NetBSD-cvs/main, including
 > > pub/NetBSD-cvs/main/CVSROOT?
 > 
 > Yes, but anoncvs mirrors don't mirror from the sup/ftp/rsync machine.
 > They mirror directly from the anoncvs machine using rsync (no need to add
 > another indirection).

 Hmmm.....  I was told that rsync.netbsd.org itself mirrors from the ftp
 machine, which if I understand correctly is the same as the anoncvs
 machine, and that the ftp/anoncvs machine mirrors the live repo.
 Presumably the extra level of indirection happens to a machine more
 capable of handling the extra load.  Please do correct me if I'm wrong
 -- I would like to understand the logical progression of changes through
 these mirrors.

 In any case they should all copy _all_ of the repository, including the
 defining CVSROOT files.

 -- 
 								Greg A. Woods

 +1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
 Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Cc:  
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon, 4 Mar 2002 20:12:48 +0100

 On Mon, Mar 04, 2002 at 02:03:27PM -0500, Greg A. Woods wrote:
 > Hmmm.....  I was told that rsync.netbsd.org itself mirrors from the ftp
 > machine, which if I understand correctly is the same as the anoncvs
 > machine, and that the ftp/anoncvs machine mirrors the live repo.

 No, rsync and ftp are the same, anoncvs is different:
 rsync.netbsd.org has address 204.152.184.75
 ftp.netbsd.org has address 204.152.184.75
 anoncvs.netbsd.org has address 204.152.184.161

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
 --

From: woods@weird.com (Greg A. Woods)
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
Date: Mon,  4 Mar 2002 14:57:37 -0500 (EST)

 [ On Monday, March 4, 2002 at 20:12:48 (+0100), Manuel Bouyer wrote: ]
 > Subject: Re: misc/15797: Lack of CVSROOT/options file foils CVSup $NetBSD$ expansion
 >
 > On Mon, Mar 04, 2002 at 02:03:27PM -0500, Greg A. Woods wrote:
 > > Hmmm.....  I was told that rsync.netbsd.org itself mirrors from the ftp
 > > machine, which if I understand correctly is the same as the anoncvs
 > > machine, and that the ftp/anoncvs machine mirrors the live repo.
 > 
 > No, rsync and ftp are the same, anoncvs is different:
 > rsync.netbsd.org has address 204.152.184.75
 > ftp.netbsd.org has address 204.152.184.75
 > anoncvs.netbsd.org has address 204.152.184.161

 I didn't immediately trust the addressing, esp. since they are in the
 same apparent subnet.....  Ah, yes, I see they answer with different
 revisions of OpenSSH on port#22 so they are most likely different
 physical machines.

 -- 
 								Greg A. Woods

 +1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
 Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 13 Apr 2008 23:27:15 +0000
State-Changed-Why:
has this been sorted out yet? anyone?


From: "Christopher Richards" <richards@CS.Princeton.EDU>
To: gnats-bugs@gnats.netbsd.org
Cc: 
Subject: Re: misc/15797
Date: Tue, 8 Jul 2008 00:06:59 -0400

 I have no idea what came of this, if anything. I stopped using CVSup
 around the time I filed the problem report, for the same reason I
 filed the problem report, and now lack a NetBSD machine to check the
 current state of affairs.

 -- 
 Chris

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 08 Jul 2008 06:11:54 +0000
State-Changed-Why:
Whether or not it's been sorted out, the submitter's no longer in a position
to check.                                


State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 02 Jan 2014 11:01:35 +0000
State-Changed-Why:
cvsup has been removed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.