On Fri, 13 Dec 2002, Stas Bekman wrote:
> Kyle Oppenheim wrote:
> >>The build: currently we only warn about using 5.6.0 and
> >>suggest to move to 5.6.1 at least. Though I doubt that
> >>anybody sees that warning, as it gets swept away by
> >>compiler's noise. I was suggesting before to move this note's
> >>printing to the very end (or repeat twice?), so user will
> >>notice it. Once we think it's prominent enough I suppose that
> >>we can suggest to build with 5.8.0 for threaded mpms.
> >
> > If you are afraid people won't see it, you could just force
> > them to acknowledge the warning. Print an error; fail
> > immediately; and prompt the user that they can workaround by
> > specifying an additional argument to Makefile.PL or configure
> > (e.g. --ignore_perl_version).
>
> Your idea is good. Though it can cause a problem with
> unattended CPAN builds. We will see how it goes and add
> enforcements if we really need to later as we get closer to a
> release date.
How about, in the meantime, taking your suggestion and
repeating the warning twice, as in
==========================================================
Index: Makefile.PL
===================================================================
RCS file: /home/cvspublic/modperl-2.0/Makefile.PL,v
retrieving revision 1.87
diff -u -r1.87 Makefile.PL
--- Makefile.PL 29 Jun 2002 19:44:04 -0000 1.87
+++ Makefile.PL 14 Dec 2002 17:43:34 -0000
@@ -226,6 +226,7 @@
"- or 'use Apache2 ();' in a startup script";
}
+ perl_version_check();
$build->save;
}
@@ -305,6 +306,11 @@
error "5.7.x development versions of Perl are no longer supported\n" .
"Upgrade to 5.8.0 or higher";
exit 1;
+ }
+
+ if (WIN32 and $] < 5.008) {
+ error "You are running a Perl version 5.6.x\n" .
+ "We strongly suggest you upgrade to 5.8\n";
}
}
================================================================
(perl_version_check() should be called at the beginning of the
build also, as if one is using a 5.7 Perl, it exits immediately).
I also added a warning about using 5.6.x on Win32 specifically,
as from previous posts, this combination seems particularly
troublesome. I'll also update the Win32 docs to reflect this.
--
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]