Skip Menu |

This queue is for tickets about the Mail-IMAPClient CPAN distribution.

Report information
The Basics
Id: 57659
Status: resolved
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: PLOBBES [...] cpan.org
Requestors: kparisi [...] sussex.edu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.00
Fixed in: 3.25



Subject: mail::imapclient small issue
Date: Thu, 20 May 2010 07:54:14 -0400
To: "bug-Mail-IMAPClient [...] rt.cpan.org" <'bug-Mail-IMAPClient [...] rt.cpan.org'>
From: "Ken Parisi" <kparisi [...] sussex.edu>
Hey, Just wanted to give a heads-up to you about this issue I ran into recently with installing mail::imapclient. I wanted to install it on my cPanel server using their GUI module installer. It gets hung up on the (n/y) question and doesn't install properly. Since it's done using their GUI, there is no place to respond to that message. I tried installing it a couple times via this method, but it never fully installed and I suspect it's because of this prompt during the installation. Ken Parisi Programmer 973-300-2148 B-109
On Thu May 20 07:55:25 2010, kparisi@sussex.edu wrote: ... Show quoted text
> I wanted to install it on my cPanel server using their GUI module > installer. It gets hung up on the (n/y) question and doesn't install > properly. Since it's done using their GUI, there is no place to respond > to that message. I tried installing it a couple times via this method, > but it never fully installed and I suspect it's because of this prompt > during the installation.
Hi Ken, thanks for the report. I don't use cPanel so I've not seen this occur. It is interesting that it gets hung up here as Makefile.PL uses prompt() (provided by ExtUtils::MakeMaker) which I would hope could do the right thing. It is supposed to detect when there is no STDIN (or if PERL_MM_USE_DEFAULT is set to true) and not prompt for input. I assume that means there is still a STDIN available in cPanel. I wonder what/how cPanel is doing what it is doing and if it has an option to close STDIN or set the PERL_MM_USE_DEFAULT environment variable so that users of cPanel do not get hung up here. I could also make the default behavior to be just to not prompt and perhaps require an extra command line argument to do the extended tests I suppose...
After a little more research and digging, I'm currently inclined to think that this is a cPanel bug in the way their installer behaves. Any chance you have talked to cPanel?
Subject: RE: [rt.cpan.org #57659] mail::imapclient small issue
Date: Wed, 26 May 2010 08:13:35 -0400
To: <bug-Mail-IMAPClient [...] rt.cpan.org>
From: "Ken Parisi" <kparisi [...] sussex.edu>
Hey, Maybe a timer to automatically select "y" or "n" after XX seconds would do the trick too? cPanel is a front-end gui for (mostly) LAMP environments. A lot of hosting companies use it and I think it's also downloadable freeware to be installed on any compliant server environments. There is an area where you can search the cpan module archive and install directly from their site. It's pretty useful and I'm sure there are people using it who might not have any Perl and/or Linux background. As far as closing the STDIN goes, I don't think that users using the gui have that option, but I never thought of that. While installing a module, cpanel shows an iframe-looking (java?) window within the page. In that window, messages from the make are displayed in real-time as they are printed to the "screen". Hope to see it fixed... the module is great. Ken Parisi Programmer 973-300-2148 B-109 Show quoted text
-----Original Message----- From: Phil Pearl (Lobbes) via RT [mailto:bug-Mail-IMAPClient@rt.cpan.org] Sent: Tuesday, May 25, 2010 4:14 PM To: Ken Parisi Cc: DJKERNEN__NO_SOLICITING__@cpan.org Subject: [rt.cpan.org #57659] mail::imapclient small issue <URL: https://rt.cpan.org/Ticket/Display.html?id=57659 > On Thu May 20 07:55:25 2010, kparisi@sussex.edu wrote: ...
> I wanted to install it on my cPanel server using their GUI module > installer. It gets hung up on the (n/y) question and doesn't install > properly. Since it's done using their GUI, there is no place to respond > to that message. I tried installing it a couple times via this method, > but it never fully installed and I suspect it's because of this prompt > during the installation.
Hi Ken, thanks for the report. I don't use cPanel so I've not seen this occur. It is interesting that it gets hung up here as Makefile.PL uses prompt() (provided by ExtUtils::MakeMaker) which I would hope could do the right thing. It is supposed to detect when there is no STDIN (or if PERL_MM_USE_DEFAULT is set to true) and not prompt for input. I assume that means there is still a STDIN available in cPanel. I wonder what/how cPanel is doing what it is doing and if it has an option to close STDIN or set the PERL_MM_USE_DEFAULT environment variable so that users of cPanel do not get hung up here. I could also make the default behavior to be just to not prompt and perhaps require an extra command line argument to do the extended tests I suppose...
Show quoted text
> Maybe a timer to automatically select "y" or "n" after XX > seconds would do the trick too?
I almost put in a patch for this yesterday then changed my mind... I will go ahead and put a hack in the Makefile.PL to timeout after 60 seconds on the initial prompt but I think cPanel should really be fixing their tool to work properly with ExtUtils::MakeMaker's prompt(). Mail::IMAPClient isn't the only Perl module using that function and they shouldn't break when someone uses it.
Subject: RE: [rt.cpan.org #57659] install fails when using cPanel GUI
Date: Wed, 26 May 2010 11:13:22 -0400
To: <bug-Mail-IMAPClient [...] rt.cpan.org>
From: "Ken Parisi" <kparisi [...] sussex.edu>
Yeah, I agree with that... they built a great front end to work with installs straight from cpanel, but they should've seen this issue after a day of testing it. Anyway, thanks for the update - if you remember, let me know when the patch is in and I'll log in and try it again. You might want to put a message right above or under the prompt so that people will know they should wait. Thanks again Ken Parisi Programmer 973-300-2148 B-109 Show quoted text
-----Original Message----- From: Phil Pearl (Lobbes) via RT [mailto:bug-Mail-IMAPClient@rt.cpan.org] Sent: Wednesday, May 26, 2010 10:20 AM To: Ken Parisi Cc: DJKERNEN__NO_SOLICITING__@cpan.org Subject: [rt.cpan.org #57659] install fails when using cPanel GUI <URL: https://rt.cpan.org/Ticket/Display.html?id=57659 >
> Maybe a timer to automatically select "y" or "n" after XX > seconds would do the trick too?
I almost put in a patch for this yesterday then changed my mind... I will go ahead and put a hack in the Makefile.PL to timeout after 60 seconds on the initial prompt but I think cPanel should really be fixing their tool to work properly with ExtUtils::MakeMaker's prompt(). Mail::IMAPClient isn't the only Perl module using that function and they shouldn't break when someone uses it.
Release 3.25 is out with a fix/workaround for this bug. Closing for now, but please let me know if you run into any problems!