Re: [gentoo-user] Cleaning up perl
Am Samstag, 8. September 2007 schrieb Kevin O'Gorman: On 9/8/07, Dirk Heinrichs [EMAIL PROTECTED] 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 signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Cleaning up perl
On 9/9/07, Dirk Heinrichs [EMAIL PROTECTED] wrote: Am Samstag, 8. September 2007 schrieb Kevin O'Gorman: On 9/8/07, Dirk Heinrichs [EMAIL PROTECTED] 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. H. 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
Re: [gentoo-user] Cleaning up perl
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 signature.asc Description: This is a digitally signed message part.
[gentoo-user] Cleaning up perl
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
Re: [gentoo-user] Cleaning up perl
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 -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Cleaning up perl
On 9/8/07, Mike Williams [EMAIL PROTECTED] 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
Re: [gentoo-user] Cleaning up perl
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 signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Cleaning up perl
On 9/8/07, Dirk Heinrichs [EMAIL PROTECTED] 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