pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/bind95 Fix build on OpenSolaris



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6a9eb3a80830
branches:  trunk
changeset: 554840:6a9eb3a80830
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sat Feb 21 14:43:03 2009 +0000

description:
Fix build on OpenSolaris
http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/bind/getaddrinfo.c.patch

diffstat:

 net/bind95/distinfo         |   4 ++--
 net/bind95/patches/patch-ac |  30 ++++++++++++++++++++++++++----
 2 files changed, 28 insertions(+), 6 deletions(-)

diffs (66 lines):

diff -r e9c34dda04fd -r 6a9eb3a80830 net/bind95/distinfo
--- a/net/bind95/distinfo       Sat Feb 21 14:42:48 2009 +0000
+++ b/net/bind95/distinfo       Sat Feb 21 14:43:03 2009 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.5 2009/01/08 09:02:50 adrianp Exp $
+$NetBSD: distinfo,v 1.6 2009/02/21 14:43:03 adrianp Exp $
 
 SHA1 (bind-9.5.1-P1.tar.gz) = 9dad4b6860d807316fc926208767dc08c2ec7b87
 RMD160 (bind-9.5.1-P1.tar.gz) = c9830d0fde66fbca13ec4109c80d39ac88df6a5d
 Size (bind-9.5.1-P1.tar.gz) = 6690710 bytes
 SHA1 (patch-ab) = dd12c457791a75a8b43d9dfd0c0b236dcdbe31a5
-SHA1 (patch-ac) = 4df1ece91d59b2b36fc7a4316604f1c112cf70ba
+SHA1 (patch-ac) = 71a379fcb128013bfbacd87002c27dd90c1844b1
 SHA1 (patch-ad) = 9a46d8de9d84e708ac64df8e4da504176dba05d4
 SHA1 (patch-af) = b21bb5195cdb4deec00e5abd39f5bf2137549c3f
 SHA1 (patch-ag) = 9d61e0f527a76977bf8457355997d201fa37dd4e
diff -r e9c34dda04fd -r 6a9eb3a80830 net/bind95/patches/patch-ac
--- a/net/bind95/patches/patch-ac       Sat Feb 21 14:42:48 2009 +0000
+++ b/net/bind95/patches/patch-ac       Sat Feb 21 14:43:03 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.1.1.1 2008/06/21 23:15:28 adrianp Exp $
+$NetBSD: patch-ac,v 1.2 2009/02/21 14:43:03 adrianp Exp $
 
---- lib/lwres/getaddrinfo.c.orig       2005-06-10 08:54:33.000000000 +0900
+--- lib/lwres/getaddrinfo.c.orig       2007-09-12 21:45:18.000000000 -0700
 +++ lib/lwres/getaddrinfo.c
-@@ -30,6 +30,10 @@
+@@ -142,6 +142,10 @@
  #include <lwres/netdb.h>
  #include <lwres/stdlib.h>
  
@@ -13,7 +13,7 @@
  #define SA(addr)      ((struct sockaddr *)(addr))
  #define SIN(addr)     ((struct sockaddr_in *)(addr))
  #define SIN6(addr)    ((struct sockaddr_in6 *)(addr))
-@@ -252,14 +256,22 @@ lwres_getaddrinfo(const char *hostname, 
+@@ -366,14 +370,22 @@ lwres_getaddrinfo(const char *hostname, 
                        p = strchr(ntmp, '%');
                        ep = NULL;
  
@@ -37,3 +37,25 @@
                        if (p != NULL && ep != NULL && ep[0] == '\0')
                                *p = '\0';
                        else {
+@@ -709,17 +721,17 @@ lwres_freeaddrinfo(struct addrinfo *ai) 
+ static int
+ get_local(const char *name, int socktype, struct addrinfo **res) {
+       struct addrinfo *ai;
+-      struct sockaddr_un *sun;
++      struct sockaddr_un *un;
+ 
+       if (socktype == 0)
+               return (EAI_SOCKTYPE);
+ 
+-      ai = ai_alloc(AF_LOCAL, sizeof(*sun));
++      ai = ai_alloc(AF_LOCAL, sizeof(*un));
+       if (ai == NULL)
+               return (EAI_MEMORY);
+ 
+-      sun = SUN(ai->ai_addr);
+-      strncpy(sun->sun_path, name, sizeof(sun->sun_path));
++      un = SUN(ai->ai_addr);
++      strncpy(un->sun_path, name, sizeof(un->sun_path));
+ 
+       ai->ai_socktype = socktype;
+       /*



Home | Main Index | Thread Index | Old Index