summaryrefslogtreecommitdiff
path: root/net/bind9
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2006-08-28 16:00:45 +0000
committerseb <seb@pkgsrc.org>2006-08-28 16:00:45 +0000
commita4632cd53891cde0b54d6ef14b96c45f44364aa0 (patch)
tree6f517d51325f6143a9b8f40bae041cd42bd60b3d /net/bind9
parent51d6436aedd8a65966a40e96a65c7e25e48c04c8 (diff)
downloadpkgsrc-a4632cd53891cde0b54d6ef14b96c45f44364aa0.tar.gz
Bump PKGREVISION to 1.
Fix build on NetBSD/sparc64 3.x: sync CPP symbols usage between struct addrinfo definition and its usage in getaddrinfo(). While here define struct addrinfo's pad members the same way as in NetBSD's /usr/include/netbsd.h and sync code in lib/bind/irs/getaddrinfo.c:getaddrinfo(). This had been reported to bind9-bugs at isc dot org.
Diffstat (limited to 'net/bind9')
-rw-r--r--net/bind9/Makefile3
-rw-r--r--net/bind9/distinfo4
-rw-r--r--net/bind9/patches/patch-an22
-rw-r--r--net/bind9/patches/patch-ao22
4 files changed, 49 insertions, 2 deletions
diff --git a/net/bind9/Makefile b/net/bind9/Makefile
index 158886f4da9..f9b5fc2811f 100644
--- a/net/bind9/Makefile
+++ b/net/bind9/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.79 2006/08/17 14:14:18 taca Exp $
+# $NetBSD: Makefile,v 1.80 2006/08/28 16:00:45 seb Exp $
DISTNAME= bind-${BIND_VERSION}
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/
diff --git a/net/bind9/distinfo b/net/bind9/distinfo
index 232a89d864e..3568fd76a85 100644
--- a/net/bind9/distinfo
+++ b/net/bind9/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2006/08/17 14:14:18 taca Exp $
+$NetBSD: distinfo,v 1.28 2006/08/28 16:00:45 seb Exp $
SHA1 (bind-9.3.2.tar.gz) = 13efeaf496ed110980088fb5cbe22460f04a0fac
RMD160 (bind-9.3.2.tar.gz) = c825b6308eb374e9bcf9b6ccc48f65d8753c0a6d
@@ -12,3 +12,5 @@ SHA1 (patch-ai) = fbe3b15b2d49e6767c8cfe9d985924c2ad797b9f
SHA1 (patch-aj) = c3bbf84a8a735298552f918ac38331e06a1b68a1
SHA1 (patch-al) = eb6a52d3f865639447ec6f9019c0ea1d2122b772
SHA1 (patch-am) = bb267f13dbd30d492f4dfcf9c278b941efa97bed
+SHA1 (patch-an) = b3e5cd93890aa9a9cec7c14abf1b62ddbf854b14
+SHA1 (patch-ao) = 8a3f8f1b5871af263fc99bc8e552b3ab615bc815
diff --git a/net/bind9/patches/patch-an b/net/bind9/patches/patch-an
new file mode 100644
index 00000000000..7bf9d650dbc
--- /dev/null
+++ b/net/bind9/patches/patch-an
@@ -0,0 +1,22 @@
+$NetBSD: patch-an,v 1.1 2006/08/28 16:00:45 seb Exp $
+
+--- lib/bind/include/netdb.h.orig 2004-11-30 01:15:42.000000000 +0000
++++ lib/bind/include/netdb.h
+@@ -179,9 +179,17 @@ struct addrinfo {
+ int _ai_pad;
+ #endif
+ socklen_t ai_addrlen;
++#elif defined(__NetBSD__)
++#if defined(__sparc__) && defined(_LP64)
++ int _ai_pad;
++#endif
++ socklen_t ai_addrlen;
+ #else
+ size_t ai_addrlen; /* length of ai_addr */
+ #endif
++#if defined(__NetBSD__) && (defined(__alpha__) || (defined(__i386__) && defined(_LP64)))
++ int _ai_pad;
++#endif
+ #ifdef __linux
+ struct sockaddr *ai_addr; /* binary address */
+ char *ai_canonname; /* canonical name for hostname */
diff --git a/net/bind9/patches/patch-ao b/net/bind9/patches/patch-ao
new file mode 100644
index 00000000000..58fc04b6328
--- /dev/null
+++ b/net/bind9/patches/patch-ao
@@ -0,0 +1,22 @@
+$NetBSD: patch-ao,v 1.1 2006/08/28 16:00:45 seb Exp $
+
+--- lib/bind/irs/getaddrinfo.c.orig 2005-07-28 07:43:19.000000000 +0000
++++ lib/bind/irs/getaddrinfo.c
+@@ -332,7 +332,7 @@ getaddrinfo(hostname, servname, hints, r
+ pai->ai_family = PF_UNSPEC;
+ pai->ai_socktype = ANY;
+ pai->ai_protocol = ANY;
+-#ifdef __sparcv9
++#if (defined(sun) && defined(_SOCKLEN_T) && defined(__sparc9)) || (defined(__NetBSD__) && (((defined(__sparc__) || defined(__i386__)) && defined(_LP64)) || defined(__alpha__)))
+ /*
+ * clear _ai_pad to preserve binary
+ * compatibility with previously compiled 64-bit
+@@ -365,7 +365,7 @@ getaddrinfo(hostname, servname, hints, r
+ }
+ memcpy(pai, hints, sizeof(*pai));
+
+-#ifdef __sparcv9
++#if (defined(sun) && defined(_SOCKLEN_T) && defined(__sparc9)) || (defined(__NetBSD__) && (((defined(__sparc__) || defined(__i386__)) && defined(_LP64)) || defined(__alpha__)))
+ /*
+ * We need to clear _ai_pad to preserve binary
+ * compatibility. See prior comment.