1 |
On Wednesday 21 July 2010 20:33:42 Nikos Chantziaras wrote: |
2 |
> On 07/21/2010 08:34 PM, Willie Wong wrote: |
3 |
> > On Wed, Jul 21, 2010 at 08:04:54PM +0300, Nikos Chantziaras wrote: |
4 |
> >> Portage recently updated Perl from 5.10.1 to 5.12.1 (and later -r1). |
5 |
> >> However, a crapload of files still remain in |
6 |
> >> /usr/lib/perl5/{site_perl,vendor_perl}/5.10.1. I found out the hard way |
7 |
> >> after trying to emerge openoffice (and everyone knows how painful that |
8 |
> >> one is): |
9 |
> >> |
10 |
> >> What is the user required to do after updating Perl? elogv doesn't tell |
11 |
> >> me anything about upgrading. |
12 |
> > |
13 |
> > There's this neat little script called perl-cleaner |
14 |
> > |
15 |
> > http://www.gentoo.org/proj/en/perl/perl-cleaner.xml |
16 |
> |
17 |
> Thanks. How do I call the script? I don't have any idea what perl |
18 |
> modules or ph files are (or why I need them). What do I need to do? |
19 |
|
20 |
Short version: |
21 |
You run |
22 |
|
23 |
perl-cleaner --modules |
24 |
|
25 |
and it just does it. |
26 |
|
27 |
Long version: |
28 |
perl comes out the box as an interpreter and some base functionality. The |
29 |
community provides a brazillion useful modules for all sort of things. Like eg |
30 |
Date. Need to do some Date manipulation? No need to write the disgusting code |
31 |
yourself to work with Dates, someone else already did it. Just install a |
32 |
module. |
33 |
|
34 |
The trouble is that modules are often written in perl itself and closely tied |
35 |
to the version of perl used. If you upgrade perl, you must also rebuild all |
36 |
the modules tied to it, they don't just migrate. |
37 |
|
38 |
This is a painful process. It's enough to drive a sysadmin to drink or (god |
39 |
forbid), to Windows. Portage can't help as the ebuild doesn't know what you |
40 |
have installed. So you must run a script to go and dig out all this crap for |
41 |
you. |
42 |
|
43 |
All I can say is, every day I get down on my knees and offer thanks that perl |
44 |
is not slotted. |
45 |
|
46 |
|
47 |
|
48 |
-- |
49 |
alan dot mckinnon at gmail dot com |