* [gentoo-user] Cleaning up perl
@ 2007-09-08 15:13 Kevin O'Gorman
2007-09-08 15:58 ` Mike Williams
0 siblings, 1 reply; 8+ messages in thread
From: Kevin O'Gorman @ 2007-09-08 15:13 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 447 bytes --]
I've found myself in a mess with perl (see other thread). In the process I
discovered what appears to be a bunch of old versions of perl-related
things. In /usr/lib/perl5, there are subdirectories over 4 years old.
Here's the complete list
5.8.2 5.8.4 5.8.5 5.8.6 5.8.7 5.8.8 site_perl vendor_perl
The current perl version is 5.8.8. The versions 5.8.2 and 5.8.4 date from
2004.
Can I safely just delete them?
--
Kevin O'Gorman, PhD
[-- Attachment #2: Type: text/html, Size: 560 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Cleaning up perl
2007-09-08 15:13 [gentoo-user] Cleaning up perl Kevin O'Gorman
@ 2007-09-08 15:58 ` Mike Williams
2007-09-08 16:45 ` Kevin O'Gorman
0 siblings, 1 reply; 8+ messages in thread
From: Mike Williams @ 2007-09-08 15:58 UTC (permalink / raw
To: gentoo-user
On Saturday 08 September 2007 16:13:41 Kevin O'Gorman wrote:
> Can I safely just delete them?
Not really.
But gentoo provides a tool to sort it.
# perl-cleaner reallyall
--
Mike Williams
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Cleaning up perl
2007-09-08 15:58 ` Mike Williams
@ 2007-09-08 16:45 ` Kevin O'Gorman
2007-09-08 16:59 ` Dirk Heinrichs
0 siblings, 1 reply; 8+ messages in thread
From: Kevin O'Gorman @ 2007-09-08 16:45 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
On 9/8/07, Mike Williams <mike@gaima.co.uk> wrote:
>
> On Saturday 08 September 2007 16:13:41 Kevin O'Gorman wrote:
> > Can I safely just delete them?
>
> Not really.
> But gentoo provides a tool to sort it.
>
> # perl-cleaner reallyall
>
> --
> Mike William
Interesting. I did not know about this cleaner.
Unfortunately, while it tries to do a number of things, they all fail in the
same way: a problem with Errno.pm.
I guess using perl to clean up perl is not all that robust in this case.
++ kevin
--
Kevin O'Gorman, PhD
[-- Attachment #2: Type: text/html, Size: 913 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Cleaning up perl
2007-09-08 16:45 ` Kevin O'Gorman
@ 2007-09-08 16:59 ` Dirk Heinrichs
2007-09-08 20:22 ` Kevin O'Gorman
0 siblings, 1 reply; 8+ messages in thread
From: Dirk Heinrichs @ 2007-09-08 16:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
Am Samstag, 8. September 2007 schrieb Kevin O'Gorman:
> Unfortunately, while it tries to do a number of things, they all fail in
> the same way: a problem with Errno.pm.
> I guess using perl to clean up perl is not all that robust in this case.
I still prefer good old cpan over gentoo' g-cpan to mainatain perl modules.
Before upgrading perl, fire up cpan, create a bundle file of all your
installed modules using the autobundle command and after the upgrade, start
cpan again and run "install Bundle::Snapshot-<date>".
I also use it to keep installed perl modules uptodate. Just use the "upgrade"
command in cpan.
If you did this, you can simply remove the old 5.8.x directories.
HTH...
Dirk
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Cleaning up perl
2007-09-08 16:59 ` Dirk Heinrichs
@ 2007-09-08 20:22 ` Kevin O'Gorman
2007-09-09 7:35 ` Dirk Heinrichs
0 siblings, 1 reply; 8+ messages in thread
From: Kevin O'Gorman @ 2007-09-08 20:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]
On 9/8/07, Dirk Heinrichs <dirk.heinrichs@online.de> wrote:
>
> Am Samstag, 8. September 2007 schrieb Kevin O'Gorman:
>
> > Unfortunately, while it tries to do a number of things, they all fail in
> > the same way: a problem with Errno.pm.
> > I guess using perl to clean up perl is not all that robust in this case.
>
> I still prefer good old cpan over gentoo' g-cpan to mainatain perl
> modules.
>
> Before upgrading perl, fire up cpan, create a bundle file of all your
> installed modules using the autobundle command and after the upgrade,
> start
> cpan again and run "install Bundle::Snapshot-<date>".
>
> I also use it to keep installed perl modules uptodate. Just use the
> "upgrade"
> command in cpan.
>
> If you did this, you can simply remove the old 5.8.x directories.
>
> HTH...
>
> Dirk
It's too late for me now to do any of that. I'm hosed.
I can build perl, but I cannot run perl-cleaner. I can't run h2ph. There
are probably
a bunch of other things I can't do also.
Accordingly, I'm renaming the offending Errno.pm, knowing that there's
another more
recent one around. I'm hoping that it's located by @INC or some such.
At the moment, it seems to be working.
++ kevin
--
Kevin O'Gorman, PhD
[-- Attachment #2: Type: text/html, Size: 1795 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Cleaning up perl
2007-09-08 20:22 ` Kevin O'Gorman
@ 2007-09-09 7:35 ` Dirk Heinrichs
2007-09-09 14:55 ` Kevin O'Gorman
0 siblings, 1 reply; 8+ messages in thread
From: Dirk Heinrichs @ 2007-09-09 7:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]
Am Samstag, 8. September 2007 schrieb Kevin O'Gorman:
> On 9/8/07, Dirk Heinrichs <dirk.heinrichs@online.de> wrote:
> > Am Samstag, 8. September 2007 schrieb Kevin O'Gorman:
> > > Unfortunately, while it tries to do a number of things, they all fail
> > > in the same way: a problem with Errno.pm.
> > > I guess using perl to clean up perl is not all that robust in this
> > > case.
> >
> > I still prefer good old cpan over gentoo' g-cpan to mainatain perl
> > modules.
> >
> > Before upgrading perl, fire up cpan, create a bundle file of all your
> > installed modules using the autobundle command and after the upgrade,
> > start
> > cpan again and run "install Bundle::Snapshot-<date>".
> >
> > I also use it to keep installed perl modules uptodate. Just use the
> > "upgrade"
> > command in cpan.
> >
> > If you did this, you can simply remove the old 5.8.x directories.
>
> It's too late for me now to do any of that.
No, not really. You only need perl to run cpan.
> I can build perl, but I cannot run perl-cleaner.
You don't need to. Remove the old 5.8.x directories and install the modules
you had installed there again (if needed), using cpan this time. You can find
out which packages were installed by searching for files named ".packlist".
Each directory which contains such a file corresponds to one perl module.
Eventually re-emerge perl after removal of the old directories. This should
clean up your perl installation.
HTH...
Dirk
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Cleaning up perl
2007-09-09 7:35 ` Dirk Heinrichs
@ 2007-09-09 14:55 ` Kevin O'Gorman
2007-09-09 15:20 ` Dirk Heinrichs
0 siblings, 1 reply; 8+ messages in thread
From: Kevin O'Gorman @ 2007-09-09 14:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2553 bytes --]
On 9/9/07, Dirk Heinrichs <dirk.heinrichs@online.de> wrote:
>
> Am Samstag, 8. September 2007 schrieb Kevin O'Gorman:
> > On 9/8/07, Dirk Heinrichs <dirk.heinrichs@online.de> wrote:
> > > Am Samstag, 8. September 2007 schrieb Kevin O'Gorman:
> > > > Unfortunately, while it tries to do a number of things, they all
> fail
> > > > in the same way: a problem with Errno.pm.
> > > > I guess using perl to clean up perl is not all that robust in this
> > > > case.
> > >
> > > I still prefer good old cpan over gentoo' g-cpan to mainatain perl
> > > modules.
> > >
> > > Before upgrading perl, fire up cpan, create a bundle file of all your
> > > installed modules using the autobundle command and after the upgrade,
> > > start
> > > cpan again and run "install Bundle::Snapshot-<date>".
> > >
> > > I also use it to keep installed perl modules uptodate. Just use the
> > > "upgrade"
> > > command in cpan.
> > >
> > > If you did this, you can simply remove the old 5.8.x directories.
> >
> > It's too late for me now to do any of that.
>
> No, not really. You only need perl to run cpan.
>
> > I can build perl, but I cannot run perl-cleaner.
>
> You don't need to. Remove the old 5.8.x directories and install the
> modules
> you had installed there again (if needed), using cpan this time. You can
> find
> out which packages were installed by searching for files named
> ".packlist".
> Each directory which contains such a file corresponds to one perl module.
>
> Eventually re-emerge perl after removal of the old directories. This
> should
> clean up your perl installation.
>
> HTH...
>
> Dirk
I eventually got most things back by removing the site-perl version of
Errno.pm (installed by CPAN sometime in the past, I think.) There was
another, more recent version which was apparently found automatically,
allowing things to proceed. I have also removed a bunch of other things
that were in site-perl, especially everything I could replace with a version
from portage.
I have now been able to run 'perl-cleaner reallyall', and have rebuilt perl
both with and without the ithreads USE-flag (see separate thread). So I
suppose I'm now in good shape. CPAN also works, though I'm a bit reluctant
to use it since that's how I got in this mess in the first place. I'd
rather rely on portage to keep things current and consistent. Hmmmm.
Does anyone know how to run CPAN in a cron job, just enough to run the 'r'
command? I do that with portage to tell me when I have to worry about
revdep or depclean.
++ kevin
--
Kevin O'Gorman, PhD
[-- Attachment #2: Type: text/html, Size: 3328 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Cleaning up perl
2007-09-09 14:55 ` Kevin O'Gorman
@ 2007-09-09 15:20 ` Dirk Heinrichs
0 siblings, 0 replies; 8+ messages in thread
From: Dirk Heinrichs @ 2007-09-09 15:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 422 bytes --]
Am Sonntag, 9. September 2007 schrieb Kevin O'Gorman:
> Does anyone know how to run CPAN in a cron job, just enough to run the 'r'
> command?
CPAN is not just an interactive program, but also a normal perl module which
you can use in your on scripts. So you could write a perl script and let
it "use CPAN" so that it can do any CPAN operation you want. See "perldoc
CPAN" for the details.
HTH...
Dirk
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-09-09 15:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-08 15:13 [gentoo-user] Cleaning up perl Kevin O'Gorman
2007-09-08 15:58 ` Mike Williams
2007-09-08 16:45 ` Kevin O'Gorman
2007-09-08 16:59 ` Dirk Heinrichs
2007-09-08 20:22 ` Kevin O'Gorman
2007-09-09 7:35 ` Dirk Heinrichs
2007-09-09 14:55 ` Kevin O'Gorman
2007-09-09 15:20 ` Dirk Heinrichs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox