Skip to content

Commit

Permalink
sync with the trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Stas Bekman committed Sep 2, 2005
1 parent ff7c9d0 commit 82b632f
Show file tree
Hide file tree
Showing 107 changed files with 752 additions and 596 deletions.
22 changes: 22 additions & 0 deletions Changes
Expand Up @@ -12,6 +12,28 @@ Also refer to the Apache::Test changes log file, at Apache-Test/Changes

=item 2.0.2-dev

Fix an undefined warning in DSO builds when not using MP_APXS.
[Nikolay Ananiev <ananiev@thegdb.com>]

When running Makefile.PL with the MP_MAINTAINER=1 option
add -Wdeclaration-after-statement if we are using gcc
version 3.3.2 or higher and its not already part of the ccopts.
[Philip M. Gollucci, Gozer]

Several fixes to Apache2::Status
[Philip M. Gollucci]

When using Apache2::Reload and ReloadDebug is set to 'On',
sort the output alphabetically [Philip M. Gollucci]

croak in case a filter returns DECLINED after calling $f->read (as it
is not supposed to happen) [Stas]

another round of cygwin fixes [Nick *** <doink123@abv.bg>]

Multiple fixes to make mod_perl 2.0 work with blead-perl (5.9.3+)
[Stas]

t/modules/reload.t would fail if run more than 3 times, breaking
smokes [Gozer]

Expand Down
13 changes: 11 additions & 2 deletions Makefile.PL
Expand Up @@ -389,8 +389,17 @@ sub post_configure {
}

if ($build->is_dynamic) {
warning "You'll need to add the following to httpd.conf:",
" LoadModule perl_module modules/$build->{MODPERL_LIB_DSO}\n";
warning
"You'll need to add the following to httpd.conf:", "",
" LoadModule perl_module modules/$build->{MODPERL_LIB_DSO}", "",
"depending on your build, mod_perl might not live in",
"the modules/ directory.\n";
if ($build->{MP_APXS}) {
warning
"Check the results of", "",
" \$ $build->{MP_APXS} -q LIBEXECDIR", "",
"and adjust the LoadModule directive accordingly.\n";
}
}

