You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2003/08/07 00:00:59 UTC
Re: cvs commit: modperl-2.0 Makefile.PL Changes
stas@apache.org wrote:
> stas 2003/08/06 14:59:04
>
> Modified: . Makefile.PL Changes
> Log:
> - now requiring 5.8.x/ithreads for threaded mpms (now doing the check
> against the mpm, rather than OS name)
can someone on win32 check that I didn't break anything? I've replaced the
check of WIN32 with an explicit check of the mpm name, however remembering
that apxs is not working for win32, I most likely did break it.
Perhaps we should write a wrapper for apxs_mpm_name and hardcode 'winnt' if on
win32, otherwise do the lookup.
> Revision Changes Path
> 1.110 +13 -6 modperl-2.0/Makefile.PL
>
> Index: Makefile.PL
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/Makefile.PL,v
> retrieving revision 1.109
> retrieving revision 1.110
> diff -u -r1.109 -r1.110
> --- Makefile.PL 6 Aug 2003 21:40:04 -0000 1.109
> +++ Makefile.PL 6 Aug 2003 21:59:03 -0000 1.110
> @@ -41,9 +41,10 @@
>
> our $VERSION;
>
> -perl_version_check();
> -
> my $build = Apache::Build->new(init => 1);
> +
> +perl_version_check($build);
> +
> my $code = ModPerl::Code->new;
>
> configure();
> @@ -316,15 +317,21 @@
> }
>
> sub perl_version_check {
> + my $build = shift;
>
> - if (Apache::Build::REQUIRE_ITHREADS()) {
> + # the following mpms require threaded perl (== 5.8.0/ithreads+)
> + my %threaded_mpms = map { $_ => 1}
> + qw(worker winnt beos mpmt_os2 netware leader
> + perchild threadpool);
> + my $mpm = $build->apxs(-q => 'MPM_NAME') || 'unknown' ;
> + if ($threaded_mpms{$mpm}) {
> unless (Apache::Build::HAS_ITHREADS()) {
> - die "your system requires an ithreads enabled Perl";
> + die "this httpd ($mpm mpm) requires Perl w/ ithreads enabled\n";
> }
> # 5.6.x ithreads aren't good
> unless ($] >= 5.008) {
> - die "Perl 5.8 or higher w/ ithreads is required. " .
> - "This is only Perl $]";
> + die "Perl 5.8 or higher w/ ithreads enabled is required. " .
> + "This is only Perl $]\n";
> }
> }
>
>
>
>
> 1.203 +3 -0 modperl-2.0/Changes
>
> Index: Changes
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/Changes,v
> retrieving revision 1.202
> retrieving revision 1.203
> diff -u -r1.202 -r1.203
> --- Changes 6 Aug 2003 06:46:35 -0000 1.202
> +++ Changes 6 Aug 2003 21:59:03 -0000 1.203
> @@ -12,6 +12,9 @@
>
> =item 1.99_10-dev
>
> +mod_perl now refuses to build against threaded mpms (non-prefork)
> +unless perl 5.8+ w/ithreads is used [Stas]
> +
> don't try to read PERL_HASH_SEED env var, where apr_env_get is not
> available (apr < 0.9.3) [Stas]
>
>
>
>
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: cvs commit: modperl-2.0 Makefile.PL Changes
Posted by Stas Bekman <st...@stason.org>.
Randy Kobes wrote:
> On Wed, 6 Aug 2003, Stas Bekman wrote:
>
>
>>We should get the cvs version ready for a release, since
>>once perl-5.8.1 is released we must release mp 1.99_10,
>>1.99_09 won't work with 5.8.1. Hopefully this won't happen
>>this week. But it seems like Jarkko wants to release it
>>any moment now.
>>
>>
>>>But harcoding 'winnt' in
>>>some fashion probably would be required.
>>
>>This probably will be easy, since winnt == MSWin32.
>
>
> If a 5.8.1 release does seem pressing, perhaps Steve Hay
> could test that out, if I'm not back.
I'll ask him if we get pressed into it. So far it looks like last minute
changes in perl 5.8.1 break things, so it might still take a few more days
(weeks?)
>>>Having gone through a semi-functional port of apxs for
>>>Win32, I hope to also get a chance to look doing the
>>>same for the ap[ru]-config scripts; these are shell
>>>scripts, so aren't as straightforward as apxs, but then
>>>again, aren't as involved as apxs. Hopefully with these
>>>the amount of special handling for Win32 will be cut
>>>down.
>>
>>Cool!
>>
>>Do you say that ap[ru]-config scripts have the same
>>problem as apxs? I guess more special cases for win32 will
>>be needed. Since perl runs shell scripts on win32 as well
>>(I think) won't running them via perl will do the trick?
>
>
> I don't think so - ap[ru]-config are /bin/sh scripts,
> so wouldn't run under the Win32 "shell" (unless I guess
> one had cygwin, or some equivalent, but one can't assume
> that). However, they don't look too difficult to convert
> to Perl.
That's a good forecast!
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: cvs commit: modperl-2.0 Makefile.PL Changes
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 6 Aug 2003, Stas Bekman wrote:
> We should get the cvs version ready for a release, since
> once perl-5.8.1 is released we must release mp 1.99_10,
> 1.99_09 won't work with 5.8.1. Hopefully this won't happen
> this week. But it seems like Jarkko wants to release it
> any moment now.
>
> > But harcoding 'winnt' in
> > some fashion probably would be required.
>
> This probably will be easy, since winnt == MSWin32.
If a 5.8.1 release does seem pressing, perhaps Steve Hay
could test that out, if I'm not back.
> > Having gone through a semi-functional port of apxs for
> > Win32, I hope to also get a chance to look doing the
> > same for the ap[ru]-config scripts; these are shell
> > scripts, so aren't as straightforward as apxs, but then
> > again, aren't as involved as apxs. Hopefully with these
> > the amount of special handling for Win32 will be cut
> > down.
>
> Cool!
>
> Do you say that ap[ru]-config scripts have the same
> problem as apxs? I guess more special cases for win32 will
> be needed. Since perl runs shell scripts on win32 as well
> (I think) won't running them via perl will do the trick?
I don't think so - ap[ru]-config are /bin/sh scripts,
so wouldn't run under the Win32 "shell" (unless I guess
one had cygwin, or some equivalent, but one can't assume
that). However, they don't look too difficult to convert
to Perl.
--
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: cvs commit: modperl-2.0 Makefile.PL Changes
Posted by Stas Bekman <st...@stason.org>.
Randy Kobes wrote:
> On Wed, 6 Aug 2003, Stas Bekman wrote:
>
>
>>stas@apache.org wrote:
>>
>>>stas 2003/08/06 14:59:04
>>>
>>> Modified: . Makefile.PL Changes
>>> Log:
>>> - now requiring 5.8.x/ithreads for threaded mpms (now doing the check
>>> against the mpm, rather than OS name)
>>
>>can someone on win32 check that I didn't break anything? I've replaced the
>>check of WIN32 with an explicit check of the mpm name, however remembering
>>that apxs is not working for win32, I most likely did break it.
>>
>>Perhaps we should write a wrapper for apxs_mpm_name and hardcode 'winnt'
>>if on win32, otherwise do the lookup.
>
>
> I'm away from my Win32 machine for a week - if nobody tests it
> before I get back, I'll do it then.
We should get the cvs version ready for a release, since once perl-5.8.1 is
released we must release mp 1.99_10, 1.99_09 won't work with 5.8.1. Hopefully
this won't happen this week. But it seems like Jarkko wants to release it any
moment now.
> But harcoding 'winnt' in
> some fashion probably would be required.
This probably will be easy, since winnt == MSWin32.
> Having gone through a semi-functional port of apxs for Win32, I hope to
> also get a chance to look doing the same for the ap[ru]-config scripts;
> these are shell scripts, so aren't as straightforward as apxs, but then
> again, aren't as involved as apxs. Hopefully with these the amount of
> special handling for Win32 will be cut down.
Cool!
Do you say that ap[ru]-config scripts have the same problem as apxs? I guess
more special cases for win32 will be needed. Since perl runs shell scripts on
win32 as well (I think) won't running them via perl will do the trick?
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: cvs commit: modperl-2.0 Makefile.PL Changes
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 6 Aug 2003, Stas Bekman wrote:
> stas@apache.org wrote:
> > stas 2003/08/06 14:59:04
> >
> > Modified: . Makefile.PL Changes
> > Log:
> > - now requiring 5.8.x/ithreads for threaded mpms (now doing the check
> > against the mpm, rather than OS name)
>
> can someone on win32 check that I didn't break anything? I've replaced the
> check of WIN32 with an explicit check of the mpm name, however remembering
> that apxs is not working for win32, I most likely did break it.
>
> Perhaps we should write a wrapper for apxs_mpm_name and hardcode 'winnt'
> if on win32, otherwise do the lookup.
I'm away from my Win32 machine for a week - if nobody tests it
before I get back, I'll do it then. But harcoding 'winnt' in
some fashion probably would be required.
Having gone through a semi-functional port of apxs for Win32, I hope to
also get a chance to look doing the same for the ap[ru]-config scripts;
these are shell scripts, so aren't as straightforward as apxs, but then
again, aren't as involved as apxs. Hopefully with these the amount of
special handling for Win32 will be cut down.
--
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org