On 2022/07/28 14:01, rsyk...@disroot.org wrote:
> Stuart Henderson <stu.li...@spacehopper.org> wrote:
> > On 2022-07-28, rsyk...@disroot.org <rsyk...@disroot.org> wrote:
> > > Dear list,
> > >
> > >
> > > I have a ports tree. (Most probably first obtained
> > > by downloading a .tar file.) I am able to update it
> > > with, e.g.,
> > >
> > > ; CVSROOT=anon...@ftp.hostserver.de:/cvs
> > > ; cvs -d $CVSROOT -q up -Pd -rOPENBSD_7_1
> > >
> > > After that I thought -- based on what I read at
> > > https://www.openbsd.org/anoncvs.html#CVSROOT
> > > -- that running just
> > >
> > > ; cvs -q up -Pd -rOPENBSD_7_1
> > >
> > > should work, but it does not: 
> > >
> > > cvs update: in directory .:
> > > cvs update: ignoring CVS/Root because it specifies a non-existent 
> > > repository /cvs
> > > cvs update: No CVSROOT specified!  Please use the `-d' option
> > > cvs [update aborted]: or set the CVSROOT environment variable.
> > >
> > > Thanks for comments.
> > 
> > Either use -d, or set CVSROOT, or replace CVS/Root files with ones
> > containing the path to the repo (cvschroot from the cvsutils package
> > makes this easy). If your original checkout had been done via anoncvs
> > you wouldn't have needed to do this. (Also ports.tar.gz misses some
> > files - run "cvs up -Pd" across the whole tree to fetch them).
> 
> Ok. Now I perhaps gained some of the missing understanding, but
> still not full. 
> 
> So if I obtain the tree by downloading a .tar, it is not enough
> to just supply -d to cvs once and next time run cvs without the -d;
> I must set up the CVSROOT env variable or use the cvschroot command.
> 
> If you get the original tree by cvs (with some -d), the next
> time you can run cvs without the -d (and without the need to set up
> the environmental CVSROOT). 
> 
> But then, one last thing: if I obtain a tree with a certain cvs -d
> CVSROOT1, then run cvs -d CVSROOT2, and finally run cvs without -d,
> what CVSROOT will be used in the last case? I hope it will be
> CVSROOT1, won't it?  (Otherwise I would not understand why starting
> with a .tar and running subsequently cvs -d is not enough to then
> run cvs without the -d...)

Yes

To make things easier for me, I use a shell alias "acvs"

$ alias acvs
acvs='/usr/bin/cvs -d $CVSROOT '

(and a corresponding one that I use for the private server rather than
anonymous cvs)

Reply via email to