A Tool For Auto-Installing CPAN Packages

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

A Tool For Auto-Installing CPAN Packages

Max Kanat-Alexander
        To make Bugzilla installation easier, I've written a script
that takes the hard work out of installing CPAN packages, and also
easily allows a user to install CPAN packages to the local Bugzilla
directory if they're not root.

        Anybody who feels like they have some experience with CPAN or
wants to give some input is free to look over the patch here:

        https://bugzilla.mozilla.org/show_bug.cgi?id=262269

        This will be the recommended way to install Bugzilla's Perl
dependencies starting with Bugzilla 3.2.

        -Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla Services. And Everything Else, too.
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Joel Peshkin

Neat.  I guess it would be interesting to be able to satisfy the
modules' library dependencies the same way.  I wonder if that is possible?


-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Dave Williss
In reply to this post by Max Kanat-Alexander
I would also like to see a link on the download page which would
download ALL the CPAN packages required by Bugzilla.  Perhaps this
package could be updated nightly via a cron script of something.  
Ideally, it would also come with a Makefile which would build and
install only the packages which are not already installed or are newer
than what's installed, and in the correct dependency order.

The reason for this is that I've had to install Bugzilla multiple times
on machines which were on a private LAN and did not have internet
access, so just running CPAN to download and build packages wasn't
possible.  I'm sure there must be other sites with this same limitation.
There *is* a list of CPAN modules that Bugzilla requires, but then
sometimes those modules require other modules which require other
modules, etc..

Dave Williss
MicroImages, Inc.

Max Kanat-Alexander wrote:

> To make Bugzilla installation easier, I've written a script
> that takes the hard work out of installing CPAN packages, and also
> easily allows a user to install CPAN packages to the local Bugzilla
> directory if they're not root.
>
> Anybody who feels like they have some experience with CPAN or
> wants to give some input is free to look over the patch here:
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=262269
>
> This will be the recommended way to install Bugzilla's Perl
> dependencies starting with Bugzilla 3.2.
>
> -Max
>  
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Sam Folk-Williams
In reply to this post by Max Kanat-Alexander
On 10/16/07, Max Kanat-Alexander <[hidden email]> wrote:

>         To make Bugzilla installation easier, I've written a script
> that takes the hard work out of installing CPAN packages, and also
> easily allows a user to install CPAN packages to the local Bugzilla
> directory if they're not root.
>
>         Anybody who feels like they have some experience with CPAN or
> wants to give some input is free to look over the patch here:
>
>         https://bugzilla.mozilla.org/show_bug.cgi?id=262269
>
>         This will be the recommended way to install Bugzilla's Perl
> dependencies starting with Bugzilla 3.2.
>
>         -Max

Max - at what point should these be added to the docs?

> --
> http://www.everythingsolved.com/
> Competent, Friendly Bugzilla Services. And Everything Else, too.
> -
> To view or change your list settings, click here:
> <http://bugzilla.org/cgi-bin/mj_wwwusr?user=sam@...>
>
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Colin Ogilvie
Sam Folk-Williams wrote:
> Max - at what point should these be added to the docs?

They should be added to the documentation when they are checked in... it
doesn't help to have the patches ready in advance for that though (and
possibly attached to the same bug).

Colin
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Colin Ogilvie
Colin Ogilvie wrote:
> They should be added to the documentation when they are checked in...
> it doesn't help to have the patches ready in advance for that though
> (and possibly attached to the same bug).

Replace help with hurt in that sentence (Thanks Dave!)

Colin
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Clement Chan-2
In reply to this post by Max Kanat-Alexander
I have problems installing the GD and XML::Twig modules for Bugzilla 3.0
on FC7, and I can't go to 3.2 because it's risky for the production
environment.

The staging server seems to be working fine, it is not a problem for
upgrading. But setting a newly installed version on the workstation
machine for development is a pain. ...still can't pass the checksetup.pl
for a day of work.

I am running FC7, and it uses mostly latest versions of libraries and
Perl modules, the downloaded CPAN modules just clobber over each other.

A quick and dirty solution is to have a list of the perl modules. If the
latest isn't available, I can always grok for archive folder of the
Author to retrieve earlier version.

This will help me to install everything with just one pass, instead of
juggling with dependencies issues between modules. Automation isn't as
helpful for me.

Does anyone happen to have the libraries and Perl module version list
handy?

- Clement  



On Tue, 2007-10-16 at 01:48 -0700, Max Kanat-Alexander wrote:

