SA Bugzilla – Bug 5031
Can't check Archive::Tar package version containing underscore
Last modified: 2010-07-19 15:43:15 UTC
I have Archive::Tar package version 1.26_01 installed. When sa-update runs it reports this error. Argument "1.26_01" isn't numeric in subroutine entry at C:\Perl\bin\sa-update line 90.
I'll leave this open for other comments, but IMO this is a bug in Archive::Tar. Specifically, reading the perlmodstyle POD: If you want to release a ’beta’ or ’alpha’ version of a module but don’t want CPAN.pm to list it as most recent use an ’_’ after the regular version number followed by at least 2 digits, eg. 1.20_01. If you do this, the following idiom is recommended: $VERSION = "1.12_01"; $XS_VERSION = $VERSION; # only needed if you have XS code $VERSION = eval $VERSION; With that trick MakeMaker will only read the first line and thus read the underscore, while the perl interpreter will evaluate the $VERSION and convert the string into a number. Later operations that treat $VERSION as a number will then be able to do so without provoking a warning about $VERSION not being a number. Our call to require a certain version of Archive::Tar is a standard/valid one: use Archive::Tar 1.23; So I'm inclined to close as WFM.
Since I haven't seen any other comments, I'm closing this as wfm.
Ok that bug is a bit outdated but I got the same warning while running SA with Perl 5.8.8 under windows. I installed the current version (1.58) from CPAN and the warning disappeared. Just mentioning because of the "worksforme", can be set to fixed, I guess.
Cropped up again on current RHEL5: https://bugzilla.redhat.com/show_bug.cgi?id=612879
(In reply to comment #4) > Cropped up again on current RHEL5: > > https://bugzilla.redhat.com/show_bug.cgi?id=612879 Please reopen (I do not have sufficient privileges) as RedHat, CentOS and SME Server users are suffering this issue: CentOS: http://bugs.centos.org/view.php?id=4438 RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=612879 SME Server: http://bugs.contribs.org/show_bug.cgi?id=6135 RedHat bugzilla lists an easy fix in https://bugzilla.redhat.com/show_bug.cgi?id=612879#c8 I suggest to apply that.
(In reply to comment #5) > RedHat bugzilla lists an easy fix in > https://bugzilla.redhat.com/show_bug.cgi?id=612879#c8 I suggest to apply that. Oops, that fix is not against your source.
Just to clarify: It is not, and never has been, a bug with SA. See comment 1, even linked from the recent RH bug report. Thus, this very report will not be reopened, neither set to fixed, because there is nothing to fix on our end. :) Links and pointers to other bug trackers added here for reference welcome. Also of course notes about the issue being fixed in $distro or upstream.