Bug#780351: libforks-perl: Version check on Storable broken when version number is not numeric

Damyan Ivanov dmn at debian.org
Thu Mar 12 17:29:05 UTC 2015


Control: tags -1 upstream patch

-=| Patrik Wallstrom, 12.03.2015 15:21:50 +0100 |=-
> Package: libforks-perl
> Version: 0.36-1+b1
> Severity: normal
> 
> Dear Maintainer,
> 
> Line 1570 on forks.pm has this:
> 
>     local $Storable::Deparse = 1 if $Storable::VERSION >= 2.05;
> 
> So I get the following problem on use:
> 
> expo$~>perl -Mforks
> Argument "2.49_01" isn't numeric in numeric ge (>=) at /usr/lib/x86_64-linux-gnu/perl5/5.20/forks.pm line 1570.
> 
> Since the version apparantly is 2.49_01 and not 2.49, which means that this version of forks is not usable right now.

The last sentence seems to contradict with the bug severity. Can you 
elaborate on libforks-perl usability?

Anyway, the attached patch seems to fix the comparison:

 $ perl -Ilib -Mforks -e1
 $
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version-comparison.patch
Type: text/x-diff
Size: 595 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20150312/e5766a1c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20150312/e5766a1c/attachment.sig>


More information about the pkg-perl-maintainers mailing list