pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/lighttpd Add upstream patch to fix segfault in __r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb84cbb70ca1
branches:  trunk
changeset: 441077:eb84cbb70ca1
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sun Oct 25 14:59:14 2020 +0000

description:
Add upstream patch to fix segfault in __readdir30 (from
webdav_propfind_dir) on NetBSD. Bump PKGREVISION.

diffstat:

 www/lighttpd/Makefile                        |   4 ++--
 www/lighttpd/distinfo                        |   3 ++-
 www/lighttpd/patches/patch-src_mod__webdav.c |  21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)

diffs (52 lines):

diff -r c40b7cd51329 -r eb84cbb70ca1 www/lighttpd/Makefile
--- a/www/lighttpd/Makefile     Sun Oct 25 14:06:55 2020 +0000
+++ b/www/lighttpd/Makefile     Sun Oct 25 14:59:14 2020 +0000
@@ -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 -r c40b7cd51329 -r eb84cbb70ca1 www/lighttpd/distinfo
--- a/www/lighttpd/distinfo     Sun Oct 25 14:06:55 2020 +0000
+++ b/www/lighttpd/distinfo     Sun Oct 25 14:59:14 2020 +0000
@@ -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 @@
 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 -r c40b7cd51329 -r eb84cbb70ca1 www/lighttpd/patches/patch-src_mod__webdav.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lighttpd/patches/patch-src_mod__webdav.c      Sun Oct 25 14:59:14 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index