Skip Menu |

This queue is for tickets about the forks CPAN distribution.

Report information
The Basics
Id: 82781
Status: resolved
Priority: 0/
Queue: forks

People
Owner: RYBSKEJ [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.34
Fixed in: 0.35



Subject: questions in Makefile.PL
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. -- Alexandr Ciornii, http://chorny.net
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
On Mon Dec 09 11:31:53 2013, SREZIC wrote: Show quoted text
> On 2013-01-17 02:53:10, CHORNY wrote:
> > 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
Thanks for the suggestion, I'll plan to integrate it for next release.
On Wed Jun 25 02:42:40 2014, RYBSKEJ wrote: Show quoted text
> On Mon Dec 09 11:31:53 2013, SREZIC wrote:
> > On 2013-01-17 02:53:10, CHORNY wrote:
> > > 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
> > Thanks for the suggestion, I'll plan to integrate it for next release.
Fixed in 0.35 release.