Subject: | Module::AutoInstall -- must not attempt to auto-install without a terminal |
We're building quite a number of CPAN modules in PLD Linux; the build
process executes without a terminal. As per this report:
https://bugs.launchpad.net/pld-linux/+bug/327917
Module::AutoInstall puts CPAN into an infinite loop, eventually filling
the disk with the STDOUT/STDERR log file. Besides, nothing is supposed
to be installed via CPAN.pm on the build machines.
It should behave as if --skipdeps was provided if either of these is true:
a) there is no attached terminal
b) is being run under RPM (detectable eg. by the presence
of $ENV{RPM_BUILD_ROOT})