Subject: silence Storable version check warnings
Author: Niko Tyni <ntyni@debian.org>

Bug: https://rt.cpan.org/Public/Bug/Display.html?id=102730
Bug-Debian: https://bugs.debian.org/780351

Perl 5.20.2 includes Storable with $VERSION = '2.49_01'
which generates warnings when compared as a number.

Fix suggested by Karen Etheridge <ether@cpan.org>.

--- libforks-perl.orig/lib/forks.pm
+++ libforks-perl/lib/forks.pm
@@ -1567,8 +1567,9 @@
     
 # Localize Storable variables to allow CODE refs, if using Storable >= 2.05
 
-    local $Storable::Deparse = 1 if $Storable::VERSION >= 2.05;
-    local $Storable::Eval = 1 if $Storable::VERSION >= 2.05;
+    my $newStorable = eval { Storable->VERSION('2.05') };
+    local $Storable::Deparse = 1 if $newStorable;
+    local $Storable::Eval = 1 if $newStorable;
 
 # Initialize the number of polls
 # While we're running in the main dispatch loop
