pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/bind910 bind910: Make ENOBUFS a soft error. Needed...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c5c1bbd7d5cf
branches:  trunk
changeset: 383896:c5c1bbd7d5cf
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Aug 13 13:37:14 2018 +0000

description:
bind910: Make ENOBUFS a soft error. Needed for netbsd>=8.
See https://gitlab.isc.org/isc-projects/bind9/issues/462
Bump PKGREVISION.

diffstat:

 net/bind910/Makefile                            |   3 +-
 net/bind910/patches/patch-lib_isc_unix_socket.c |  33 +++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r 786860d4b713 -r c5c1bbd7d5cf net/bind910/Makefile
--- a/net/bind910/Makefile      Mon Aug 13 13:36:25 2018 +0000
+++ b/net/bind910/Makefile      Mon Aug 13 13:37:14 2018 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.42 2018/08/09 14:49:09 taca Exp $
+# $NetBSD: Makefile,v 1.43 2018/08/13 13:37:14 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}/
 
diff -r 786860d4b713 -r c5c1bbd7d5cf net/bind910/patches/patch-lib_isc_unix_socket.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bind910/patches/patch-lib_isc_unix_socket.c   Mon Aug 13 13:37:14 2018 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-lib_isc_unix_socket.c,v 1.1 2018/08/13 13:37:14 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:47.000000000 +0000
++++ lib/isc/unix/socket.c
+@@ -255,6 +255,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)
+@@ -1949,7 +1950,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);
+@@ -2146,7 +2147,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