cvs commit: modperl-2.0/lib/Apache Build.pm
dougm 2002/06/15 10:26:29 Modified:lib/Apache Build.pm Log: remove -undefined suppress from ldflags on darwin (should never be there) Revision ChangesPath 1.97 +7 -1 modperl-2.0/lib/Apache/Build.pm Index: Build.pm === RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v retrieving revision 1.96 retrieving revision 1.97 diff -u -r1.96 -r1.97 --- Build.pm 30 May 2002 06:00:49 - 1.96 +++ Build.pm 15 Jun 2002 17:26:29 - 1.97 -170,7 +170,13 my $config = tied %Config; my $ldflags = $config-{ldflags}; -$config-{ldflags} = '' if WIN32; #same as lddlflags +if (WIN32) { +$config-{ldflags} = ''; #same as lddlflags +} +elsif (DARWIN) { +#not sure how this can happen, but it shouldn't +$config-{ldflags} =~ s/-undefined suppress//; +} my $ldopts = ExtUtils::Embed::ldopts(); chomp $ldopts;
cvs commit: modperl-2.0/t/response/TestAPR perlio.pm
stas2002/06/15 12:08:21 Modified:t/response/TestAPR perlio.pm Log: disable the failing tests with 5.8.0-RC2 while reworking APR PerlIO layer Revision ChangesPath 1.9 +1 -1 modperl-2.0/t/response/TestAPR/perlio.pm Index: perlio.pm === RCS file: /home/cvs/modperl-2.0/t/response/TestAPR/perlio.pm,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- perlio.pm 31 May 2002 02:19:11 - 1.8 +++ perlio.pm 15 Jun 2002 19:08:21 - 1.9 -27,7 +27,7 #$tests += $lfs_tests if USE_LARGE_FILES; #XXX -plan $r, tests = $tests, have_perl 'iolayers'; +plan $r, tests = $tests, todo = [5,8], have_perl 'iolayers'; my $vars = Apache::Test::config()-{vars}; my $dir = catfile $vars-{documentroot}, perlio;
cvs commit: modperl-2.0/src/modules/perl mod_perl.c
dougm 2002/06/15 13:59:06 Modified:src/modules/perl mod_perl.c Log: fix modperl_boot prototype Revision ChangesPath 1.125 +1 -2 modperl-2.0/src/modules/perl/mod_perl.c Index: mod_perl.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/mod_perl.c,v retrieving revision 1.124 retrieving revision 1.125 diff -u -r1.124 -r1.125 --- mod_perl.c12 Jun 2002 21:13:10 - 1.124 +++ mod_perl.c15 Jun 2002 20:59:06 - 1.125 -95,11 +95,10 #endif /* MP_REFGEN_FIXUP */ -static void modperl_boot(void *data) +static void modperl_boot(pTHX_ void *data) { MP_dBOOT_DATA; MP_dSCFG(s); -dTHX; /* XXX: not too worried since this only happens at startup */ int i; #ifdef MP_REFGEN_FIXUP
cvs commit: modperl-2.0/lib/ModPerl Manifest.pm
dougm 2002/06/15 16:36:52 Modified:lib/ModPerl Manifest.pm Log: include TestAPR::util in the dist as it is already skipping the apr_generate_random_bytes test Revision ChangesPath 1.4 +0 -2 modperl-2.0/lib/ModPerl/Manifest.pm Index: Manifest.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/Manifest.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Manifest.pm 7 Apr 2002 00:49:38 - 1.3 +++ Manifest.pm 15 Jun 2002 23:36:52 - 1.4 -90,5 +90,3 patches/ #very few will have Chatbot::Eliza installed eliza -#apr_generate_random_bytes does not currently work on all platforms -TestAPR/util.pm
cvs commit: modperl-2.0/t/response/TestAPR perlio.pm
dougm 2002/06/15 16:48:58 Modified:t/response/TestAPR perlio.pm Log: disabling tests until perlio issues are sorted out Revision ChangesPath 1.10 +3 -3 modperl-2.0/t/response/TestAPR/perlio.pm Index: perlio.pm === RCS file: /home/cvs/modperl-2.0/t/response/TestAPR/perlio.pm,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- perlio.pm 15 Jun 2002 19:08:21 - 1.9 +++ perlio.pm 15 Jun 2002 23:48:58 - 1.10 -22,12 +22,12 return Apache::OK; } -my $tests = 11; +my $tests = 2; #XXX 11; my $lfs_tests = 3; #$tests += $lfs_tests if USE_LARGE_FILES; #XXX -plan $r, tests = $tests, todo = [5,8], have_perl 'iolayers'; +plan $r, tests = $tests, have_perl 'iolayers'; my $vars = Apache::Test::config()-{vars}; my $dir = catfile $vars-{documentroot}, perlio; -66,7 +66,7 expected failure); } } - +return Apache::OK; #XXX remove when perlio issues are sorted out # seek/tell() tests #XXX: feel free to enable if largefile support is not enabled in Perl if (0) {
cvs commit: modperl-2.0 Changes
dougm 2002/06/15 16:56:20 Modified:.Changes Log: _03 release Revision ChangesPath 1.24 +1 -1 modperl-2.0/Changes Index: Changes === RCS file: /home/cvs/modperl-2.0/Changes,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- Changes 15 Jun 2002 02:09:26 - 1.23 +++ Changes 15 Jun 2002 23:56:20 - 1.24 -8,7 +8,7 =over 3 -=item 1.99_03-dev +=item 1.99_03 - June 15, 2002 win32 fix for the global Apache-request object to make sure it uses the thread local storage mechanism
cvs commit: modperl-2.0/lib mod_perl.pm
dougm 2002/06/15 17:02:58 Modified:.Changes lib mod_perl.pm Log: bump version Revision ChangesPath 1.25 +2 -0 modperl-2.0/Changes Index: Changes === RCS file: /home/cvs/modperl-2.0/Changes,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- Changes 15 Jun 2002 23:56:20 - 1.24 +++ Changes 16 Jun 2002 00:02:57 - 1.25 -8,6 +8,8 =over 3 +=item 1.99_04-dev + =item 1.99_03 - June 15, 2002 win32 fix for the global Apache-request object to make sure it uses 1.4 +1 -1 modperl-2.0/lib/mod_perl.pm Index: mod_perl.pm === RCS file: /home/cvs/modperl-2.0/lib/mod_perl.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- mod_perl.pm 2 Jun 2002 03:25:53 - 1.3 +++ mod_perl.pm 16 Jun 2002 00:02:58 - 1.4 -4,7 +4,7 use strict; BEGIN { -our $VERSION = 1.9903; +our $VERSION = 1.9904; } 1;
cvs commit: modperl-2.0/src/modules/perl modperl_perl_pp.c modperl_perl_pp.h
dougm 2002/06/15 18:07:21 Added: src/modules/perl modperl_perl_pp.c modperl_perl_pp.h Log: new module where any PL_ppaddr modifications are done Revision ChangesPath 1.1 modperl-2.0/src/modules/perl/modperl_perl_pp.c Index: modperl_perl_pp.c === #include mod_perl.h static enum opcode MP_pp_map[] = { #ifdef MP_REFGEN_FIXUP OP_SREFGEN, #endif }; typedef OP * MP_FUNC_T(modperl_pp_t)(pTHX); static modperl_pp_t MP_PERL_ppaddr[MP_OP_max]; #ifdef MP_REFGEN_FIXUP /* * nasty workaround for bug fixed in bleedperl (11536 + 11553) * XXX: when 5.8.0 is released + stable, we will require 5.8.0 * if ithreads are enabled. */ static OP *modperl_pp_srefgen(pTHX) { dSP; OP *o; SV *sv = *SP; if (SvPADTMP(sv) IS_PADGV(sv)) { /* prevent S_refto from making a copy of the GV, * tricking it to SvREFCNT_inc and point to this one instead. */ SvPADTMP_off(sv); } else { sv = Nullsv; } /* o = Perl_pp_srefgen(aTHX) */ o = MP_PERL_ppaddr[MP_OP_SREFGEN](aTHX); if (sv) { /* restore original flags */ SvPADTMP_on(sv); } return o; } #endif /* MP_REFGEN_FIXUP */ static modperl_pp_t MP_ppaddr[] = { #ifdef MP_REFGEN_FIXUP MEMBER_TO_FPTR(modperl_pp_srefgen), #endif }; void modperl_perl_pp_set(modperl_perl_opcode_e idx) { int pl_idx = MP_pp_map[idx]; /* save original */ MP_PERL_ppaddr[idx] = PL_ppaddr[pl_idx]; /* replace with our own */ PL_ppaddr[pl_idx] = MP_ppaddr[idx]; } void modperl_perl_pp_set_all(void) { int i; for (i=0; iMP_OP_max; i++) { modperl_perl_pp_set(i); } } void modperl_perl_pp_unset(modperl_perl_opcode_e idx) { int pl_idx = MP_pp_map[idx]; /* restore original */ PL_ppaddr[pl_idx] = MP_PERL_ppaddr[idx]; } void modperl_perl_pp_unset_all(void) { int i; for (i=0; iMP_OP_max; i++) { modperl_perl_pp_unset(i); } } 1.1 modperl-2.0/src/modules/perl/modperl_perl_pp.h Index: modperl_perl_pp.h === #ifndef MODPERL_PERL_PP_H #define MODPERL_PERL_PP_H #if defined(USE_ITHREADS) defined(MP_PERL_5_6_x) # define MP_REFGEN_FIXUP #endif typedef enum { #ifdef MP_REFGEN_FIXUP MP_OP_SREFGEN, #endif MP_OP_max } modperl_perl_opcode_e; void modperl_perl_pp_set(modperl_perl_opcode_e idx); void modperl_perl_pp_set_all(void); void modperl_perl_pp_unset(modperl_perl_opcode_e idx); void modperl_perl_pp_unset_all(void); #endif /* MODPERL_PERL_PP_H */
cvs commit: modperl-2.0/xs/tables/current/ModPerl FunctionTable.pm
dougm 2002/06/15 18:09:18 Modified:xs/tables/current/ModPerl FunctionTable.pm Log: sync Revision ChangesPath 1.72 +54 -19modperl-2.0/xs/tables/current/ModPerl/FunctionTable.pm Index: FunctionTable.pm === RCS file: /home/cvs/modperl-2.0/xs/tables/current/ModPerl/FunctionTable.pm,v retrieving revision 1.71 retrieving revision 1.72 diff -u -r1.71 -r1.72 --- FunctionTable.pm 3 Jun 2002 23:46:44 - 1.71 +++ FunctionTable.pm 16 Jun 2002 01:09:18 - 1.72 -2,7 +2,7 # !! # ! WARNING: generated by ModPerl::ParseSource/0.01 -# ! Sat May 25 11:12:06 2002 +# ! Sat Jun 15 17:57:19 2002 # ! do NOT edit, any changes will be lost ! # !! -1355,6 +1355,11 ] }, { +'return_type' = 'void', +'name' = 'modperl_env_unload', +'args' = [] + }, + { 'return_type' = 'int', 'name' = 'modperl_errsv', 'args' = [ -2082,6 +2087,24 ] }, { +'return_type' = 'int', +'name' = 'modperl_hook_pre_config', +'args' = [ + { +'type' = 'apr_pool_t *', +'name' = 'p' + }, + { +'type' = 'apr_pool_t *', +'name' = 'plog' + }, + { +'type' = 'apr_pool_t *', +'name' = 'ptemp' + } +] + }, + { 'return_type' = 'void', 'name' = 'modperl_init', 'args' = [ -3175,6 +3198,36 ] }, { +'return_type' = 'void', +'name' = 'modperl_perl_pp_set', +'args' = [ + { +'type' = 'modperl_perl_opcode_e', +'name' = 'idx' + } +] + }, + { +'return_type' = 'void', +'name' = 'modperl_perl_pp_set_all', +'args' = [] + }, + { +'return_type' = 'void', +'name' = 'modperl_perl_pp_unset', +'args' = [ + { +'type' = 'modperl_perl_opcode_e', +'name' = 'idx' + } +] + }, + { +'return_type' = 'void', +'name' = 'modperl_perl_pp_unset_all', +'args' = [] + }, + { 'return_type' = 'SV *', 'name' = 'modperl_perl_sv_setref_uv', 'attr' = [ -3228,24 +3281,6 { 'type' = 'request_rec *', 'name' = 'r' - } -] - }, - { -'return_type' = 'int', -'name' = 'modperl_hook_pre_config', -'args' = [ - { -'type' = 'apr_pool_t *', -'name' = 'p' - }, - { -'type' = 'apr_pool_t *', -'name' = 'plog' - }, - { -'type' = 'apr_pool_t *', -'name' = 'ptemp' } ] },
cvs commit: modperl-2.0/lib/ModPerl Code.pm
dougm 2002/06/15 18:09:46 Modified:lib/ModPerl Code.pm Log: integrate modperl_perl_pp module Revision ChangesPath 1.82 +1 -1 modperl-2.0/lib/ModPerl/Code.pm Index: Code.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/Code.pm,v retrieving revision 1.81 retrieving revision 1.82 diff -u -r1.81 -r1.82 --- Code.pm 21 May 2002 00:33:33 - 1.81 +++ Code.pm 16 Jun 2002 01:09:46 - 1.82 -563,7 +563,7 my c_src_names = qw(interp tipool log config cmd options callback handler gtop util io filter bucket mgv pcw global env cgi - perl perl_global); + perl perl_global perl_pp); my g_c_names = map { modperl_$_ } qw(hooks directives flags xsinit); my c_names = ('mod_perl', (map modperl_$_, c_src_names)); sub c_files { [map { $_.c } c_names, g_c_names] }
cvs commit: modperl-2.0/src/modules/perl modperl_perl_pp.c modperl_perl_pp.h
dougm 2002/06/15 18:20:50 Modified:src/modules/perl modperl_perl_pp.c modperl_perl_pp.h Log: stub modperl_pp_require Revision ChangesPath 1.2 +8 -0 modperl-2.0/src/modules/perl/modperl_perl_pp.c Index: modperl_perl_pp.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_perl_pp.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- modperl_perl_pp.c 16 Jun 2002 01:07:21 - 1.1 +++ modperl_perl_pp.c 16 Jun 2002 01:20:50 - 1.2 -4,6 +4,7 #ifdef MP_REFGEN_FIXUP OP_SREFGEN, #endif +OP_REQUIRE }; typedef OP * MP_FUNC_T(modperl_pp_t)(pTHX); -47,10 +48,17 #endif /* MP_REFGEN_FIXUP */ +static OP *modperl_pp_require(pTHX) +{ +/* nothing yet */ +return MP_PERL_ppaddr[MP_OP_REQUIRE](aTHX); +} + static modperl_pp_t MP_ppaddr[] = { #ifdef MP_REFGEN_FIXUP MEMBER_TO_FPTR(modperl_pp_srefgen), #endif +MEMBER_TO_FPTR(modperl_pp_require) }; void modperl_perl_pp_set(modperl_perl_opcode_e idx) 1.2 +1 -0 modperl-2.0/src/modules/perl/modperl_perl_pp.h Index: modperl_perl_pp.h === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_perl_pp.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- modperl_perl_pp.h 16 Jun 2002 01:07:21 - 1.1 +++ modperl_perl_pp.h 16 Jun 2002 01:20:50 - 1.2 -9,6 +9,7 #ifdef MP_REFGEN_FIXUP MP_OP_SREFGEN, #endif +MP_OP_REQUIRE, MP_OP_max } modperl_perl_opcode_e;
cvs commit: modperl-2.0/src/modules/perl modperl_perl_pp.c
dougm 2002/06/15 18:34:02 Modified:src/modules/perl modperl_perl_pp.c Log: MP_FUNC_T not needed, infact breaks win32 Revision ChangesPath 1.3 +1 -1 modperl-2.0/src/modules/perl/modperl_perl_pp.c Index: modperl_perl_pp.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_perl_pp.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- modperl_perl_pp.c 16 Jun 2002 01:20:50 - 1.2 +++ modperl_perl_pp.c 16 Jun 2002 01:34:02 - 1.3 -7,7 +7,7 OP_REQUIRE }; -typedef OP * MP_FUNC_T(modperl_pp_t)(pTHX); +typedef OP * (*modperl_pp_t)(pTHX); static modperl_pp_t MP_PERL_ppaddr[MP_OP_max];
cvs commit: modperl-2.0/lib/Apache Build.pm
dougm 2002/06/15 18:58:50 Modified:lib/Apache Build.pm Log: hmm, darwin ldflags fixup was not quite good enough Revision ChangesPath 1.98 +4 -1 modperl-2.0/lib/Apache/Build.pm Index: Build.pm === RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v retrieving revision 1.97 retrieving revision 1.98 diff -u -r1.97 -r1.98 --- Build.pm 15 Jun 2002 17:26:29 - 1.97 +++ Build.pm 16 Jun 2002 01:58:50 - 1.98 -175,7 +175,10 } elsif (DARWIN) { #not sure how this can happen, but it shouldn't -$config-{ldflags} =~ s/-undefined suppress//; +my bogus_flags = 'flat_namespace', 'bundle', 'undefined suppress'; +for my $flag (bogus_flags) { +$config-{ldflags} =~ s/-$flag\s*//; +} } my $ldopts = ExtUtils::Embed::ldopts();