Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 85119

Summary: cvs has problem using the value in CVSROOT (shell variable)
Product: [Retired] Red Hat Linux Reporter: Need Real Name <storri>
Component: cvsAssignee: Eido Inoue <havill>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-29 18:17:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Need Real Name 2003-02-25 22:00:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021216

Description of problem:
I can check out modules from our CVS server if I do:

cvs -d:ext:user@cvs/directory co modulename

Yet if I create the shell variable called CVSROOT within the .bashrc:


It does not work if I do:

cvs co modulename

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Set CVSROOT within bashrc or from command line
2. Run cvs co <modulename>


Actual Results:  bash-2.05b$ cvs co nORB
cvs server: cannot find module `nORB' - ignored
cvs [checkout aborted]: cannot expand modules

bash-2.05b$ cvs -t co nORB
 -> main loop with
 -> Connecting to
S-> do_module (nORB, Updating, , )
cvs server: cannot find module `nORB' - ignored
cvs [checkout aborted]: cannot expand modules
 -> Lock_Cleanup()

CVSROOT is set as: :ext:user@cvs/directory
(Not literally but its certainly not the value being used).

Expected Results:  Checked out the module from CVS using the value in CVSROOT as
its target .

Additional info:

Comment 1 Michael Wardle 2003-02-25 22:44:15 UTC
Setting CVSROOT works fine for me. 
For CVS to be able to access the variable "CVSROOT", it must 
first be placed in the environment using "export CVSROOT". 
Did you also run this command? 
Try running the following in a bash session: 
export CVSROOT 
If this works, you have either forgotten to export the variable, 
or your .bashrc is not being read on startup. 
See the bash(1) man page for more information. 

Comment 2 Michael Wardle 2003-02-25 22:47:23 UTC
It could also simply be that another command is being run 
after the relevant line in ~/.bashrc that is changing the value 
Try running the following to confirm its value: 
printenv CVSROOT 

Comment 3 Need Real Name 2003-02-25 22:55:18 UTC
bash-2.05b$ printenv CVSROOT


Comment 4 Need Real Name 2003-03-01 02:21:40 UTC
Upgrading to rawhide version of cvs-1.11.2-10 cures problem. No change was made
to  the system beyond rebuilding and upgrading cvs package.