File: 01-fake-installed-apache.patch

package info (click to toggle)
libapreq2 2.12-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,508 kB
  • ctags: 3,271
  • sloc: sh: 9,031; ansic: 8,008; perl: 5,804; cpp: 380; makefile: 284
file content (20 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fake that Apache is installed.
 Instead of checking version number with apache2 -v, we hard-code a working
 version. This enables the package to be built without installing a running
 Apache on the building host.
Author: Steinar H. Gunderson <sesse@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2010-02-28

--- libapreq2-2.12.orig/build/version_check.pl
+++ libapreq2-2.12/build/version_check.pl
@@ -6,7 +6,7 @@ GetOptions(\my %opts, "version=s");
 my ($tool, $path) = @ARGV;
 $path = $tool unless defined $path;
 
-sub exe_version { scalar qx/$path -v/ }
+sub exe_version { return "2.0.53"; }
 sub gnu_version { scalar qx/$path --version/ }
 
 sub xsb_version {