develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #118821] [PATCH] lib/perl5db.t loads Term::ReadLine::Gnu from system installation

Thread Next
From:
Father Chrysostomos via RT
Date:
July 10, 2013 04:31
Subject:
[perl #118821] [PATCH] lib/perl5db.t loads Term::ReadLine::Gnu from system installation
Message ID:
rt-3.6.HEAD-2552-1373430698-1566.118821-15-0@perl.org
On Tue Jul 09 04:56:18 2013, ppisar wrote:
> Running perl-5.18.0 tests while older perl (e.g. 5.16.3) is installed
> can leak
> not-just-built modules from older Perl system installation into
> running tests.
> 
> E.g. if you have Term::ReadLine::Gnu installed in the include paths,
> 5.18.0
> lib/perl5db.t will load it via Term::ReadLine and consequitive
> Term::ReadLine::Gnu initialization will fail:
> 
> ../lib/perl5db.t .. 1/113 Cannot do `initialize' in
> Term::ReadLine::Gnu at ../lib/perl5db.pl line 6813.
>  at /usr/lib64/perl5/vendor_perl/Term/ReadLine/Gnu.pm line 716.
> 
> Minimal reproducer is:
> 
> $ LD_PRELOAD=../libperl.so ./perl -I../lib -e 'use Term::ReadLine;
> Term::ReadLine->new(q{foo})'
> Cannot do `initialize' in Term::ReadLine::Gnu at -e line 1.
> 
> I tried to remove the standard directories from @INC at various places
> (t/harness, TestInit.pm, lib/perl5db.pl, lib/perl5db.t) to but without
> a luck.
> 
> Attached patch sets PERL_RL in lib/perl5db.t to favour pure-Perl
> Term::ReadLine implementation that is part of core to prevent from
> loading the
> Term::ReadLine::Gnu.
> 
> -- Petr

Thank you.  Applied as fc4b816451cc28.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118821

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About