summaryrefslogtreecommitdiff
path: root/devel/apr
diff options
context:
space:
mode:
authordrochner <drochner>2011-05-20 09:23:15 +0000
committerdrochner <drochner>2011-05-20 09:23:15 +0000
commitfae3f4fde3eae843fc678236fa303ff01fcd90c4 (patch)
tree8c3f6ae6ad1eb1a529a94f2f042082e4cc83b8d8 /devel/apr
parent2ce649039b99db2dcabe8ec11ebe163a404c4927 (diff)
downloadpkgsrc-fae3f4fde3eae843fc678236fa303ff01fcd90c4.tar.gz
add patch from upstream tp fix a regression in the last release
which could cause hangs bump PKGREV
Diffstat (limited to 'devel/apr')
-rw-r--r--devel/apr/Makefile3
-rw-r--r--devel/apr/distinfo3
-rw-r--r--devel/apr/patches/patch-aa36
3 files changed, 40 insertions, 2 deletions
diff --git a/devel/apr/Makefile b/devel/apr/Makefile
index 9974f211935..79d78d4b0a2 100644
--- a/devel/apr/Makefile
+++ b/devel/apr/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.62 2011/05/11 18:07:16 tron Exp $
+# $NetBSD: Makefile,v 1.63 2011/05/20 09:23:15 drochner Exp $
DISTNAME= apr-1.4.4
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_APACHE:=apr/}
EXTRACT_SUFX= .tar.bz2
diff --git a/devel/apr/distinfo b/devel/apr/distinfo
index 0753d3ad2db..14797bcaace 100644
--- a/devel/apr/distinfo
+++ b/devel/apr/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.30 2011/05/11 18:07:16 tron Exp $
+$NetBSD: distinfo,v 1.31 2011/05/20 09:23:15 drochner Exp $
SHA1 (apr-1.4.4.tar.bz2) = d05cd65ec169c06174ca7c8978179289777f8dae
RMD160 (apr-1.4.4.tar.bz2) = 3715774150253d024d79fcf3295f39f822229b85
Size (apr-1.4.4.tar.bz2) = 759604 bytes
+SHA1 (patch-aa) = 5fb9bc6157c24884efd5d42179ceec0e0af448eb
diff --git a/devel/apr/patches/patch-aa b/devel/apr/patches/patch-aa
new file mode 100644
index 00000000000..1ce52cd8dce
--- /dev/null
+++ b/devel/apr/patches/patch-aa
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.5 2011/05/20 09:23:15 drochner Exp $
+
+--- strings/apr_fnmatch.c.orig 2011-05-03 04:51:24.000000000 +0000
++++ strings/apr_fnmatch.c
+@@ -196,7 +196,10 @@ APR_DECLARE(int) apr_fnmatch(const char
+ const char *mismatch = NULL;
+ int matchlen = 0;
+
+- while (*pattern)
++ if (*pattern == '*')
++ goto firstsegment;
++
++ while (*pattern && *string)
+ {
+ /* Match balanced slashes, starting a new segment pattern
+ */
+@@ -207,6 +210,7 @@ APR_DECLARE(int) apr_fnmatch(const char
+ ++string;
+ }
+
++firstsegment:
+ /* At the beginning of each segment, validate leading period behavior.
+ */
+ if ((flags & APR_FNM_PERIOD) && (*string == '.'))
+@@ -361,9 +365,9 @@ APR_DECLARE(int) apr_fnmatch(const char
+ return APR_FNM_NOMATCH;
+ }
+
+- /* pattern is at EOS; if string is also, declare success
++ /* Where both pattern and string are at EOS, declare success
+ */
+- if (!*string)
++ if (!*string && !*pattern)
+ return 0;
+
+ /* pattern didn't match to the end of string */