Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev
[patch] http://rt.cpan.org/Public/Bug/Display.html?id=21554
 

Index | Next | Previous | View Flat


fred at redhotpenguin

Apr 19, 2009, 1:53 AM


Views: 1956
Permalink
[patch] http://rt.cpan.org/Public/Bug/Display.html?id=21554

This seems like a reasonable request. I know there are a few times
that I had to put the apreq module load in extra.conf.in, and it would
have been nice to have things magically 'just work'. I only have one
modperl application that does not use libapreq, and I think that I
wouldn't mind the extra module loaded during testing.

OTOH I don't think this qualifies as a 'critical' bug. But any
thoughts or issues with this patch?

Index: lib/Apache/TestRunPerl.pm
===================================================================
--- lib/Apache/TestRunPerl.pm (revision 766433)
+++ lib/Apache/TestRunPerl.pm (working copy)
@@ -73,6 +73,22 @@
Apache::TestRun::exit_perl(0);
}

+ if ($rev == 2) {
+ # load apreq2 if it is present
+ # do things a bit differently that find_and_load_module()
+ # because apreq2 can't be loaded that way (the 2 causes a problem)
+ my $name = 'mod_apreq2.so';
+ my $mod_path = $test_config->find_apache_module($name) or return;
+
+ # don't match the 2 here
+ my ($sym) = $name =~ m/mod_(\w+)2\./;
+
+ if ($mod_path && -e $mod_path) {
+ $test_config->preamble(IfModule => "!mod_$sym.c",
+ qq{LoadModule ${sym}_module "$mod_path"\n});
+ }
+ }
+
$test_config->preamble_register(qw(configure_libmodperl
configure_env));

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org

Subject User Time
[patch] http://rt.cpan.org/Public/Bug/Display.html?id=21554 fred at redhotpenguin Apr 19, 2009, 1:53 AM
    Re: [patch] http://rt.cpan.org/Public/Bug/Display.html?id=21554 adam.prime at utoronto Apr 19, 2009, 6:57 AM
        Re: [patch] http://rt.cpan.org/Public/Bug/Display.html?id=21554 fred at redhotpenguin Apr 19, 2009, 12:12 PM
    Re: [patch] http://rt.cpan.org/Public/Bug/Display.html?id=21554 adam.prime at utoronto Apr 20, 2009, 10:15 AM
        Re: [patch] http://rt.cpan.org/Public/Bug/Display.html?id=21554 fred at redhotpenguin Apr 21, 2009, 7:16 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.