diff options
author | schmonz <schmonz@pkgsrc.org> | 2020-10-25 14:59:14 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2020-10-25 14:59:14 +0000 |
commit | 79d84bf279bd748e5b7dbc38d3880e2cb6a15a03 (patch) | |
tree | 148e23106ac2281aac6677b5fdff0e9524948fe7 /www/lighttpd | |
parent | 56a8bb8ced8ac7d051857ddd8fd873c69e5197f5 (diff) | |
download | pkgsrc-79d84bf279bd748e5b7dbc38d3880e2cb6a15a03.tar.gz |
Add upstream patch to fix segfault in __readdir30 (from
webdav_propfind_dir) on NetBSD. Bump PKGREVISION.
Diffstat (limited to 'www/lighttpd')
-rw-r--r-- | www/lighttpd/Makefile | 4 | ||||
-rw-r--r-- | www/lighttpd/distinfo | 3 | ||||
-rw-r--r-- | www/lighttpd/patches/patch-src_mod__webdav.c | 21 |
3 files changed, 25 insertions, 3 deletions
diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile index b5c11635807..4ddb2b1ab45 100644 --- a/www/lighttpd/Makefile +++ b/www/lighttpd/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.89 2020/06/02 08:24:57 adam Exp $ +# $NetBSD: Makefile,v 1.90 2020/10/25 14:59:14 schmonz Exp $ DISTNAME= lighttpd-1.4.55 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= www MASTER_SITES= https://download.lighttpd.net/lighttpd/releases-1.4.x/ EXTRACT_SUFX= .tar.xz diff --git a/www/lighttpd/distinfo b/www/lighttpd/distinfo index 69fb28e6fb9..dd55478d0f3 100644 --- a/www/lighttpd/distinfo +++ b/www/lighttpd/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.55 2020/02/03 11:08:06 nros Exp $ +$NetBSD: distinfo,v 1.56 2020/10/25 14:59:14 schmonz Exp $ SHA1 (lighttpd-1.4.55.tar.xz) = 05747d89467789f8ce6f86f4f3aee6260579d91c RMD160 (lighttpd-1.4.55.tar.xz) = 3ec0c81a6ee286efc998150690c9e39f9606ef28 @@ -6,3 +6,4 @@ SHA512 (lighttpd-1.4.55.tar.xz) = 023d5a54079e710a89a59e259c0b5798103ef6fce4544c Size (lighttpd-1.4.55.tar.xz) = 765660 bytes SHA1 (patch-doc_config_lighttpd.conf) = 9b249155aa29d7d068d48a601f314aa4b62491ef SHA1 (patch-doc_lighttpd.8) = 81b7606752312227b142975d4e781496442e9ed8 +SHA1 (patch-src_mod__webdav.c) = 70cc5b3c563fbabc1328476b4208b04bed50d427 diff --git a/www/lighttpd/patches/patch-src_mod__webdav.c b/www/lighttpd/patches/patch-src_mod__webdav.c new file mode 100644 index 00000000000..4b790a0ce2f --- /dev/null +++ b/www/lighttpd/patches/patch-src_mod__webdav.c @@ -0,0 +1,21 @@ +$NetBSD: patch-src_mod__webdav.c,v 1.1 2020/10/25 14:59:14 schmonz Exp $ + +Add upstream commit ad62991 to define _NETBSD_SOURCE on NetBSD: + +NetBSD dirent.h improperly hides fdopendir() (POSIX.1-2008) declaration +which should be visible w/ _XOPEN_SOURCE 700 or _POSIX_C_SOURCE 200809L + +--- src/mod_webdav.c.orig 2020-02-01 02:49:09.000000000 +0000 ++++ src/mod_webdav.c +@@ -155,6 +155,11 @@ + #if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE-0 < 700 + #undef _XOPEN_SOURCE + #define _XOPEN_SOURCE 700 ++/* NetBSD dirent.h improperly hides fdopendir() (POSIX.1-2008) declaration ++ * which should be visible with _XOPEN_SOURCE 700 or _POSIX_C_SOURCE 200809L */ ++#ifdef __NetBSD__ ++#define _NETBSD_SOURCE ++#endif + #endif + /* DT_UNKNOWN DTTOIF() */ + #ifndef _GNU_SOURCE |