> -----Original Message-----
> From: Doug MacEachern [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 11:23 PM
> To: Geoffrey Young
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: more Apache::Test stuff...
>
[snip]
> they are supposed to be in t/conf/modperl_inc.pl (generated by
> Apache::TestConfigPerl) and the generated t/conf/modperl_startup.pl
> attempts to require that before modperl_extra.pl
>
> % cat ap/modperl-2.0/t/conf/modperl_inc.pl
> #WARNING: this file is generated, do not edit
>
> use lib '/home/dougm/ap/modperl-2.0/lib';
> use lib '/home/dougm/ap/modperl-2.0/blib/lib';
> use lib '/home/dougm/ap/modperl-2.0/blib/arch';
> use lib '/home/dougm/ap/modperl-2.0/t/response';
> use lib '/home/dougm/ap/modperl-2.0/t/protocol';
> use lib '/home/dougm/ap/modperl-2.0/t/hooks';
> use lib '/home/dougm/ap/modperl-2.0/t/filter';
> 1;
ok, I think I see what my problem was - due to the nature of the postamble
hash, Include is sorting before PerlRequire in the generated httpd.conf,
which means that Apache is seeing my extra.conf before I have a chance to
use my blib.
these patches seem to solve the problem by moving PerlRequire (and
PerlSwitches?) to the preamble, thus insuring that @INC is modified before
seeing any extra configuration stuff...
--Geoff
Index: TestConfigPerl.pm
===================================================================
RCS file:
/home/cvspublic/modperl-2.0/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.12
diff -u -r1.12 TestConfigPerl.pm
--- TestConfigPerl.pm 2001/05/05 22:05:31 1.12
+++ TestConfigPerl.pm 2001/05/17 13:43:17
@@ -117,7 +117,7 @@
}
my $directive = $self->server->version_of(\%startup_pl);
- $self->postamble($directive => $startup_pl);
+ $self->preamble($directive => $startup_pl);
}
my %sethandler_modperl = (1 => 'perl-script', 2 => 'modperl');
Index: TestRunPerl.pm
===================================================================
RCS file:
/home/cvspublic/modperl-2.0/Apache-Test/lib/Apache/TestRunPerl.pm,v
retrieving revision 1.1
diff -u -r1.1 TestRunPerl.pm
--- TestRunPerl.pm 2001/04/03 04:23:45 1.1
+++ TestRunPerl.pm 2001/05/17 13:43:17
@@ -14,11 +14,12 @@
my $test_config = $self->{test_config};
- $test_config->preamble_register(qw(configure_libmodperl));
+ $test_config->preamble_register(qw(configure_libmodperl
+ configure_inc
+ configure_startup_pl));
$test_config->postamble_register(qw(configure_inc
- configure_pm_tests
- configure_startup_pl));
+ configure_pm_tests));
}
sub configure {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]