Rebuilding a few hundred modules will take more than 15 minutes, especially if 
you have to download each one. I suppose you could modify sudoes to make it 8 
hours. 

------Original Message------
From: Andy Armstrong
To: dhu...@hudes.org
Cc: Eric Wilhelm
Cc: module-authors@perl.org
Sent: Jan 12, 2010 12:14 PM
Subject: Re: avoid running CPAN as root

On 12 Jan 2010, at 16:59, dhu...@hudes.org wrote:
> While the idea of using sudo only at install time is nice, there are two
> problems:
> 1. Some modules require extra privileges at test time

Do they? I've got 1213 distributions installed on this laptop. All using cpan 
and none of them required elevated privileges during testing. Which modules do 
this?

> 2. Far more impact is that sudo requires that you enter your password each
> time you invoke it.  Therefore you will have to enter your password once
> for each module you install. On any given module you may have 3 or 4
> prerequisites; if you update your modules to current once a quarter, you
> will have dozens to install.  Given the way that CPAN.pm operates you
> can't just keep going and add each blib to your @INC and only do one sudo
> session to run all the individual make installs.


Often sudo will be configured with a 15 minute grace period which means you 
only need to authenticate for the first make install / ./Build install.

-- 
Andy Armstrong, Hexten





Sent from my BlackBerry® smartphone with Nextel Direct Connect

Reply via email to