>>>>> On Wed, 31 Jan 2007 21:46:09 -0600, Ken Williams <[EMAIL PROTECTED]> said:
> On Jan 30, 2007, at 12:01 AM, Andreas J. Koenig wrote: >> This morning I found one of my batch jobs hanging and the logfile only >> revealed that it was during installation of >> DMAKI/DateTime-Util-Calc-0.11.tar.gz but there was no apparent sign >> for a reason. I found the following in the Build.PL: >> >> my $proceed = Module::Build->y_n($message, "n"); >> >> It looks like this was the cause of the hang. And I would guess one >> can argue that it's Module::Build's duty to set $| for these cases. > It does already set $|=1. Both in y_n() and prompt(). Since before > version 0.28, if I'm reading svn correctly. Thanks for looking into it! So there's definitely something broken, I don't know what. It looks like the prompt function in Module::Build::Base is not called when the output is redirected to a non-terminal. If I add a C<die;> at the beginning of the prompt subroutine, it is reached in the debugger but not when I run the Build.PL with output redirected. I cannot investigate more right now. These are the facts: (1) perl is bleadperl @30080 (verified again with 30087) (2) Module::Build is 0.2806 (3) distro is DMAKI/DateTime-Util-Calc-0.11.tar.gz (4) Math::BigInt::GMP and Math::Pari must NOT be installed, so that y_n() is triggered (5) I call 'perl Build.PL > /tmp/ttt' and it hangs forever and /tmp/ttt remains empty I'm grateful for any pointers you have. -- andreas