You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Dan Mahoney, System Admin" <da...@prime.gushi.org> on 2004/09/22 21:50:24 UTC

Re: [sa-list] Installation:

On Wed, 22 Sep 2004, Sherwood Botsford wrote:

Sherwood,

It's time to bite the bullet and upgrade perl system-wide.  Whatever your 
OS, CPAN and the various packaging systems have ways to make it easier for 
you.  It will likely cause you less headache than what you're presently 
doing.

Change is inevitable.  Keep on keeping on.

-Dan



>
> I'm upgrading from 2.63 running with native perl
> 5.0.somethign to 3.0.0 running with perl 5.6
>
> New perl is installed in /usr/local/bin/perl
> Old perl is installed in /usr/bin/perl
>
> To catch possible gotchas I've renamed /usr/bin/perl to
> perl50.
>
> I started the process with the command:
> /usr/local/bin/perl -MCPAN -e shell
>
> Of course since it was a new version of perl in a new
> location CPAN asked me questions.  I told it to do the
> autoconfigure thing.
>
> When finished, I typed:
>
> o conf prerequisites_policy ask
> install Mail::SpamAssassin
>
> Installation went ok, but it failed on the tests:
> Raft of messages:
> Use of uninitialized value in pattern match (m//) at
> ../blib/lib/Mail/SpamAssassin/HTML.pm line 729.
> Use of uninitialized value in pattern match (m//) at
> ../blib/lib/Mail/SpamAssassin/HTML.pm line 716.
> Use of uninitialized value in pattern match (m//) at
> ../blib/lib/Mail/SpamAssassin/HTML.pm line 729.
> Use of uninitialized value in pattern match (m//) at
> ../blib/lib/Mail/SpamAssassin/HTML.pm line 716.
> ... repeated hundreds of times.
>
> At the end, it reported:
>
> Failed Test Status Wstat Total Fail  Failed  List of Failed
> --------------------------------------------------------------------------------
> t/uri.t                       62    6   9.68%  1-6
> 8 tests skipped.
> Failed 1/67 test scripts, 98.51% okay. 6/1463 subtests
> failed, 99.59% okay.
> *** Error code 255
>
> Stop in /root/.cpan/build/Mail-SpamAssassin-3.0.0.
>  /usr/bin/make test -- NOT OK
>
>
> Relevant section of  HTML.pm (with line numbers.)
>    713     # tag attributes
>    714     for my $name (keys %$attr) {
>    715       next unless (grep { $_ eq $tag } @{
> $ok_attribute{$name} });
>    716       if ($name =~ /^(?:text|color)$/) {
>    717         # two different names for text color
>    718         $new{fgcolor} =
> name_to_rgb(lc($attr->{$name}));
>    719       }
>    720       elsif ($name eq "size" && $attr->{size} =~
> /^\s*([+-]\d+)/) {
>    721         # relative font size
>    722         $new{size} = $self->{basefont} + $1;
>    723       }
>    724       else {
>    725         if ($name eq "bgcolor") {
>    726           # overwrite with hex value, $new{bgcolor}
> is set below
>    727           $attr->{bgcolor} =
> name_to_rgb(lc($attr->{bgcolor}));
>    728         }
>    729         if ($name eq "size" && $attr->{size} !~
> /^\s*([+-])(\d+)/) {
>    730           # attribute is malformed
>    731         }
>    732         else {
>    733           # attribute is probably okay
>    734           $new{$name} = $attr->{$name};
>    735         }
>    736       }
>    737       if ($new{size} > $self->{html}{max_size}) {
>    738         $self->{html}{max_size} = $new{size};
>    739       }
>    740       elsif ($new{size} < $self->{html}{min_size}) {
>    741         $self->{html}{min_size} = $new{size};
>    742       }
>    743     }
>    744     push @{ $self->{text_style} }, \%new;
>    745   }
>    746   # explicitly close a tag
>    747   else {
>    748     if ($tag ne "body") {
>    749       # don't close body since browsers seem to
> render text after </body
>>
>    750       $self->close_tag($tag);
>    751     }
>    752   }
>    753 }
>    754
>
>
>
>
>
>
> --
> Sherwood Botsford
> St. John's School of Alberta
>

--

"There were some sensible, rational, and intelligent things to say.  It's
just that it was the last thing I expected to hear from the damn
kangaroo."

-Saravit, December 27, 1997

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------