Skip Menu |

This queue is for tickets about the Term-ReadLine-Perl CPAN distribution.

Report information
The Basics
Id: 2532
Status: new
Priority: 0/
Queue: Term-ReadLine-Perl

People
Owner: Nobody in particular
Requestors: ajs [...] ajs.com
Cc:
AdminCc:

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



Subject: Unattended Bundles hang on Term-ReadLine-Perl
I have a bundle that includes Term::ReadLine::Gnu, and that appears to depend on Term-ReadLine-Perl. The problem is that Term-ReadLine-Perl has a make test step that explicitly attaches to /dev/tty and waits for user-input, so while doing perl -MCPAN -e 'install "Bundle::MyMegaPerlUpdate"' < /dev/null works just fine for every other module I'm installing (taking the defaults in cases where it asks questions during CPAN's "make" step), I return hours later (or days, depending on what sort of environment this is run in) to a prompt waiting for me to verify that Term::ReadLine::Perl is working, and under cron, well there's no much hope there. I understand that it's hard to say that you've "tested" something when you have not had a chance to do what it's designed to do, but for those of us who are trying to install unrelated, but dependent modules, could this module perhaps just avoid any /dev/tty-based tests when STDIN is not a terminal (e.g. "exit 0 unless -t STDIN")? If that's unacceptable, perhaps you could provide an environment variable that I could set in my top-level Makefile that kicks off CPAN that would prevent the test from running? Thanks!
Date: Thu, 8 May 2003 22:27:24 -0700
From: Ilya Zakharevich <ilya [...] Math.Berkeley.EDU>
To: Guest via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
CC: "AdminCc of cpan Ticket #2532": ;
Subject: Re: [cpan #2532] Unattended Bundles hang on Term-ReadLine-Perl
RT-Send-Cc:
On Wed, May 07, 2003 at 03:59:05PM -0400, Guest via RT wrote: Show quoted text
> > This message about Term-ReadLine-Perl was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=2532 >
Show quoted text
> I have a bundle that includes Term::ReadLine::Gnu, and that appears
to depend on Term-ReadLine-Perl. [Hitting Enter time to time would make your mail more readable. Reformatted] No it does not. The problem is that Term-ReadLine-Perl has a make test step that explicitly attaches to /dev/tty and waits for user-input, so while doing Show quoted text
> I understand that it's hard to say that you've "tested" something when you have not had a chance to do what it's designed to do, but for those of us who are trying to install unrelated, but dependent modules, could this module perhaps just avoid any /dev/tty-based tests when STDIN is not a terminal (e.g. "exit 0 unless -t STDIN")?
Working with !-t STDIN is one of the design goals of Term::ReadLine. Show quoted text
> If that's unacceptable, perhaps you could provide an environment
variable that I could set in my top-level Makefile that kicks off CPAN that would prevent the test from running? Just install it first. Hope this helps, Ilya