in reply to Smooth perl upgrades
(or something) Then the active perl is created with a symlink/usr/site/perl-5.8.0
Finally, individual binaries are linked in /usr/local/bin/usr/site/perl -> perl-5.8.0
Now if I want to create a new perl, I build it in a standalone environment./usr/local/bin/perl -> /usr/site/perl/bin/perl
Anyone that wants to can simply try this version out by using a /usr/site/perl-5.8.2/bin/perl in their program. When the time comes, we announce that the active version will change. Anyone that needs to use it can add an explicit version to their script. Then we activate it./usr/site/perl-5.8.2
Most of the time, there's no additions/subtractions required for the links in /usr/local/bin. More work on the front end (especially the links into /usr/local/{bin,lib,..}), but very handy later. Now most scripts simply make use of the new code, while those with other requirements can easily use the old one.rm /usr/site/perl ln -s perl-5.8.2 /usr/site/perl
In the past I've tried sharing modules between versions, but I've generally found it easier to simply rebuild all the modules for the new version. Costs a little diskspace.
|
|---|