components/apache2-modules/mod_perl/patches/TestConfigParse.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Thu, 19 Mar 2015 06:58:47 -0700
branchs11-update
changeset 4018 51079c09956d
parent 278 77b380ba9d84
child 4788 159f02dfcdd3
permissions -rw-r--r--
19780770 Apache 2.4 needs some third party modules too 18605980 Update mod_security2 to 2.8.0 19780705 mod_jk upgrade to version 1.2.40 15812307 SUNBT7194162 upgrade mod_wsgi to version 4.3.0 19617430 mod_wsgi doesn't build if apache 2.4 is installed 20229478 mod_perl test suite wouldn't start/pass due number of reasons

Patch origin: in-house
Patch status: Solaris-specific; not suitable for upstream

This change makes sure that 64 bit modules and mod_fcgid module are not
used for testing. Mod_fcgid is disabled because it by default creates
shared memory and socket in paths which are not suitable for ordinary
user (or there can be interaction with running Apache).

--- mod_perl-2.0.4/Apache-Test/lib/Apache/TestConfigParse.pm
+++ mod_perl-2.0.4/Apache-Test/lib/Apache/TestConfigParse.pm
@@ -211,6 +211,16 @@
     for my $args (@{ $c->{$directive} }) {
         my $modname = $args->[0];
         my $file = $self->server_file_rel2abs($args->[1]);
+	
+        unless ($file !~ m/\/64\//) {
+            debug "$file is 64 bit module (we don't want it)";
+            next;
+        }
+
+        unless ($file !~ m/mod_fcgid.so/) {
+            debug "$file creates shared memory and sockets on wrong place (skipping)";
+            next;
+        }
 
         unless (-e $file) {
             debug "$file does not exist, skipping LoadModule";