comp.lang.perl.modules-when_upgrading_perl_do_you_need_to_recompile_or_reinstall_modules

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



From: Iain Truskett <ict@eh.org>
Subject: Re: perl and modules
Newsgroups: comp.lang.perl.modules
Date: 3 Oct 2003 22:53:23 +1000
Organization: None.

* Tulan W. Hu <twhu@lucent.com>:
>  Do I need to rebuild all the perl modules after I
>  upgrade my perl to a newer version?

It's usually best to. In most cases it's necessary.
It should be immediately obvious when you try to
use any of said modules.

===

From: "Tulan W. Hu" <twhu@lucent.com>
Subject: Re: perl and modules
Newsgroups: comp.lang.perl.modules
Date: Fri, 3 Oct 2003 09:52:37 -0400
Organization: Lucent Technologies

"Eric J. Roode" <REMOVEsdnCAPS@comcast.net> >
> > Do I need to rebuild all the perl modules after I
> > upgrade my perl to a newer version?
> >
> > Thanks for answering my question in advance.
>
> Sorry I couldn't answer it in advance.  ;-)
>
> Usually, you need to rebuild any binary modules (ie, modules that need to
> be compiled with a C compiler), because most Perl releases aren't binary-
> compatible with previous versions.  (I hear, however, that 5.8.1 is b-c
> with 5.8.0).
>
> For pure-perl modules, there is an option during the configure phase where
> you can tell the build process to retain directories from earlier perl
> versions in the new version's @INC, so those modules don't necessarily
need
> to be reinstalled.

I understand that if I upgrade perl from 5.6 to 5.8, then I need to rebuild
the
modules and put them to the new @INC. I have built the modules for the
perl 5.8.1-rc4, and now I'm having the released 5.8.1. Do I still need to
rebuild the modules?
I thought that even the binary modules should be ok because I'm using the
same version of gcc and all library locations are the same too. The command
"perl Makefile.PL" just create the Makefile for me with correct the build
flags. I have tried a couple of modules, but it does not seem the rebuild
process makes any difference.


===
From: Walt Mankowski <waltman@pobox.com>
Subject: Re: perl and modules
Newsgroups: comp.lang.perl.modules
Date: Fri, 3 Oct 2003 16:15:59 -0400
Reply-To: waltman@pobox.com
Organization: Voicenet Communications

In article <bljv0l$aeb@netnews.proxy.lucent.com>, Tulan W. Hu wrote:
> I understand that if I upgrade perl from 5.6 to 5.8, then I need to rebuild
> the
> modules and put them to the new @INC. I have built the modules for the
> perl 5.8.1-rc4, and now I'm having the released 5.8.1. Do I still need to
> rebuild the modules?
> I thought that even the binary modules should be ok because I'm using the
> same version of gcc and all library locations are the same too. The command
> "perl Makefile.PL" just create the Makefile for me with correct the build
> flags. I have tried a couple of modules, but it does not seem the rebuild
> process makes any difference.

5.8.0 and 5.8.1 are binary-compatible with each other, so if that was
your upgrade path you'd be fine.  Since they didn't change anything
in 5.8.1, it's highly unlikely there'd be anything different in one of
the release candidates.

I'd recommend not rebuilding them by default and running some tests with
the official 5.8.1 and the modules you built with rc4.  If everything's
fine, then you don't need to rebuild them.

Walt

===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu