Skip Menu |

This queue is for tickets about the NetAddr-IP CPAN distribution.

Report information
The Basics
Id: 62804
Status: resolved
Priority: 0/
Queue: NetAddr-IP

People
Owner: Nobody in particular
Requestors: SILASMONK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 4.024
Fixed in: (no value)



Subject: Forwarding Debian bug report about warning message in spamassasin and proposed patch
We have an old bug report in Debian (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517361) stating that "When used with spamassassin, I get this in my syslog : Feb 27 11:24:35 mail spamd[16173]: Use of uninitialized value $NetAddr::IP::Util::n2d_format in sprintf at ../../blib/lib/NetAddr/IP/Util.pm (autosplit into ../../blib/lib/auto/NetAddr/IP/Util/ipv6_n2d.al) line 356, <GEN1757> line 153." It was suggested that the root cause maybe using our variables in conjunction with autospplit. We attach a patch changing this to "use vars". To me this changes seems to be correct but we have not managed to reproduce the original problem. Please consider the patch and let us know what you think.
Subject: autosplit.patch
Author: Nicholas Bamber <nicholas@periapt.co.uk> Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517361 Last-Update: 2010-11-02 Subject: our variables being autosplit; causing warnings Forwarded: no --- a/Lite/Util/Util.pm +++ b/Lite/Util/Util.pm @@ -115,8 +115,9 @@ # allow user to choose upper or lower case -our $n2x_format = "%X:%X:%X:%X:%X:%X:%X:%X"; -our $n2d_format = "%X:%X:%X:%X:%X:%X:%D.%D.%D.%D"; +use vars qw($n2x_format $n2d_format); +$n2x_format = "%X:%X:%X:%X:%X:%X:%X:%X"; +$n2d_format = "%X:%X:%X:%X:%X:%X:%D.%D.%D.%D"; sub upper { $n2x_format = uc($n2x_format); $n2d_format = uc($n2d_format); } sub lower { $n2x_format = lc($n2x_format); $n2d_format = lc($n2d_format); }
moved sub to non-split portion of module in release 4.036 On Sun Nov 07 12:02:02 2010, SILASMONK wrote: Show quoted text
> We have an old bug report in Debian > (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517361) stating that > > "When used with spamassassin, I get this in my syslog : > > Feb 27 11:24:35 mail spamd[16173]: Use of uninitialized value > $NetAddr::IP::Util::n2d_format in sprintf at > ../../blib/lib/NetAddr/IP/Util.pm (autosplit into > ../../blib/lib/auto/NetAddr/IP/Util/ipv6_n2d.al) line 356, <GEN1757> > line 153." > > It was suggested that the root cause maybe using our variables in > conjunction with autospplit. We attach a patch changing this to "use > vars". To me this changes seems to be correct but we have not managed to > reproduce the original problem. Please consider the patch and let us > know what you think.