diff options
author | Remko van der Vossen | 2012-05-27 21:15:02 +0900 |
---|---|---|
committer | Vlad Glagolev | 2012-06-14 12:25:01 +0400 |
commit | 30985c29763e6ba06c2fdcd959d146829450582b (patch) | |
tree | 16ba649d61faa5afd4040c455cc79f6319a7ab99 | |
parent | c88245ff7f5d9788e8b2fdec2cce671a0f71797c (diff) |
apache22: fix compilation for pcre8.30
(cherry picked from commit 9d44198c10a1d6765e58874e94d8661f5a4f1bad)
-rw-r--r-- | http/apache22/HISTORY | 3 | ||||
-rwxr-xr-x | http/apache22/PRE_BUILD | 3 | ||||
-rw-r--r-- | http/apache22/pcre830.patch | 20 |
3 files changed, 26 insertions, 0 deletions
diff --git a/http/apache22/HISTORY b/http/apache22/HISTORY index 647088d5e0..e47d6db5d7 100644 --- a/http/apache22/HISTORY +++ b/http/apache22/HISTORY @@ -1,3 +1,6 @@ +2012-05-27 Remko van der Vossen <wich@sourcemage.org> + * PRE_BUILD, pcre830.patch: copied pcre8.30 compat fix from upstream + 2012-01-31 Vlad Glagolev <stealth@sourcemage.org> * DETAILS: updated spell to 2.2.22; SECURITY_PATCH++ (CVE-2011-3368, CVE-2011-3607, CVE-2011-4317, CVE-2012-0021, CVE-2012-0031, diff --git a/http/apache22/PRE_BUILD b/http/apache22/PRE_BUILD new file mode 100755 index 0000000000..daad8c2031 --- /dev/null +++ b/http/apache22/PRE_BUILD @@ -0,0 +1,3 @@ +default_pre_build && +cd $SOURCE_DIRECTORY && +patch -p4 < $SPELL_DIRECTORY/pcre830.patch diff --git a/http/apache22/pcre830.patch b/http/apache22/pcre830.patch new file mode 100644 index 0000000000..c4009fbbd6 --- /dev/null +++ b/http/apache22/pcre830.patch @@ -0,0 +1,20 @@ +--- httpd/httpd/branches/2.2.x/server/util_pcre.c 2005/11/10 15:20:05 332309 ++++ httpd/httpd/branches/2.2.x/server/util_pcre.c 2012/04/04 18:19:19 1309513 +@@ -128,6 +128,7 @@ + const char *errorptr; + int erroffset; + int options = 0; ++int nsub; + + if ((cflags & AP_REG_ICASE) != 0) options |= PCRE_CASELESS; + if ((cflags & AP_REG_NEWLINE) != 0) options |= PCRE_MULTILINE; +@@ -137,7 +138,9 @@ + + if (preg->re_pcre == NULL) return AP_REG_INVARG; + +-preg->re_nsub = pcre_info((const pcre *)preg->re_pcre, NULL, NULL); ++pcre_fullinfo((const pcre *)preg->re_pcre, NULL, ++ PCRE_INFO_CAPTURECOUNT, &nsub); ++preg->re_nsub = (apr_size_t)nsub; + return 0; + } |