Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to patch standard modules from CPAN on Linux etc?

by JavaFan (Canon)
on Oct 24, 2008 at 15:11 UTC ( [id://719358]=note: print w/replies, xml ) Need Help??


in reply to How to patch standard modules from CPAN on Linux etc?

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.

  • Comment on Re: How to patch standard modules from CPAN on Linux etc?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://719358]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2025-03-24 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (65 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.