Subject: | CPAN::Reporter almost builds with 5.005_05 |
Besides the fight to get the prerequisites of CPAN::Reporter running
with perl5.005_05, there was not much to do for CPAN::Reporter itself:
First, Fcntl.pm does not export :seek or SEEK_END. To get SEEK_END, one
has to import it from POSIX:
diff -up
'build/CPAN-Reporter-0.99_14-zDhuPO/lib/CPAN/Reporter/History.pm'
'new.build/CPAN-Reporter-0.99_14/lib/CPAN/Reporter/History.pm'
Index: ./lib/CPAN/Reporter/History.pm
--- ./lib/CPAN/Reporter/History.pm Tue Oct 2 22:11:34 2007
+++ ./lib/CPAN/Reporter/History.pm Wed Oct 3 23:22:55 2007
@@ -2,7 +2,14 @@ package CPAN::Reporter::History;
$VERSION = '0.99_14'; ## no critic
use strict;
use Config;
-use Fcntl qw/:flock :seek/;
+use Fcntl qw/:flock/;
+BEGIN {
+ if ($] < 5.006) {
+ eval 'use POSIX qw/SEEK_END/';
+ } else {
+ eval 'use Fcntl qw/SEEK_END/';
+ }
+}
use File::HomeDir ();
use File::Path (qw/mkpath/);
use File::Spec ();
Second: there is a call "delete $array[$index]" which is not implemented
in perl5.005 (only hash elems may be deleted). A workaround is to undef
the array element instead, but this causes some tests to fail. I hope
these test failures are rather harmless (not existant vs. undef).
That's it!
Regards,
Slaven