Date: Thu, 2 Mar 2006 14:07:07 +0800 From: "Jose Liang" <jliang@so-net.net.tw> To: <freebsd-questions@freebsd.org> Cc: Giorgos Keramidas <keramida@ceid.upatras.gr> Subject: Re: Problem with cvs commit failed in cvs-freebsd setup Message-ID: <001001c63dbf$893afc70$2e02a8c0@josematrix> References: <000601c61351$930ab8f0$2e02a8c0@josematrix> <003401c6133e$427b8850$2e02a8c0@josematrix> <20060107045755.GA4344@flame.pc> <000f01c61350$e706c5d0$2e02a8c0@josematrix> <20060107173741.GB1053@flame.pc> <005601c613b7$993d1d60$2e02a8c0@josematrix> <20060107212659.GA2175@flame.pc>
next in thread | previous in thread | raw e-mail | index | archive | help
> Where is commitcheck? Does that directory contain CFG.pm? The commitcheck is in /home/cvs/cvsroot/CVSROOT, and there is CFG.pm too. > They should be a part of your CVSROOT/ directory already. > Have you followed the instructions of the article to set up all the > CVSROOT/ files correctly? I refer to: > http://www.freebsd.org/doc/en_US.ISO8859-1/articles/cvs-freebsd/ Well, I followed the article to set up everying, but cvs always complains: Can't locate CVSROOT/cfg.pm in @INC (@INC contains: :local:/home/cvs/cvsroot /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at /home/cvs/cvsroot/CVSROOT/commitcheck line 13. BEGIN failed--compilation aborted at /home/cvs/cvsroot/CVSROOT/commitcheck line 13. cvs commit: Pre-commit check failed cvs [commit aborted]: correct above errors first! The following is the detail I set up my cvs server and repository: 1. Add new user and group for cvs (both named cvs and uid/gid=2401) 2. Initializing the repository # cd /home/cvs # mkdir cvsroot # cvs -d /home/cvs/cvsroot init # chown -R cvs:cvs cvsroot # cd cvsroot # chmod 775 CVSROOT 3. Setting up a CVS pserver # vi /etc/inetd.conf Uncomment and edit for: cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/home/cvs/cvsroot pserver # vi /etc/rc.conf Add for: inetd_enable="YES" inetd_program="/usr/sbin/inetd" inetd_flags="-wW" 4. Creat encrypted password for CVS pserver # cd /home/cvs # vi encrypt.pl Add for: #!/usr/bin/perl srand (time()); my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))"; my $salt = sprintf ("%c%c", eval $randletter, eval $randletter); my $plaintext = shift; my $crypttext = crypt ($plaintext, $salt); print "${crypttext}\n"; # chown cvs:cvs encrypt.pl # chmod 775 encrypt.pl # ./encrypt.pl "my_password" # vi /home/cvs/cvsroot/CVSROOT/passwd Add for: jose:CRYPTED_PASSWORD:cvs 5. Settings in .profile $ vi ~/.profile Add for: export CVSEDITOR=vi # To use pserver export CVSROOT=:pserver:jose@localhost:/home/cvs/cvsroot # local # export CVSROOT=:local:/home/cvs/cvsroot $ source ~/.profile 6. Checkout CVSROOT $ mkdir ~/cvsroot $ cd ~/cvsroot $ cvs login $ cvs checkout CVSROOT $ cvs logout $ cvs -d :pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs login $ cvs -d :pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs checkout CVSROOT-doc $ cvs -d :pserver:anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs logout 7. Copying and customizing the scripts $ cd CVSROOT $ cp ../CVSROOT-doc/* ./ $ cvs add * $ cvs rm -f access Then I modified something followed http://www.freebsd.org/doc/en_US.ISO8859-1/articles/cvs-freebsd/ and the difference between CVSROOT and CVSROOT-doc is at http://www.jose.idv.tw/CVSROOT.diff $ mkdir commitlogs $ cvs add commitlogs $ cvs commit -m '- Initial FreeBSD scripts commit' (this step was done) $ cvs commit -f -m 'Forced commit to test the new CVSROOT scripts' avail Can't locate CVSROOT/cfg.pm in @INC (@INC contains: :local:/home/cvs/cvsroot /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at /home/cvs/cvsroot/CVSROOT/commitcheck line 13. BEGIN failed--compilation aborted at /home/cvs/cvsroot/CVSROOT/commitcheck line 13. cvs commit: Pre-commit check failed cvs [commit aborted]: correct above errors first! I have tried FreeBSD 4 , 5 and 6-STABLE, but I got the same result. The perl version was the latest of ports tree by default, and I didn't install any p5-*. Well, it is a long states, what have I omitted ? Are there any wrong that I do? Thanks a lot! Regards, Jose Liang
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001c63dbf$893afc70$2e02a8c0>