Bug#577340: Bug in Net-LDAP causing FTBFS in lemonldap-ng [was: Processed: reassign]

Damyan Ivanov dmn at debian.org
Tue Apr 13 21:30:50 UTC 2010


found 577340 1:0.4001-1
tags 577340 confirmed -squeeze
affects 577340 lemonldap-ng
retitle 577340 libnet-ldap-perl: Modification of a read-only value attempted at Net::LDAP::Constants line 13
thanks

-=| Debian Bug Tracking System, Tue, Apr 13, 2010 at 05:21:07AM +0000 |=-
> Processing commands for control at bugs.debian.org:
> 
> > reassign 577340 libnet-ldap-perl
> Bug #577340 [src:lemonldap-ng] lemonldap-ng: FTBFS: tests failed
> Bug reassigned from package 'src:lemonldap-ng' to 'libnet-ldap-perl'.

A bit of explaination would have been nice :/

After some bouncing of ideas on IRC, it appears the bug is really in 
Net-LDAP, but only lemonldap-ng's test suite manages to trigger it.

The read-only value in question is $_, which is aliased to a constant. 
Thanks to the world-dominating search engine, we have found this 
educational link[1]

    [1] http://www.perlmonks.org/?node_id=570712#default_unlocalized

In essence, this doesn't work:

    perl -we'for(1,2) { require Net::LDAP }'

How lemonldap-ng's test suite manages to alias $_ to a constant is not 
yet known, but the details are not important. The above code sould 
work even if it looks weird.

My proposal is to patch Constants.pm to use

    local $_;
    while(<DATA>) { ... }

instead of

    while(<DATA>) { ... }

Any objections?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20100414/88a23221/attachment.pgp>


More information about the pkg-perl-maintainers mailing list