Perm has asked for the wisdom of the Perl Monks concerning the following question:
In retrospect, it is not surprising the that 'yum update perl\*' replaced modules we upgraded or installed in /usr/lib/perl5/5.8.8. I would like to be able to patch without changing the modules our developers use.
Is installing modules in site_perl by setting installdir=site sufficient protection or are there module elements that will still be clobbered by Red Hat? Using site_perl keeps the modules in the default @INC path.
I am testing installing modules we use in /usr/lib/perl5/site_perl/5.8 +.8 and leaving everything in /usr/lib/perl5/5.8.8 unchanged. This tes +t looks good to me. cpan> get PHRED/Apache-DBI-1.10.tar.gz [...] cpan> make PHRED/Apache-DBI-1.10.tar.gz [...] cpan> test PHRED/Apache-DBI-1.10.tar.gz [...] cpan> install PHRED/Apache-DBI-1.10.tar.gz [...] Installing /usr/lib/perl5/site_perl/5.8.8/Apache/AuthDBI.pm Installing /usr/lib/perl5/site_perl/5.8.8/Apache/DBI.pm Installing /usr/share/man/man3/Apache::DBI.3pm Installing /usr/share/man/man3/Apache::AuthDBI.3pm Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thr +ead-multi/perllocal.pod PHRED/Apache-DBI-1.10.tar.gz /usr/bin/make install INSTALLDIRS=site -- OK
Is there an automated way to get the source files of the installed modules?
I need to preserve the module version so I don't confound development debugging with module changes. The only way I know to maintain the version is to get/make/test/install the source file for the currently installed version. Install autobundle updates the module.
cpan> get PHRED/Apache-DBI-1.10.tar.gz
Cpan shell settings.
o conf make_install_arg INSTALLDIRS=site o conf mbuild_install_arg --installdirs=site o conf commit
Developers' Requirements
Perl patches do not break the perl modules we use.
The modules versions do not change while fixing the problem, e.g., ins +talling them in site_perl.
We are running the same version of perl, 5.8.8, after the fix.
No perl applications need to be modified, i.e., everything can be foun +d in the default paths.
No changes to the programming environment are required.
Environment RHEL 5.6-5.8. Linux 2.6.18-308.el5 x86_64 x86_64 x86_64 GNU/Linux perl, v5.8.8 built for x86_64-linux-thread-multi
root# yum list installed perl\* Loaded plugins: downloadonly, rhnplugin, security, verify Installed Packages perl.x86_64 4:5.8.8-32.el5_5.2 perl-BSD-Resource.x86_64 1.28-1.fc6.1 perl-Compress-Zlib.x86_64 1.42-1.fc6 perl-Convert-ASN1.noarch 0.20-1.1 perl-DBD-MySQL.x86_64 3.0007-2.el5 perl-DBI.x86_64 1.52-2.el5 perl-HTML-Parser.x86_64 3.55-1.fc6 perl-HTML-Tagset.noarch 3.10-2.1.1 perl-IO-Socket-SSL.noarch 1.01-1.fc6 perl-LDAP.noarch 1:0.33-3.fc6 perl-Net-SSLeay.x86_64 1.30-4.fc6 perl-SGMLSpm.noarch 1.03ii-16.2.1 perl-String-CRC32.x86_64 1.4-2.fc6 perl-TermReadKey.x86_64 2.30-4.el5 perl-URI.noarch 1.35-3 perl-XML-NamespaceSupport.noarch 1.09-1.2.1 perl-XML-Parser.x86_64 2.34-6.1.2.2.1 perl-XML-SAX.noarch 0.14-8 perl-libwww-perl.noarch 5.805-1.1.1 perl-libxml-perl.noarch 0.08-1.2.1
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I keep Red Hat perl RPM updates from damaging our local module upgrades and installations?
by Eliya (Vicar) on Mar 14, 2012 at 19:09 UTC | |
by chrestomanci (Priest) on Mar 15, 2012 at 10:41 UTC | |
by Perm (Initiate) on Mar 15, 2012 at 14:36 UTC | |
Re: How do I keep Red Hat perl RPM updates from damaging our local module upgrades and installations?
by Anonymous Monk on Mar 14, 2012 at 19:13 UTC | |
Re: How do I keep Red Hat perl RPM updates from damaging our local module upgrades and installations?
by trwww (Priest) on Mar 15, 2012 at 06:39 UTC |