$build->save;
Expand Down
16 changes: 8 additions & 8 deletions ModPerl-Registry/lib/ModPerl/RegistryCooker.pm
Expand Up @@ -103,7 +103,7 @@ unless (defined $ModPerl::RegistryCooker::NameWithVirtualHost) {
#########################################################################

sub new {
my($class, $r) = @_;
my ($class, $r) = @_;
my $self = bless {}, $class;
$self->init($r);
return $self;
Expand Down Expand Up @@ -575,7 +575,7 @@ my %switches = (

sub shebang_to_perl {
my $self = shift;
my($line) = ${ $self->{CODE} } =~ /^(.*)$/m;
my ($line) = ${ $self->{CODE} } =~ /^(.*)$/m;
my @cmdline = split /\s+/, $line;
return "" unless @cmdline;
return "" unless shift(@cmdline) =~ /^\#!/;
Expand Down Expand Up @@ -617,7 +617,7 @@ sub get_script_name {
*chdir_file = \&NOP;

sub chdir_file_normal {
my($self, $dir) = @_;
my ($self, $dir) = @_;
$dir ||= File::Basename::dirname($self->{FILENAME});
$self->debug("chdir $dir") if DEBUG & D_NOISE;
chdir $dir or die "Can't chdir to $dir: $!";
Expand Down Expand Up @@ -662,7 +662,7 @@ sub strip_end_data_segment {
#########################################################################

sub compile {
my($self, $eval) = @_;
my ($self, $eval) = @_;

$self->debug("compiling $self->{FILENAME}") if DEBUG && D_COMPILE;

Expand Down Expand Up @@ -711,10 +711,10 @@ sub error_check {
#########################################################################

sub install_aliases {
my($class, $rh_aliases) = @_;
my ($class, $rh_aliases) = @_;

no strict 'refs';
while (my($k,$v) = each %$rh_aliases) {
while (my ($k,$v) = each %$rh_aliases) {
if (my $sub = *{$v}{CODE}){
*{ $class . "::$k" } = $sub;
}
Expand All @@ -733,7 +733,7 @@ sub debug {
}

sub log_error {
my($self, $msg) = @_;
my ($self, $msg) = @_;
my $class = ref $self;

$self->{REQ}->log_error($msg);
Expand Down Expand Up @@ -763,7 +763,7 @@ sub log_error {
# cache_table() to point to another function, this function will fail.
sub uncache_myself {
my $package = scalar caller;
my($class) = __PACKAGE__->cache_table_common();
my ($class) = __PACKAGE__->cache_table_common();

unless (defined $class) {
Apache2->warn("$$: cannot figure out cache symbol table for $package");
Expand Down
7 changes: 4 additions & 3 deletions ModPerl-Registry/lib/ModPerl/RegistryLoader.pm
Expand Up @@ -19,6 +19,7 @@ use warnings;

use ModPerl::RegistryCooker ();
use Apache2::ServerUtil ();
use Apache2::Log ();
use APR::Pool ();

use Carp;
Expand All @@ -38,7 +39,7 @@ sub new {
}

sub handler {
my($self, $uri, $filename, $virthost) = @_;
my ($self, $uri, $filename, $virthost) = @_;

# set the inheritance rules at run time
@ISA = $self->{package};
Expand Down Expand Up @@ -142,7 +143,7 @@ sub slurp_filename {
}

sub load_package {
my($self, $package) = @_;
my ($self, $package) = @_;

croak "package to load wasn't specified" unless defined $package;

Expand All @@ -153,7 +154,7 @@ sub load_package {

sub warn {
my $self = shift;
Apache2->warn(__PACKAGE__ . ": @_\n");
Apache2::Log->warn(__PACKAGE__ . ": @_\n");
}

1;
Expand Down
2 changes: 1 addition & 1 deletion ModPerl-Registry/t/206.t
Expand Up @@ -5,7 +5,7 @@ use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest qw(GET);

plan tests => 2, need 'mod_alias.c';
plan tests => 2, need [qw(mod_alias.c HTML::HeadParser)];

my $url = "/registry/206.pl";
my $res = GET($url);
Expand Down
4 changes: 2 additions & 2 deletions ModPerl-Registry/t/304.t
Expand Up @@ -5,7 +5,7 @@ use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest qw(GET);

plan tests => 10, need 'mod_alias.c';
plan tests => 10, need [qw(mod_alias.c HTML::HeadParser)];

my $url = "/registry/304.pl";

Expand Down Expand Up @@ -42,7 +42,7 @@ my $url = "/registry/304.pl";
'Thu Juk 99 00:00:00 9999 FUK' => "bogus If-Modified-Since #2",
);
my $received = '<html><head></head><body>Test</body></html>';
while ( my($if_modified_since, $debug) = each %dates) {
while ( my ($if_modified_since, $debug) = each %dates) {
my $res = GET($url, 'If-Modified-Since' => $if_modified_since);
t_debug "If-Modified-Since $if_modified_since";
ok t_cmp(
Expand Down
2 changes: 1 addition & 1 deletion ModPerl-Registry/t/404.t
Expand Up @@ -5,7 +5,7 @@ use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest qw(GET_BODY GET);

plan tests => 2, need 'mod_alias.c';
plan tests => 2, need [qw(mod_alias.c HTML::HeadParser)];

{
t_client_log_error_is_expected();
Expand Down
3 changes: 2 additions & 1 deletion ModPerl-Registry/t/cgi.t
Expand Up @@ -5,7 +5,8 @@ use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest qw(GET);

plan tests => 2, need 'mod_alias.c', need_min_module_version CGI => 3.08;
plan tests => 2, need [qw(mod_alias.c HTML::HeadParser)],
need_min_module_version CGI => 3.08;

my $url = "/registry/cgi.pl";
my $res = GET $url;
Expand Down
2 changes: 1 addition & 1 deletion ModPerl-Registry/t/closure.t
Expand Up @@ -17,7 +17,7 @@ use File::Spec::Functions;

my @modules = qw(registry registry_bb perlrun);

plan tests => 6, need 'mod_alias.c';
plan tests => 6, need [qw(mod_alias.c HTML::HeadParser)];

my $cfg = Apache::Test::config();

Expand Down
2 changes: 1 addition & 1 deletion ModPerl-Registry/t/flush.t
Expand Up @@ -5,7 +5,7 @@ use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest qw(GET_BODY);

plan tests => 1, need 'deflate', 'mod_alias.c',
plan tests => 1, need [qw(mod_alias.c deflate HTML::HeadParser)],
need_min_module_version("Compress::Zlib", "1.09"),
need_min_apache_version("2.0.48");
# it requires httpd 2.0.48 because of the bug in mod_deflate:
Expand Down
2 changes: 1 addition & 1 deletion ModPerl-Registry/t/perlrun_extload.t
Expand Up @@ -6,7 +6,7 @@ use Apache::TestUtil;
use Apache::TestRequest qw(GET);
use TestCommon::SameInterp;

plan tests => 2, need 'mod_alias.c';
plan tests => 2, need [qw(mod_alias.c HTML::HeadParser)];

my $url = "/same_interp/perlrun/perlrun_extload.pl";
my $same_interp = Apache::TestRequest::same_interp_tie($url);
Expand Down
2 changes: 1 addition & 1 deletion ModPerl-Registry/t/redirect.t
Expand Up @@ -7,7 +7,7 @@ use Apache::TestRequest qw(GET_BODY HEAD);

use Apache::TestUtil qw(t_catfile_apache);

plan tests => 4, need 'mod_alias.c', need_lwp;
plan tests => 4, need [qw(mod_alias.c HTML::HeadParser)], need_lwp;

# need LWP to handle redirects
my $base_url = "/registry/redirect.pl";
Expand Down
2 changes: 1 addition & 1 deletion ModPerl-Registry/t/special_blocks.t
Expand Up @@ -16,7 +16,7 @@ my %modules = (

my @aliases = sort keys %modules;

plan tests => @aliases * 4, need 'mod_alias.c';
plan tests => @aliases * 4, need [qw(mod_alias.c HTML::HeadParser)];

{
# PerlRun always run BEGIN/END since it's never cached
Expand Down

0 comments on commit 82b632f

Please sign in to comment.