pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/p5-IO-Interface Fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5f956ef87db8
branches:  trunk
changeset: 352538:5f956ef87db8
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Sep 16 08:47:48 2016 +0000

description:
Fix build on SunOS.

diffstat:

 net/p5-IO-Interface/distinfo         |   4 ++--
 net/p5-IO-Interface/patches/patch-aa |  26 +++++++++++++++++++++++---
 2 files changed, 25 insertions(+), 5 deletions(-)

diffs (51 lines):

diff -r 3c476d4d3484 -r 5f956ef87db8 net/p5-IO-Interface/distinfo
--- a/net/p5-IO-Interface/distinfo      Fri Sep 16 06:49:49 2016 +0000
+++ b/net/p5-IO-Interface/distinfo      Fri Sep 16 08:47:48 2016 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.8 2016/08/16 13:09:16 mef Exp $
+$NetBSD: distinfo,v 1.9 2016/09/16 08:47:48 jperkin Exp $
 
 SHA1 (IO-Interface-1.09.tar.gz) = 5cd764267ccd8b4a2495217a982d11c2d54cb666
 RMD160 (IO-Interface-1.09.tar.gz) = 9437908763a989cbd72493fb3239a207f602df36
 SHA512 (IO-Interface-1.09.tar.gz) = a23a4793e23ba0fbb0583c6692d7138e4a9b0a6959c9fa81489954090fa51ca6edfe79841a8f69ab7f7a52aec31a477cb01705f6d66d5c7e8b69f76301360cd5
 Size (IO-Interface-1.09.tar.gz) = 16414 bytes
-SHA1 (patch-aa) = 9a2da80746f38679e231df7c5abf8d0d5ec2fd45
+SHA1 (patch-aa) = ef565ac31332a52c4afc8fad0e9aafcadf7b6919
diff -r 3c476d4d3484 -r 5f956ef87db8 net/p5-IO-Interface/patches/patch-aa
--- a/net/p5-IO-Interface/patches/patch-aa      Fri Sep 16 06:49:49 2016 +0000
+++ b/net/p5-IO-Interface/patches/patch-aa      Fri Sep 16 08:47:48 2016 +0000
@@ -1,7 +1,9 @@
-$NetBSD: patch-aa,v 1.2 2016/08/16 13:09:17 mef Exp $
+$NetBSD: patch-aa,v 1.3 2016/09/16 08:47:48 jperkin Exp $
 
---- lib/IO/Interface.xs~       2014-12-10 01:41:30.000000000 +0900
-+++ lib/IO/Interface.xs        2016-08-16 22:00:11.000000000 +0900
+Suport NetBSD and SunOS.
+
+--- lib/IO/Interface.xs.orig   2014-12-09 16:41:30.000000000 +0000
++++ lib/IO/Interface.xs
 @@ -442,6 +442,9 @@ if_addr(sock, name, ...)
         operation = SIOCGIFADDR;
         }
@@ -12,3 +14,21 @@
         if (ifr.ifr_addr.sa_family != AF_INET) croak ("Address is not in the AF_INET family.\n");
         RETVAL = inet_ntoa(((struct sockaddr_in*) &ifr.ifr_addr)->sin_addr);
       }
+@@ -587,7 +590,7 @@ if_hwaddr(sock, name, ...)
+      char           *newaddr,hwaddr[128];
+      CODE:
+    {
+-#if !((defined(HAS_IOCTL) && defined(SIOCGIFHWADDR)) || defined(USE_GETIFADDRS))
++#if !((defined(HAS_IOCTL) && defined(SIOCGIFHWADDR)) || defined(USE_GETIFADDRS)) || defined(__sun)
+      XSRETURN_UNDEF;
+ #endif
+ #if (defined(USE_GETIFADDRS) && defined(HAVE_SOCKADDR_DL_STRUCT))
+@@ -620,7 +623,7 @@ if_hwaddr(sock, name, ...)
+      freeifaddrs(ifap);
+ 
+      RETVAL = hwaddr;
+-#elif (defined(HAS_IOCTL) && defined(SIOCGIFHWADDR))
++#elif (defined(HAS_IOCTL) && defined(SIOCGIFHWADDR)) && !defined(__sun)
+      bzero((void*)&ifr,sizeof(struct ifreq));
+      strncpy(ifr.ifr_name,name,IFNAMSIZ-1);
+      ifr.ifr_hwaddr.sa_family = AF_UNSPEC;



Home | Main Index | Thread Index | Old Index