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 Update p5-IO-Interface from 1.03 t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71ffb726f43f
branches:  trunk
changeset: 544435:71ffb726f43f
user:      he <he%pkgsrc.org@localhost>
date:      Mon Jul 14 18:13:16 2008 +0000

description:
Update p5-IO-Interface from 1.03 to 1.05.  Changes:

1.05    Fri Jun  6 11:53:21 EDT 2008
        Fix from Mitsuru Yoshida to compile on FreeBSD.

1.04    Wed Dec 26 13:38:53 EST 2007
        Fix from John Lightsey to avoid dmesg warnings on BSD systems.

Also need a local patch because NetBSD doesn't set the address family
on the "netmask" address, apparently this originates from ifconfig.
Work around that by just setting the address family field after ioctl()
and before checking it...

diffstat:

 net/p5-IO-Interface/Makefile         |   4 ++--
 net/p5-IO-Interface/distinfo         |   9 +++++----
 net/p5-IO-Interface/patches/patch-aa |  14 ++++++++++++++
 3 files changed, 21 insertions(+), 6 deletions(-)

diffs (45 lines):

diff -r 10d10de905c8 -r 71ffb726f43f net/p5-IO-Interface/Makefile
--- a/net/p5-IO-Interface/Makefile      Mon Jul 14 17:22:48 2008 +0000
+++ b/net/p5-IO-Interface/Makefile      Mon Jul 14 18:13:16 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2008/06/12 02:14:39 joerg Exp $
+# $NetBSD: Makefile,v 1.13 2008/07/14 18:13:16 he Exp $
 #
 
-DISTNAME=              IO-Interface-1.03
+DISTNAME=              IO-Interface-1.05
 PKGNAME=               p5-${DISTNAME}
 SVR4_PKGNAME=          p5ioi
 CATEGORIES=            net perl5
diff -r 10d10de905c8 -r 71ffb726f43f net/p5-IO-Interface/distinfo
--- a/net/p5-IO-Interface/distinfo      Mon Jul 14 17:22:48 2008 +0000
+++ b/net/p5-IO-Interface/distinfo      Mon Jul 14 18:13:16 2008 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2007/11/13 08:43:46 hiramatsu Exp $
+$NetBSD: distinfo,v 1.5 2008/07/14 18:13:16 he Exp $
 
-SHA1 (IO-Interface-1.03.tar.gz) = 35754a63d26eabd00c43220a7dc7e1fe9b24cf05
-RMD160 (IO-Interface-1.03.tar.gz) = 1594d63a58fcf22b255cb0cf7f0266e1ce4937d5
-Size (IO-Interface-1.03.tar.gz) = 9630 bytes
+SHA1 (IO-Interface-1.05.tar.gz) = 5b195518fbd87175a5bc4c71d426a2e360b99f98
+RMD160 (IO-Interface-1.05.tar.gz) = 540de54311e24619e748116a595c40efd3db3329
+Size (IO-Interface-1.05.tar.gz) = 10219 bytes
+SHA1 (patch-aa) = e4c694f23813fefc9b8e4e83a5286e855a38e0f6
diff -r 10d10de905c8 -r 71ffb726f43f net/p5-IO-Interface/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/p5-IO-Interface/patches/patch-aa      Mon Jul 14 18:13:16 2008 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1 2008/07/14 18:13:16 he Exp $
+
+--- Interface.xs.orig  2008-06-06 17:51:42.000000000 +0200
++++ Interface.xs
+@@ -511,6 +511,9 @@ if_netmask(sock, name, ...)
+         operation = SIOCGIFNETMASK;
+      }
+      if (!Ioctl(sock,operation,&ifr)) XSRETURN_UNDEF;
++#ifdef __NetBSD__
++     ifr.ifr_addr.sa_family = AF_INET;
++#endif
+      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);
+ #endif



Home | Main Index | Thread Index | Old Index