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!