Hi

I am responsible for a perl-installation, including modules and best-practices.
This perl is specific for our operational scripts (3000+ servers, several OS's).
We do automatic testing (with hudson continuous integration) and packing (.rpm, .pkg, .dep and .msi).

I intend to select a bunch of perl-modules, create a Bundle:: (or rather, I assume it will be a Task:: ) and create a single package (or rather: one for each architecture/os). This task/bundle should be automatically rebuild with the latest and greatest (but not installed unless all unit-test and other tests succeed).

I have done something like this several years ago, using CPAN and a Bundle::, although it was done manually.
Things have evolved since, so I am looking into cpanp and Module::Install, something like: cpanp i Task Module::Install Module::AutoInstall followed by perl Makefile.PL && make && make test && make DESTDIR=/wrk/OS/ARCH/... install; with something like:

use inc::Module::Install; include 'Module::AutoInstall'; requires 'DateTime' => 0; requires 'Task::Moose' => 0; requires 'Log::Log4perl' => 0; # ... auto_install(); WriteAll;
(all with proper settings of PATH, PERL5LIB, DESTDIR and friends).

One major question: Is Module::Install a fair solution, or do you recommend other modules or ways of doing this?

I'm looking for hints/ideas and experiences, as I can find no "best-practices" nor any "HOWTO" on this topic.

Any constructive feed-back (and some of the destructive too) will be very appreciated!


In reply to Automatic packaging of multiple perl-modules in a major bundle by poulhs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.