cvs commit: modperl-2.0/pod modperl_dev.pod

2001-08-08 Thread sbekman

sbekman 01/08/08 20:29:32

  Modified:pod  modperl_dev.pod
  Log:
  add a note about using threaded perl
  
  Revision  ChangesPath
  1.32  +3 -0  modperl-2.0/pod/modperl_dev.pod
  
  Index: modperl_dev.pod
  ===
  RCS file: /home/cvs/modperl-2.0/pod/modperl_dev.pod,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- modperl_dev.pod   2001/08/02 04:38:11 1.31
  +++ modperl_dev.pod   2001/08/09 03:29:32 1.32
  @@ -41,6 +41,9 @@
% make  make test  make install
% ln -s $HOME/bleedperl/bin/perl5.x.x $HOME/bleedperl/bin/perl
   
  +or otherwise make sure that your perl was built with threads enabled if
  +you want to use the threaded MPM.
  +
   If you are re-building Perl after rsync-ing, make sure to cleanup:
   
 % make distclean
  
  
  



cvs commit: modperl-2.0/todo missing_old_features.txt

2001-08-08 Thread sbekman

sbekman 01/08/08 00:02:41

  Modified:src/modules/perl mod_perl.c modperl_cmd.c modperl_cmd.h
modperl_config.c modperl_config.h modperl_util.c
modperl_util.h
   todo missing_old_features.txt
  Log:
  * implementing PerlModule and PerlRequire configuration
  directives, for the main server and virtual hosts
  
  * adding a todo item: .htaccess support for PerlModule and PerlRequire is
  missing
  
  Revision  ChangesPath
  1.61  +16 -0 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.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- mod_perl.c2001/07/15 22:33:48 1.60
  +++ mod_perl.c2001/08/08 07:02:41 1.61
  @@ -74,6 +74,13 @@
   );
   #endif
   
  +if (!modperl_config_apply_PerlModule(s, scfg, perl, p)){
  +exit(1);
  +}
  +if (!modperl_config_apply_PerlRequire(s, scfg, perl, p)){
  +exit(1);
  +}
  +
   #ifndef USE_ITHREADS
   cdata = modperl_cleanup_data_new(p, (void*)perl);
   apr_pool_cleanup_register(p, cdata,
  @@ -126,6 +133,13 @@
  modperl_server_desc(s, p));
   }
   
  +if (!modperl_config_apply_PerlModule(s, scfg, perl, p)){
  +exit(1);
  +}
  +if (!modperl_config_apply_PerlRequire(s, scfg, perl, p)){
  +exit(1);
  +}
  +
   #ifdef USE_ITHREADS
   
   if (!MpSrvENABLED(scfg)) {
  @@ -355,6 +369,8 @@
   
   static const command_rec modperl_cmds[] = {  
   MP_CMD_SRV_ITERATE(PerlSwitches, switches, Perl Switches),
  +MP_CMD_SRV_ITERATE(PerlModule, modules, PerlModule),
  +MP_CMD_SRV_ITERATE(PerlRequire, requires, PerlRequire),
   MP_CMD_DIR_ITERATE(PerlOptions, options, Perl Options),
   #ifdef MP_TRACE
   MP_CMD_SRV_TAKE1(PerlTrace, trace, Trace level),
  
  
  
  1.5   +19 -0 modperl-2.0/src/modules/perl/modperl_cmd.c
  
  Index: modperl_cmd.c
  ===
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_cmd.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- modperl_cmd.c 2001/04/06 02:18:15 1.4
  +++ modperl_cmd.c 2001/08/08 07:02:41 1.5
  @@ -39,7 +39,26 @@
   MP_CMD_SRV_DECLARE(switches)
   {
   MP_dSCFG(parms-server);
  +MP_TRACE_d(MP_FUNC, arg = %s\n, arg);
   modperl_config_srv_argv_push(arg);
  +return NULL;
  +}
  +
  +MP_CMD_SRV_DECLARE(modules)
  +{
  +MP_dSCFG(parms-server);
  +
  +*(const char **)apr_array_push(scfg-PerlModule) = arg;
  +MP_TRACE_d(MP_FUNC, arg = %s\n, arg);
  +return NULL;
  +}
  +
  +MP_CMD_SRV_DECLARE(requires)
  +{
  +MP_dSCFG(parms-server);
  +
  +*(const char **)apr_array_push(scfg-PerlRequire) = arg;
  +MP_TRACE_d(MP_FUNC, arg = %s\n, arg);
   return NULL;
   }
   
  
  
  
  1.5   +2 -0  modperl-2.0/src/modules/perl/modperl_cmd.h
  
  Index: modperl_cmd.h
  ===
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_cmd.h,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- modperl_cmd.h 2001/04/06 02:18:15 1.4
  +++ modperl_cmd.h 2001/08/08 07:02:41 1.5
  @@ -10,6 +10,8 @@
  void *dummy, const char *arg)
   MP_CMD_SRV_DECLARE(trace);
   MP_CMD_SRV_DECLARE(switches);
  +MP_CMD_SRV_DECLARE(modules);
  +MP_CMD_SRV_DECLARE(requires);
   MP_CMD_SRV_DECLARE(options);
   
   #ifdef USE_ITHREADS
  
  
  
  1.33  +51 -0 modperl-2.0/src/modules/perl/modperl_config.c
  
  Index: modperl_config.c
  ===
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_config.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- modperl_config.c  2001/05/08 21:08:26 1.32
  +++ modperl_config.c  2001/08/08 07:02:41 1.33
  @@ -71,6 +71,9 @@
   MpSrvENABLED_On(scfg); /* mod_perl enabled by default */
   MpSrvHOOKS_ALL_On(scfg); /* all hooks enabled by default */
   
  +scfg-PerlModule  = apr_array_make(p, 2, sizeof(char *));
  +scfg-PerlRequire = apr_array_make(p, 2, sizeof(char *));
  +
   scfg-argv = apr_array_make(p, 2, sizeof(char *));
   
   modperl_config_srv_argv_push((char *)ap_server_argv0);
  @@ -152,6 +155,9 @@
   MP_TRACE_d(MP_FUNC, basev==0x%lx, addv==0x%lx\n, 
  (unsigned long)basev, (unsigned long)addv);
   
  +merge_item(PerlModule);
  +merge_item(PerlRequire);
  +
   merge_item(threaded_mpm);
   
   #ifdef USE_ITHREADS
  @@ -183,3 +189,48 @@
   return mrg;
   }
   
  +int modperl_config_apply_PerlModule(server_rec *s, 

cvs commit: modperl-2.0/todo possible_new_features.txt

2001-08-08 Thread sbekman

sbekman 01/08/08 00:13:04

  Modified:todo possible_new_features.txt
  Log:
  log the PerlOptions +Inherit idea
  
  Revision  ChangesPath
  1.7   +9 -0  modperl-2.0/todo/possible_new_features.txt
  
  Index: possible_new_features.txt
  ===
  RCS file: /home/cvs/modperl-2.0/todo/possible_new_features.txt,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- possible_new_features.txt 2001/08/05 03:20:31 1.6
  +++ possible_new_features.txt 2001/08/08 07:13:04 1.7
  @@ -15,6 +15,15 @@
 PerlSwitches -Mlib=/home/dev1/lib/perl, to set different @INC for
 different virtual hosts.
   
  +- a possible implementation of PerlOptions +Inherit, similar to
  +  +Parent but which allows virtual hosts to inherit everything that
  +  was loaded by the main server, at the point of their definition in
  +  the config file. This can make it easier to write configuration
  +  files where there is a common base of modules to be loaded in all
  +  servers. Of course this can be done by putting all these common
  +  modules and code into foo.pl and running it from the base server and
  +  all virtual hosts.
  +
   perl language features:
   --