Skip Menu |

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 48966
Status: resolved
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

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



Subject: libnet non-interactive installation
Date: Mon, 24 Aug 2009 15:08:22 +0100
To: bug-libnet [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
By default, the configuration step for libnet demands user input. This gets in the way of bulk or automated installations, such as a blanket upgrade via the cpan(1) command line. The Configure script has an accept-all-defaults mode, and this should be the default behaviour: interactive configuration should only happen when the user is actually driving the installation manually. The attached patch implements this. -zefram

Message body is not shown because sender requested not to inline it.

On Mon Aug 24 10:08:48 2009, zefram@fysh.org wrote: Show quoted text
> By default, the configuration step for libnet demands user input. > This gets in the way of bulk or automated installations, such as a > blanket upgrade via the cpan(1) command line. The Configure script has > an accept-all-defaults mode, and this should be the default behaviour: > interactive configuration should only happen when the user is actually > driving the installation manually. The attached patch implements this. >
Thanks for the patch. I wonder if it would make more sense to detect whether Makefile.PL is being run via CPAN/CPANPLUS and make it run in accept-all-defaults mode in that case, but otherwise demand user input as usual. That way, when a user interactively runs Makefile.PL they will be prompted with the questions as usual, rather than explicitly having to run the extra "perl Configure" command first.
On Thu Aug 08 04:10:05 2013, SHAY wrote: Show quoted text
> On Mon Aug 24 10:08:48 2009, zefram@fysh.org wrote:
> > By default, the configuration step for libnet demands user input. > > This gets in the way of bulk or automated installations, such as a > > blanket upgrade via the cpan(1) command line. The Configure script > > has > > an accept-all-defaults mode, and this should be the default > > behaviour: > > interactive configuration should only happen when the user is > > actually > > driving the installation manually. The attached patch implements > > this. > >
> > Thanks for the patch. I wonder if it would make more sense to detect > whether Makefile.PL is being run via CPAN/CPANPLUS and make it run in > accept-all-defaults mode in that case, but otherwise demand user input > as usual. That way, when a user interactively runs Makefile.PL they > will be prompted with the questions as usual, rather than explicitly > having to run the extra "perl Configure" command first.
This is now done in https://github.com/steve-m-hay/perl-libnet/commit/ffb1a81f4048faa93a7896fe8d1c7bf4b793fc2a