Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

cpan and older perls

by bageler (Hermit)
on Jun 16, 2005 at 15:17 UTC ( [id://467310]=perlmeditation: print w/replies, xml ) Need Help??

So, I'm going to install a CPAN module onto my web cluster that still runs 5.005_03. It says there's a prereq of Test::More. Which then needs File::Spec and Test::Harness and on and on and on and eventually it starts downloading perl-5.8.7. Unacceptable!!! I fetch the same file manually, run perl Makefile.PL, make, make test, make install, and everything works without a hitch. What's the big deal here? Trying to force folks that are stuck in the last decade to upgrade, for no reason at all (obviously, since even tests pass 100% without those so-called required modules) is absurd. I wish a little more thought was put into this stuff, since not everyone has the latest perl, and most everything works without it.

Replies are listed 'Best First'.
Re: cpan and older perls
by ysth (Canon) on Jun 16, 2005 at 15:32 UTC
    May I suggest you update CPAN (the module) to a version that doesn't have the bug of trying to upgrade perl itself?

    Also, you may get better help if you say what module it is that you are trying to install.

      Thank you!

      I've run in to this problem myself on an older Mac that shipped with 5.6. I tried to install LWP and went down a twisty rabbit hole that led to trying to install Perl 5.8.7. For some reason it didn't occur to me to try upgrading CPAN first. (Silly of me in retrospect, but...).

      Oops... maybe not.

      Trying to upgrade CPAN also sends me down a dependency chain that leads to trying to upgrade Perl.

      /me is not amused.

        Yuck; do you know what the dependency chain that caused that was?

        Did you try upgrading CPAN not using CPAN (i.e. with perl Makefile.PL; make test install)?

Re: cpan and older perls
by grinder (Bishop) on Jun 16, 2005 at 16:51 UTC

    It's a tricky situation. Test::Simple and Test::More are very nice to work with, and once you've become familiar with them, and the other test modules that just slot right in, it's hard to go past them.

    If I remember correctly (update: no, I remembered incorrectly, as pointed out below), T::S and T::M rely on low-level stuff that was added as of 5.6.0. Backporting them back to even earlier versions would require adding a certain amount of machinery to 5.005, and development efforts on 5.005 are all but dead. Leon Brocard recently released a new patchlevel (5.005_04) in the unique goal of allowing the codebase to continue compile correctly on newer, fussier compilers.

    That is, even if you were to endeavour to install T::M on 5.005, I'm not even sure you could succeed.

    As long as you create your own tests with the venerable Test module, you'll be fine. That is, test the functionality you want to verify in the module you're upgrading. When you're satisfied with it, send it off to the author as a patch, explaining that it will be useful for other people still running perls from the previous millenium.

    - another intruder with the mooring in the heart of the Perl

      I have Test::More installed on Perl 5.005_03. I don't recall any spectacular problems with the install.
Re: cpan and older perls
by gellyfish (Monsignor) on Jun 16, 2005 at 15:34 UTC

    I'm sure if you were to offer to maintain all the dependencies that have only a life in the core and existed after your version and place them on CPAN and ensure that they were compatible with your chosen version of Perl then everyone would be more than happy. This is after all Open Source, if you want something that nobody else has interest in supporting then it's down to you. Moaning on web forums gets you nowhere, offers of action speak very loud.

    /J\

Re: cpan and older perls
by DrHyde (Prior) on Jun 17, 2005 at 09:03 UTC
    Did I hear you volunteering to test all of my modules for me on your ancient version of perl and let me know which ones work so that I can update their dependencies? Thankyou! I look forward to receiving your results shortly.
Re: cpan and older perls
by bageler (Hermit) on Jun 16, 2005 at 17:58 UTC
    When I build manually, there's no issues with not having those modules installed. However, the build process for certain modules says that they are required. That is the problem I have, is pseudo-dependencies that wind up trying to upgrade my perl. I suggest that people take more care when building their packages and ask if the modules really are required. As I said, `make test` works fine regardless.
      As is mentioned above, I believe this is an issue with some versions of the CPAN module that shipped with earlier perls. If you upgrade CPAN, I think you'll find that it doesn't try to force you into a full perl upgrade.

      When you go to upgrade your CPAN module, you can't do it from the CPAN shell because it will send you down the same rabbit hole--during the CPAN upgrade of itself, it will try to upgrade perl.

      If you run the CPAN upgrade the old fashioned way (make, make test, make install), you should then be able to use the shell as before and not have it upgrade perl. The most recent CPAN will look at the newest version of a module and if it requires a newer perl, it will just bark and say it won't install without force. This is much nicer.

        thanks, I'll see if a manual CPAN upgrade does the trick.
Re: cpan and older perls
by ghenry (Vicar) on Jun 16, 2005 at 15:25 UTC

    What do you suggest be done?

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!
Re: cpan and older perls
by Anonymous Monk on Jun 17, 2005 at 01:04 UTC
    Does cpan force you to install prereq?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://467310]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-25 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found