info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs lock ..


From: Mark D. Baushke
Subject: Re: cvs lock ..
Date: Mon, 11 Oct 2004 07:59:57 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Christopher,

<address@hidden> writes:

> Running your script on my RH Fedora gives the following errors. Any
> clues?
> 

What perl version are you using?

I have tried

    cvs -d /tmp/mytest-repos init
    /some/path/to/perl ./find-cvs-locks -d /tmp/mytest-repos

for perl 5.6.0, 5.6.1, 5.8.0, 5.8.1, 5.8.5 with no problems on various
platforms.

Digging up some old perl versions, I see that perl 5.00405 is missing
strick.pm and 5.005_02 is missing warnings.pm, so I should probably
upgrade the requires statement to be 5.006 which I will do for the next
release, but you may wish to check that the perl script that you are
trying to use has the same md5sum as what I sent.

If folks believe this is a generally useful script, I could add it to
the cvshome.org contrib directory of the feature branch.

Here is a validity test that worked for me on a Fedora Core release 2.91
(which is the most recent version I could find to use).

% cat /etc/fedora-release 
Fedora Core release 2.91 (FC3 Test 2)
% /usr/bin/perl --version
/usr/bin/perl --version

This is perl, v5.8.5 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

% cvs -d /tmp/mytest-repos init
% md5sum ./find-cvs-locks
e2c9cdd80a86254df255f872e3dd51f3  ./find-cvs-locks
% /usr/bin/perl -c find-cvs-locks
find-cvs-locks syntax OK
% ./find-cvs-locks -d /tmp/mytest-repos 
Checking CVSROOT=/tmp/mytest-repos

There are no locks in:
        /tmp/mytest-repos
No locks were removed from:
        /tmp/mytest-repos
% 

> "my" variable $key masks earlier declaration in same scope at
> ./find-cvs-locks.pl line 260.
> "my" variable $key masks earlier declaration in same scope at
> ./find-cvs-locks.pl line 263.
> "my" variable $key masks earlier declaration in same scope at
> ./find-cvs-locks.pl line 266.
> "my" variable $key masks earlier declaration in same scope at
> ./find-cvs-locks.pl line 269.
> "my" variable $key masks earlier declaration in same scope at
> ./find-cvs-locks.pl line 272.
> Global symbol "@dirlist" requires explicit package name at
> ./find-cvs-locks.pl line 186.
> syntax error at ./find-cvs-locks.pl line 194, near ");"
> Global symbol "@dirlist" requires explicit package name at
> ./find-cvs-locks.pl line 209.
> Global symbol "@dirlist" requires explicit package name at
> ./find-cvs-locks.pl line 222.
> Global symbol "@dirlist" requires explicit package name at
> ./find-cvs-locks.pl line 224.
> Global symbol "@dirlist" requires explicit package name at
> ./find-cvs-locks.pl line 279.
> Global symbol "@dirlist" requires explicit package name at
> ./find-cvs-locks.pl line 284.
> Global symbol "@dirlist" requires explicit package name at
> ./find-cvs-locks.pl line 291.
> Unmatched right curly bracket at ./find-cvs-locks.pl line 417, at end of
> line
> syntax error at ./find-cvs-locks.pl line 417, near "}"
> ./find-cvs-locks.pl has too many errors.

The line numbers you include in your message for these errors are
different than where my script has those tokens...

However, they are probably all arising from the 'use warnings;' line,
so removal of that line should fix your problem.

        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFBap/t3x41pRYZE/gRAggmAJ0Qic1BsV4qwqBvyCM3z4pL7usuMQCfVj04
+9suEtAHbg1wSnOLJvIxt5w=
=89hB
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]