#acl PaulHowarth:read,write,admin,revert,delete All:read === Friday 5th June 2009 === ==== Local Packages ==== Finally got round to making `perl-PPI` 1.203 build successfully across all of my supported releases. On Red Hat Linux 9 and Red Hat Enterprise Linux 3 it was failing multiple tests with "Can't use an undefined value as an ARRAY reference" errors [[http://www.nntp.perl.org/group/perl.cpan.testers/2008/05/msg1475603.html|like in this test case]]. This appears to be a bug in perl 5.8.0, or at least the Red Hat version of it, and I was able to fix it with this patch: {{{ --- PPI-1.203/lib/PPI/Lexer.pm 2008-05-14 05:14:00.000000000 +0100 +++ PPI-1.203/lib/PPI/Lexer.pm 2009-06-05 15:39:19.000000000 +0100 @@ -278,7 +278,7 @@ # Checking once at the end is faster than adding a special # case check for every statement parsed. my $v6 = $self->{Tokenizer}->{v6}; - if ( @$v6 ) { + if ( defined($v6) && @$v6 ) { my $includes = $Document->find( 'PPI::Statement::Include::Perl6' ); foreach my $include ( @$includes ) { unless ( @$v6 ) { }}} On Fedora Core 3 and 4, the `14_charsets.t` test just got stuck in an infinite loop gobbling up memory as per [[http://rt.cpan.org/Public/Bug/Display.html?id=35917|CPAN RT#35917]], which was easily fixed by updating the test to the one in the [[http://search.cpan.org/~adamk/PPI-1.204_02/|1.204_02 developer release]], which simply skips the test on perls older than 5.8.7. ----