File: 0001-Skip-t-protocol-pseudo_http.t-incompatible-with-Apac.patch

package info (click to toggle)
libapache2-mod-perl2 2.0.10-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,912 kB
  • sloc: perl: 97,665; ansic: 14,478; makefile: 47; sh: 18
file content (38 lines) | stat: -rw-r--r-- 1,451 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
From 9bf8845a7409b238bf8d624d033618230dae3c2b Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Sun, 8 May 2016 23:23:14 +0300
Subject: [PATCH] Skip t/protocol/pseudo_http.t, incompatible with Apache >=
 2.4.20

See Message-ID: <CACsi250G0azcA-XyJHGLxacpDEg_ezJ=tAUs31PyB7G_8-X6+A@mail.gmail.com>:

  Effectively, mod_access_compat.c never supported per-connection
  IP addresses since it was added.  The fact that it supported
  per-connection hostname comparison was a quirk, and that the
  pseudo_http tests only looked at hostname and not ip comparisons
  was an oversight.

https://mail-archives.apache.org/mod_mbox/httpd-dev/201604.mbox/%3CCACsi250G0azcA-XyJHGLxacpDEg_ezJ=tAUs31PyB7G_8-X6+A@mail.gmail.com%3E

Bug-Debian: https://bugs.debian.org/820824
---
 t/protocol/pseudo_http.t | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/t/protocol/pseudo_http.t b/t/protocol/pseudo_http.t
index 586c6ac..6e8bc81 100644
--- a/t/protocol/pseudo_http.t
+++ b/t/protocol/pseudo_http.t
@@ -22,6 +22,9 @@ my $passbad  = "foObaR";
 # blocking socket bug fixed in 2.0.52
 my $ok = $^O !~ /^(Open|Net)BSD$/i || need_min_apache_version('2.0.52');
 
+# Incompatible with Apache >= 2.4.20 <https://bugs.debian.org/820824>
+$ok = 0 if have_min_apache_version("2.4.20");
+
 my @modules = ();
 push @modules, 'mod_access_compat.c' if have_min_apache_version("2.4.0");
 plan tests => 13, need need_auth, need_access, @modules, $ok;
-- 
2.8.1