PaulHowarth/Blog/2010-03-19

Friday 19th March 2010

Local Packages

  • Updated perl-Data-Section to 0.100770 (__END__ now ends the whole data section - ignore_end may come someday; empty data lines between __DATA__ and first section are ignored)

  • Updated perl-IO-Socket-INET6 to 2.58 (fix for OpenBSD getaddrinfo() - CPAN RT#54656); I had to patch the distribution to get it to build on perl < 5.10.0:

  • --- IO-Socket-INET6-2.58/lib/IO/Socket/INET6.pm 2010-03-18 12:05:48.000000000 +0000
    +++ IO-Socket-INET6-2.58/lib/IO/Socket/INET6.pm 2010-03-19 10:28:31.916244865 +0000
    @@ -229,9 +229,9 @@
                     return _error($sock, $!, "sockopt: $!");
             }
     
    -        if( $family == AF_INET 
    -            ? (sockaddr_in($lres))[1] ne INADDR_ANY 
    -            : (sockaddr_in6($lres))[1] ne in6addr_any ) {
    +        if( ( $family == AF_INET )
    +            ? ((sockaddr_in($lres))[1] ne INADDR_ANY)
    +            : ((sockaddr_in6($lres))[1] ne in6addr_any) ) {
                 $sock->bind($lres) or
                     return _error($sock, $!, "bind: $!");
             }
    
  • Without the patch, the test suite failed like this:
  • Possible unintended interpolation of @sa_in6 in string at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Possible unintended interpolation of @sa_in6 in string at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Variable "$new" is not imported at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
            (Did you mean &new instead?)
    Variable "$new" is not imported at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
            (Did you mean &new instead?)
    Variable "$new" is not imported at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
            (Did you mean &new instead?)
    Variable "$new" is not imported at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
            (Did you mean &new instead?)
    Variable "$new" is not imported at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
            (Did you mean &new instead?)
    Global symbol "@sa_in6" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "@sa_in6" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "@sa_in6" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "@sa_in6" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "$new" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "$peer" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "$new" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "$new" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "$new" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    Global symbol "$new" requires explicit package name at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 233.
    syntax error at /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm line 299, near "return wantarray ? ("
      (Might be a runaway multi-line ?? string starting on line 233)
    /home/david/cpantesting/perl-5.8.9/.cpan/build/IO-Socket-INET6-2.58-FEw65u/blib/lib/IO/Socket/INET6.pm has too many errors.


Recent