On 2013-01-17 02:53:10, CHORNY wrote:
Show quoted text> Questions in Makefile.PL prevent cpantesters smoker from functioning
> correctly: they cannot test this module and smoker hangs. Please use
> prompt from ExtUtils::MakeMaker. Also, environment variables
> PERL_MM_USE_DEFAULT or AUTOMATED_TESTING can be used to skip questions.
It seems that Makefile.PL tries to emulate a subset of prompt() functionality (unfortunately this subset does not include default answers if PERL_MM_USE_DEFAULT is set) to keep compatibility with very old installations. I think this can be easily fixed by using something like:
if (!defined &prompt) {
*prompt = sub {
# the compatibility code comes here
};
}
if (prompt("text", "y") eq "y") {
# ...
}
This would work both with very old perl installations and with batch installation or automatic test systems.
Regards,
Slaven