Subject: | Endless loop in Makefile.PL |
Under certain circumstances "perl Makefile.PL" may run in an endless loop:
...
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Could not find idnkit header files. Please, set proper directory,
for instance, /opt/local.
Would you try to set idnkit install directory (y/n)? [y] y
Directory where idnkit installed: [/usr/local] /usr/local
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Could not find idnkit header files. Please, set proper directory,
for instance, /opt/local.
Would you try to set idnkit install directory (y/n)? [y] y
Directory where idnkit installed: [/usr/local] /usr/local
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
...
In my situation this happens because PERL_MM_USE_DEFAULT=1 is set (which is a must for smoker systems, as they have to work without human intervention) and there's no idn library available. I assume it can also happen if there's no terminal for answering the prompt (e.g. may happen for cron-based systems). Maybe these situations can be detected, and the loop not entered. Or maybe (easier to implement?) there could be a maximum iteration count.