There's too little information to give a good answer; it depends on lot on what your environment is, where you need to distribute your changes to, and how those environments look like.

I've worked in environments where we used yum to install RPM packages system wide. RPM is a format that not only can be deployed on Redhat but also on other (Unix) platforms. You might even want to use a tool like http://www.cfengine.org/ cfengine to automate distribution. (I'm not the biggest fan of cfengine, but that probably has more to do with inherited bad setups than with the tool itself).

For modules that need local patches, we'd start with the source RPMs (SRPM). Then we modify the spec file to first run a set of patches before building the RPMs. Those RPMs would end up in the yum repository. This separates the original code from your patches, so if a new release comes (and you still need your local patch), and you want to use the new release, deployment is "relatively" easy. Now I say relative - I've also worked for a company where we compiled the Linux kernel ourselves -- after running 350 patches. But we also used a similar setup: keep the Linux kernel source unmodified, have a directory of patches, and let the spec file apply the patches before compiling.


In reply to Re: How to patch standard modules from CPAN on Linux etc? by JavaFan
in thread How to patch standard modules from CPAN on Linux etc? by BerntB

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.