in reply to Re (tilly) 3: Stopping CPAN from upgrading Perl
in thread Stopping CPAN from upgrading Perl

Thanks for the added info. Some clarification...

The original complaint in this thread is from someone who has Perl 5.6.0 not 5.005_03. So the patch came after 5.6.0 and it is 5.6.1 that will come with a fixed CPAN.pm?

I think 5.6.0 existed for a very long time during much of which I ignored its existance and that is a major problem with my recall of the timeline.

Also, I recall another reason that CPAN.pm would decide to upgrade Perl was that the newest version of the module being requested is the one shipped with Perl (vs. that the module listed Perl vX.Y.Z as a dependancy). That is the piece that I'm worried was rebroken.

So I'm still a little curious if this has really been fixed. So it would really be nice if the original noder would let us know if upgrading CPAN fixed the problem. I think I'll /msg them... (:

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re2: Stopping CPAN from upgrading Perl

Replies are listed 'Best First'.
Re: (tye)Re2: Stopping CPAN from upgrading Perl
by bikeNomad (Priest) on Jul 19, 2001 at 07:03 UTC
    I just installed 5.005_03 for testing. It came with an earlier version of CPAN, of course. I tried to update a few modules, and they kept trying to install Perl 5.6.1. Then I updated to v1.59, and am now getting messages like:

    cpan> install Cwd Running install for module Cwd Running make for G/GS/GSAR/perl-5.6.0.tar.gz The most recent version "2.02" of the module "Cwd" comes with the current version of perl (5.6.0). I'll build that only if you ask for something like force install Cwd or install G/GS/GSAR/perl-5.6.0.tar.gz
Re (tilly) 5: Stopping CPAN from upgrading Perl
by tilly (Archbishop) on Jul 19, 2001 at 15:15 UTC
    Yes. The need for CPAN to not upgrade was realized after 5.6.0 was released, so both 5.005_03 and 5.6.0 are buggy.

    But 5.6.1 should have the correct version.

    To see if you do you can try "perldoc -m CPAN" and look for the word, "isaperl". If you find it, then you have the test.

    And in answer to another person's note, the correct way to handle it is to first upgrade just CPAN (which does not have any forward dependencies but does have the fix) and not Bundle::CPAN (which includes packages with forward dependencies). Once that is upgraded, you can upgrade more packages at will.

Re: (tye)Re2: Stopping CPAN from upgrading Perl
by rchiav (Deacon) on Jul 19, 2001 at 13:41 UTC
    Just to add a little more.. What I expierenced going from 5.6 to 5.6.1 was that when I ran CPAN, I was prompted to upgrade CPAN.pm. But, the instructions read that you can do this by upgrading Bundle::CPAN. Now upon upgrading Bundle::CPAN, I come back to see that it's installing 5.6.1. I mentioned this in the CB and I belive it was Tilly that said that just upgrading CPAN.pm would not do it, but upgrading the Bundle would. He also mentioned that there was a previous problem with just CPAN.pm. Anyway, it's probably nbot worth much, but that was my expierence.