I'm looking for advice on how to make a clean install and upgrade procedure that gives good control over the perl and non-perl dependencies (mostly java jar files). This is not a project for wide distribution - the number of platforms and environments are quite limited. It will need to install onto Solaris and Linux, non-root.

Plenty of other projects use these boxes, so we want to keep our project as isolated as possible. The company preferred procedure for installations and upgrades/downgrades is to make a change request which consists of a su project-user; cd project-dir; cvs up -r tag. (We actually develop with subversion, but export to cvs to satisfy this).

It is a Catalyst/DBIC project. Catalyst currently uses Module::Install. So one obvious route is to let it do the work. However you lose a degree of control over the versions of CPAN modules, I'm not sure how non-perl dependencies are handled, and I don't really want our project to be installed alongside its dependencies in the same lib tree. The change request would have the additional steps make; make test; [abort on error]; make install. Installing just Catalyst non-root causes enough grief for it to be a regular topic on the mailing list. And I compared the module versions of installed dependencies on two of our environments (using Module::ScanDeps) and felt a bit ill seeing the large number of differences.

A second option is to store the dependencies in the repository. It is bloated, but would give excellent control. To install an XS module, you'd need to build and install it into the working copy on both target environments and commit. Then rely on the /$archname/ portion of the perl libs to do the right thing. I can see it isn't appropriate for a distribution that would need to install on many different platforms, but that isn't the case here.

What has people's experience been? Are there other options I'm not seeing?


In reply to Dependencies in the repository? by qq

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.