FreeBSD Bugzilla – Attachment 150020 Details for
Bug 195524
[PATCH] mail/spamassassin Lint errors with latest ruleset / patch from upstream
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Backport of upstream patch
patch-SA-bug7107 (text/plain), 1.40 KB, created by
Bernard Spil
on 2014-11-30 10:42:36 UTC
(
hide
)
Description:
Backport of upstream patch
Filename:
MIME Type:
Creator:
Bernard Spil
Created:
2014-11-30 10:42:36 UTC
Size:
1.40 KB
patch
obsolete
>--- lib/Mail/SpamAssassin/Conf.pm.orig 2014-02-07 09:36:28.000000000 +0100 >+++ lib/Mail/SpamAssassin/Conf.pm 2014-11-30 10:45:20.378885705 +0100 >@@ -3862,6 +3862,20 @@ > version, and z is maintenance version. So 3.0.0 is C<3.000000>, and 3.4.80 is > C<3.004080>. > >+=item perl_version >+ >+This will be replaced with the version number of the currently-running >+perl engine. Note: The version used is in the $] version format which is >+C<x.yyyzzz>, where x is major version, y is minor version, and z is maintenance >+version. So 5.8.8 is C<5.008008>, and 5.10.0 is C<5.010000>. Use to protect rules >+that incorporate RE syntax elements introduced in later versions of perl, such >+as the C<++> non-backtracking match. For example: >+ >+ # Avoid lint error on older perl installs >+ if perl_version >= 5.010000 >+ body INVALID_RE_SYNTAX_IN_PERL_5_8_8 /\w++/ >+ endif >+ > =item plugin(Name::Of::Plugin) > > This is a function call that returns C<1> if the plugin named >--- lib/Mail/SpamAssassin/Conf/Parser.pm.orig 2014-02-07 09:36:23.000000000 +0100 >+++ lib/Mail/SpamAssassin/Conf/Parser.pm 2014-11-30 10:44:04.247895105 +0100 >@@ -533,6 +533,9 @@ > elsif ($token eq 'version') { > $eval .= $Mail::SpamAssassin::VERSION." "; > } >+ elsif ($token eq 'perl_version') { >+ $eval .= $]." "; >+ } > elsif ($token =~ /^\w[\w\:]+$/) { # class name > my $u = untaint_var($token); > $eval .= '"' . $u . '" ';
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195524
: 150020 |
150021
|
150023