reference to undefined scalar in version number extraction from $Revision$

Bug #578955 reported by Ville Mattila
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnet-patricia-perl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libnet-patricia-perl

Patricia.pm fails to compile when a script using it is run with "perl -w".

1) Environment
% lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04

2) Package version
% apt-cache policy libnet-patricia-perl
libnet-patricia-perl:
  Installed: 1.15-1
  Candidate: 1.15-1
  Version table:
 *** 1.15-1 0
        500 http://fi.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

3) Expected behaviour
Should be able to use "#!perl -w" in scripts using Net::Patricia.

4) Observed behaviour
% perl -w -Mstrict -MNet::Patricia -e ''
Use of uninitialized value $3 in concatenation (.) or string at /usr/lib/perl5/Net/Patricia.pm line 34.

Revision history for this message
Ville Mattila (vmattila) wrote :
Revision history for this message
Ansgar Burchardt (aburch) wrote : Re: [Pkg-perl-maintainers] [Bug 578955] [NEW] reference to undefined scalar in version number extraction from $Revision$

Ville Mattila writes:
> Patricia.pm fails to compile when a script using it is run with
> "perl -w".

> 4) Observed behaviour
> % perl -w -Mstrict -MNet::Patricia -e ''
> Use of uninitialized value $3 in concatenation (.) or string at
> /usr/lib/perl5/Net/Patricia.pm line 34.

Giving a warning when using -w should not make the module unusable.
If that is too annoying, using "use warnings;" instead of the "-w"
option should hide the warning as well.

Given that this is fixed in 1.16 (already in maverick), I don't think
there is a need for a SRU for this bug.

Regards,
Ansgar

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks a lot. This is fixed in 1.16.

'$Revision: 1.16 $' =~ m/(\d+)\.(\d+)(_\d+|)/ && ( $VERSION = "$1.$2$3");

Changed in libnet-patricia-perl (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.