Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47113 - readline support in perl's CPAN does not work correctly
Summary: readline support in perl's CPAN does not work correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 09:27 UTC by Alistair McDonald
Modified: 2004-04-08 01:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair McDonald 2004-04-07 09:27:46 UTC
I've got two main gentoo systems, one was once gentoo 1.2 but is now upgraded, the other has always been 1.4. On both, readline support is supposedly built in to CPAN, but it doesn't work.
On the first system, CPAN doesn't work: 

altair src # cpan
Cannot do `initialize' in Term::ReadLine::Gnu at /usr/lib/perl5/5.8.2/CPAN.pm line 105
altair src # perl -MCPAN -e shell
Cannot do `initialize' in Term::ReadLine::Gnu at /usr/lib/perl5/5.8.2/CPAN.pm line 105
altair src #

on the other, CPAN works, but up-arrow, Ctrl+R, Ctrl+P etc do not work. #
cpan> ^R^P

To get to this stage, once upon a time, I must have installed 
Bundle::CPAN, as prompted by CPAN itself:

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')




Reproducible: Always
Steps to Reproduce:
1.run "perl -MCPAN -e shell" or run "cpan" (you may have to configure CPAN if this is your first time)
2.install Bundle::CPAN
3.exit CPAN
4.run CPAN again, as per 1.
5.Ctrl+r, up-arrow, etc do not work.

Actual Results:  
I see ^R or ^P

Expected Results:  
retrieved previous commands. 

readline works fine in (for example) the mysql tool, or bash.
Comment 1 Alistair McDonald 2004-04-07 11:56:08 UTC
Some more info that I have just remembered. CPAN worked fine for a while. I can't be definite, but I *think* that the problem occurred when the gentoo perl ebuild went through a revision, for example from 5.6 to 5.8 or similar. I've always had problems with the first machine when the perl version is bumped - generally I have to re-emerge perl modules to get them to work with the latest perl. 

I've just installed CPAN on a virgin gentoo machine, installed Bundle::CPAN, and readline works. So I guess there is more to this problem than just ebuilds. I can provide whatever info you like to help reslove this issue, or you can close the bug as not reproducible if you like. 

Sorry to be a pain, thanks for listening (and thanks even more for gentoo!)
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-04-08 01:42:41 UTC
closing