Skip Menu |

This queue is for tickets about the Crypt-SSLeay CPAN distribution.

Report information
The Basics
Id: 26881
Status: resolved
Priority: 0/
Queue: Crypt-SSLeay

Owner: dland [...]
Requestors: jmartin [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Silent Installs broken in 0.54
Date: Wed, 2 May 2007 05:17:03 -0500
To: <bug-Crypt-SSLeay [...]>
From: "Martin, Jeremy" <jmartin [...]>
Download (untitled) / with headers
text/plain 1.2k
I have a perl application that requires a bunch of CPAN modules. I wrote a script to make it easy to install the modules, but it appears that the new version 0.54 asks a question at install time which can't be avoided, so its breaking my installer script. I need to be able to run this installer script without any human interaction at all, so for now I'm making it install 0.53 to avoid this problem. This is on RedHat ES3/4 and Ubuntu 6.10 systems. The new version is asking this question: Do you want to run the live tests (y/N) ? [N] I looked through the Makefile.PL code but the only GetOptLong options being used are the path to ssl and the -default option which does not effect this new question. Here is what my install script looked like basically: #!/usr/bin/perl -w use strict; use CPAN; CPAN::Shell->o('conf','makepl_arg','--default'); CPAN::Shell->install('Crypt::SSLeay'); I had to change that last line to this for now: CPAN::Shell->install('D/DL/DLAND/Crypt-SSLeay-0.53.tar.gz'); If a new command line option is added, network_tests or whatever, I guess it would look like this instead? CPAN::Shell->o('conf','makepl_arg','--default --network-tests=no'); CPAN::Shell->install('Crypt::SSLeay');
Download (untitled) / with headers
text/plain 595b
First off, please accept my apologies for having broken your installation. This behaviour is odd, I use prompt() from ExtUtils::MakeMaker to ask the question, so it should realise that it's being run in batch mode. Can you try out the following: set the environment variable PERL_MM_USE_DEFAULT to a true value. For instance, at the top of your progam, change it to: #!/usr/bin/perl -w use strict; use CPAN; $ENV{PERL_MM_USE_DEFAULT} = 1; ... and then you shouldn't see any questions blocking on STDIN, and you can work with 0.54. Can you let me know if that works for you? Later, David
Download (untitled) / with headers
text/plain 218b
I tested this out, setting PERL_MM_USE_DEFAULT to 1 will effectively stop cpan from hanging on STDIN. I think it's safe to close this ticket (I have updated the installation notes to clarify this point). Thanks, David

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to