File: 030-apxs-no-prefix.patch

package info (click to toggle)
libapache2-mod-perl2 2.0.11-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,008 kB
  • sloc: perl: 97,778; ansic: 14,487; makefile: 49; sh: 18
file content (24 lines) | stat: -rw-r--r-- 1,055 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Niko Tyni <ntyni@debian.org>
Subject: [PATCH] Apache-Test: Fall back to SYSCONFDIR if PREFIX is not set
Forwarded: http://www.gossamer-threads.com/lists/modperl/dev/105353

Debian and Ubuntu packaged versions of Apache2 don't define PREFIX,
so the build is filled with warnings like
 APXS (/usr/bin/apxs2) query for PREFIX failed

Falling back to SYSCONFDIR (which is /etc/apache2 on Debian)
should be better than failing altogether.

--- a/Apache-Test/lib/Apache/TestConfigParse.pm
+++ b/Apache-Test/lib/Apache/TestConfigParse.pm
@@ -88,7 +88,9 @@ sub server_file_rel2abs {
                  [ $self->{inherit_config}->{ServerRoot},
                        'httpd.conf inherited ServerRoot' ],
                  [ $self->apxs('PREFIX', 1),
-                       'apxs-derived ServerRoot' ]);
+                       'apxs-derived ServerRoot' ],
+                 [ $self->apxs('SYSCONFDIR'),
+                       'apxs-derived ServerRoot based on SYSCONFDIR' ]);
 
     # remove surrounding quotes if any
     # e.g. Include "/tmp/foo.html"