> To make Bugzilla installation easier, I've written a script
> that takes the hard work out of installing CPAN packages, and also
> easily allows a user to install CPAN packages to the local Bugzilla
> directory if they're not root.
>
> Anybody who feels like they have some experience with CPAN or
> wants to give some input is free to look over the patch here:
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=262269
>
> This will be the recommended way to install Bugzilla's Perl
> dependencies starting with Bugzilla 3.2.
>
> -Max

-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Gervase Markham
In reply to this post by Max Kanat-Alexander
Max Kanat-Alexander wrote:
> To make Bugzilla installation easier, I've written a script
> that takes the hard work out of installing CPAN packages, and also
> easily allows a user to install CPAN packages to the local Bugzilla
> directory if they're not root.

How does this interface with the Bundle:: mechanism?

Gerv

-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Max Kanat-Alexander
In reply to this post by Dave Williss
On Tue, 16 Oct 2007 08:52:35 -0500 Dave Williss
<[hidden email]> wrote:
> I would also like to see a link on the download page which would
> download ALL the CPAN packages required by Bugzilla.

        It's not possible to download them as installed code, because
there are many XS modules in the dependency chain which must be
compiled for your specific version of Perl and processor type.

        It *would* be possible to provide all of the .tar.gz files from
CPAN.

> The reason for this is that I've had to install Bugzilla multiple
> times on machines which were on a private LAN and did not have
> internet access,

        Yes, this is a very common situation and we will probably
enhance install-module.pl in the future to deal with it.

        -Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla Services. And Everything Else, too.
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Max Kanat-Alexander
In reply to this post by Clement Chan-2
On Tue, 16 Oct 2007 13:45:00 -0700 Clement Chan <[hidden email]>
wrote:
> Does anyone happen to have the libraries and Perl module version list
> handy?

        This question would be more appropriate for the
bugzilla-support list described here:

        http://www.bugzilla.org/support/

        -Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla Services. And Everything Else, too.
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Max Kanat-Alexander
In reply to this post by Gervase Markham
On Tue, 16 Oct 2007 23:25:00 +0100 Gervase Markham <[hidden email]>
wrote:
> How does this interface with the Bundle:: mechanism?

        It doesn't. It's not necessary to. I also added a comment on the
bug itself about that.

        -Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla Services. And Everything Else, too.
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Dave Williss
In reply to this post by Max Kanat-Alexander


Max Kanat-Alexander wrote:

> On Tue, 16 Oct 2007 08:52:35 -0500 Dave Williss
> <[hidden email]> wrote:
>  
>> I would also like to see a link on the download page which would
>> download ALL the CPAN packages required by Bugzilla.
>>    
>
> It's not possible to download them as installed code, because
> there are many XS modules in the dependency chain which must be
> compiled for your specific version of Perl and processor type.
>
> It *would* be possible to provide all of the .tar.gz files from
> CPAN.
>
>  
Yes, that's what I was suggesting.  The configure script would figure
out which ones it actually needed to install on your system and build a
Makefile which would untar and build the necessary modules.  I like the
suggestion somebody else had here about installing them into the
Bugzilla directory itself if the installer doesn't have root access.  
That might be good for many people too.
>> The reason for this is that I've had to install Bugzilla multiple
>> times on machines which were on a private LAN and did not have
>> internet access,
>>    
>
> Yes, this is a very common situation and we will probably
> enhance install-module.pl in the future to deal with it.
>
>  
Yay!
> -Max
>  
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

byron-2
i'm probably missing something, but wouldn't it be easier to maintain
Bundle::Bugzilla rather than write a downloader script?


-b

begin-base64 644 signature.gif
R0lGODlhbQAHAIAAAABPo////ywAAAAAbQAHAAACfAxuGAnch+Bibkn7FL1p
XgVl4Ig1jjlZRoqybgun2Cur5uOunq7u/Ipq7WIyIc7XG9JquEgumPzdlhTf
h0O83kDJaXEm8mRHwXKJy5sac7qYOpT+gtv0n+0ujQOfdqh16caWt0foBViH
N1PRMXimiLUGt3ElVimlgbllWAAAOw==
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: A Tool For Auto-Installing CPAN Packages

Max Kanat-Alexander
On Wed, 17 Oct 2007 22:52:02 +0800 byron <[hidden email]> wrote:
> i'm probably missing something, but wouldn't it be easier to maintain
> Bundle::Bugzilla rather than write a downloader script?

        Yes, see my several comments on the bug about that.

        The downloader script is also much easier to use than CPAN, as
it does all the configuration for you.

        -Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla Services. And Everything Else, too.
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>