File: 030-apxs-no-prefix.patch

package info (click to toggle)
libapache2-mod-perl2 2.0.9~1624218-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 11,840 kB
  • sloc: perl: 95,064; ansic: 14,522; makefile: 49; sh: 18
file content (26 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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.

--- libapache2-mod-perl2.orig/Apache-Test/lib/Apache/TestConfigParse.pm
+++ libapache2-mod-perl2/Apache-Test/lib/Apache/TestConfigParse.pm
@@ -87,8 +87,10 @@
                        'user-supplied $base' ],
                  [ $self->{inherit_config}->{ServerRoot},
                        'httpd.conf inherited ServerRoot' ],
-                 [ $self->apxs('PREFIX'),
-                       'apxs-derived ServerRoot' ]);
+                 [ $self->apxs('PREFIX', 1), # ok_fail => 1
+                       'apxs-derived ServerRoot based on PREFIX' ],
+                 [ $self->apxs('SYSCONFDIR'),
+                       'apxs-derived ServerRoot based on SYSCONFDIR' ]);
 
     # remove surrounding quotes if any
     # e.g. Include "/tmp/foo.html"