pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/bind99



Module Name:    pkgsrc
Committed By:   maya
Date:           Mon Aug 13 13:36:25 UTC 2018

Modified Files:
        pkgsrc/net/bind99: Makefile distinfo
Added Files:
        pkgsrc/net/bind99/patches: patch-lib_isc_unix_socket.c

Log Message:
bind99: Make ENOBUFS a soft error. Needed for netbsd>=8.
See https://gitlab.isc.org/isc-projects/bind9/issues/462
bump PKGREVISION


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 pkgsrc/net/bind99/Makefile
cvs rdiff -u -r1.53 -r1.54 pkgsrc/net/bind99/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/bind99/patches/patch-lib_isc_unix_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/bind99/Makefile
diff -u pkgsrc/net/bind99/Makefile:1.75 pkgsrc/net/bind99/Makefile:1.76
--- pkgsrc/net/bind99/Makefile:1.75     Thu Aug  9 14:51:24 2018
+++ pkgsrc/net/bind99/Makefile  Mon Aug 13 13:36:25 2018
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.75 2018/08/09 14:51:24 taca Exp $
+# $NetBSD: Makefile,v 1.76 2018/08/13 13:36:25 maya Exp $
 
 DISTNAME=      bind-${BIND_VERSION}
 PKGNAME=       ${DISTNAME:S/-P/pl/}
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/
 

Index: pkgsrc/net/bind99/distinfo
diff -u pkgsrc/net/bind99/distinfo:1.53 pkgsrc/net/bind99/distinfo:1.54
--- pkgsrc/net/bind99/distinfo:1.53     Thu Aug  9 14:51:24 2018
+++ pkgsrc/net/bind99/distinfo  Mon Aug 13 13:36:25 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.53 2018/08/09 14:51:24 taca Exp $
+$NetBSD: distinfo,v 1.54 2018/08/13 13:36:25 maya Exp $
 
 SHA1 (bind-9.9.13-P1.tar.gz) = fdc8572a5bde8c25054924cacc8e21f342ff3231
 RMD160 (bind-9.9.13-P1.tar.gz) = 105a3364bd076d9ba59b64fc4571a397b0d4fa12
@@ -11,5 +11,6 @@ SHA1 (patch-config.threads.in) = 227b83e
 SHA1 (patch-configure) = 1e86fab1a82f237dfc7f1a3c09e4ef6095bf973e
 SHA1 (patch-contrib_dlz_config.dlz.in) = f18bec63fbfce7cb2cd72929058ce3770fce458f
 SHA1 (patch-lib_dns_rbt.c) = 267ecae3de33297b18faff46c9855c1ce64b4856
+SHA1 (patch-lib_isc_unix_socket.c) = 7d7db24573d3cca85370b99f3e0e7406bbcc9325
 SHA1 (patch-lib_lwres_getaddrinfo.c) = cda91b6d1afa02de2c59d51490090ef4ab7f1a41
 SHA1 (patch-lib_lwres_getnameinfo.c) = 7ded70795a9001cce5c8094ef3f70ac787a6d43d

Added files:

Index: pkgsrc/net/bind99/patches/patch-lib_isc_unix_socket.c
diff -u /dev/null pkgsrc/net/bind99/patches/patch-lib_isc_unix_socket.c:1.1
--- /dev/null   Mon Aug 13 13:36:25 2018
+++ pkgsrc/net/bind99/patches/patch-lib_isc_unix_socket.c       Mon Aug 13 13:36:25 2018
@@ -0,0 +1,33 @@
+$NetBSD: patch-lib_isc_unix_socket.c,v 1.1 2018/08/13 13:36:25 maya Exp $
+
+Make ENOBUFS a soft error
+https://gitlab.isc.org/isc-projects/bind9/issues/462
+
+--- lib/isc/unix/socket.c.orig 2018-07-24 17:26:35.000000000 +0000
++++ lib/isc/unix/socket.c
+@@ -236,6 +236,7 @@ typedef enum { poll_idle, poll_active, p
+ #define SOFT_ERROR(e) ((e) == EAGAIN || \
+                        (e) == EWOULDBLOCK || \
+                        (e) == EINTR || \
++                       (e) == ENOBUFS || \
+                        (e) == 0)
+ 
+ #define DLVL(x) ISC_LOGCATEGORY_GENERAL, ISC_LOGMODULE_SOCKET, ISC_LOG_DEBUG(x)
+@@ -1743,7 +1744,7 @@ doio_recv(isc__socket_t *sock, isc_socke
+               SOFT_OR_HARD(EHOSTDOWN, ISC_R_HOSTDOWN);
+               /* HPUX 11.11 can return EADDRNOTAVAIL. */
+               SOFT_OR_HARD(EADDRNOTAVAIL, ISC_R_ADDRNOTAVAIL);
+-              ALWAYS_HARD(ENOBUFS, ISC_R_NORESOURCES);
++              SOFT_OR_HARD(ENOBUFS, ISC_R_NORESOURCES);
+               /* Should never get this one but it was seen. */
+ #ifdef ENOPROTOOPT
+               SOFT_OR_HARD(ENOPROTOOPT, ISC_R_HOSTUNREACH);
+@@ -1939,7 +1940,7 @@ doio_send(isc__socket_t *sock, isc_socke
+               ALWAYS_HARD(EHOSTDOWN, ISC_R_HOSTUNREACH);
+ #endif
+               ALWAYS_HARD(ENETUNREACH, ISC_R_NETUNREACH);
+-              ALWAYS_HARD(ENOBUFS, ISC_R_NORESOURCES);
++              SOFT_OR_HARD(ENOBUFS, ISC_R_NORESOURCES);
+               ALWAYS_HARD(EPERM, ISC_R_HOSTUNREACH);
+               ALWAYS_HARD(EPIPE, ISC_R_NOTCONNECTED);
+               ALWAYS_HARD(ECONNRESET, ISC_R_CONNECTIONRESET);



Home | Main Index | Thread Index | Old Index