pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/freeradius Fix build on NetBSD/current.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0bb94128fd0a
branches:  trunk
changeset: 378114:0bb94128fd0a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Mar 31 20:10:49 2018 +0000

description:
Fix build on NetBSD/current.

diffstat:

 net/freeradius/distinfo                          |   4 ++--
 net/freeradius/patches/patch-src_lib_udpfromto.c |  17 ++++++++++++++---
 2 files changed, 16 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r fb73a0101dc2 -r 0bb94128fd0a net/freeradius/distinfo
--- a/net/freeradius/distinfo   Sat Mar 31 20:10:08 2018 +0000
+++ b/net/freeradius/distinfo   Sat Mar 31 20:10:49 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2017/09/09 22:46:57 joerg Exp $
+$NetBSD: distinfo,v 1.34 2018/03/31 20:10:49 joerg Exp $
 
 SHA1 (freeradius-server-3.0.15.tar.bz2) = f651142a31b514fc80d888fe8ab5040cbfdd546e
 RMD160 (freeradius-server-3.0.15.tar.bz2) = 46d2d491b71516c6db7659e46e1ec44c7fbf9d1f
@@ -11,4 +11,4 @@
 SHA1 (patch-rlm_krb5_configure) = e97f0efe85c449d3b8a9aa450b6b7d1d0e4c6b89
 SHA1 (patch-rlm_perl_configure) = 577d6f0df7322ee12a99aafcdcc2d0b40e89eb69
 SHA1 (patch-rlm_yubikey_configure) = ea62cc0e87da014befbd0ad79f68dc852dc0f254
-SHA1 (patch-src_lib_udpfromto.c) = 28322d32ed95c40b59d26072261ea29f5cd2e4da
+SHA1 (patch-src_lib_udpfromto.c) = c8fce29e2b481820f1cc2196577f7d38bb549e1c
diff -r fb73a0101dc2 -r 0bb94128fd0a net/freeradius/patches/patch-src_lib_udpfromto.c
--- a/net/freeradius/patches/patch-src_lib_udpfromto.c  Sat Mar 31 20:10:08 2018 +0000
+++ b/net/freeradius/patches/patch-src_lib_udpfromto.c  Sat Mar 31 20:10:49 2018 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-src_lib_udpfromto.c,v 1.1 2017/09/09 22:46:57 joerg Exp $
+$NetBSD: patch-src_lib_udpfromto.c,v 1.2 2018/03/31 20:10:49 joerg Exp $
 
 Only use IP_PKTINFO if the configure checks for the necessary members
-passed.
+passed. Use either IP_PKTINFO or IP_SENDSRCADDR, but not both.
 
---- src/lib/udpfromto.c.orig   2017-09-09 18:10:18.070426265 +0000
+--- src/lib/udpfromto.c.orig   2017-07-17 12:43:00.000000000 +0000
 +++ src/lib/udpfromto.c
 @@ -386,11 +386,11 @@ int sendfromto(int s, void *buf, size_t 
        msgh.msg_name = to;
@@ -19,3 +19,14 @@
                struct cmsghdr *cmsg;
                struct in_pktinfo *pkt;
  
+@@ -405,9 +405,7 @@ int sendfromto(int s, void *buf, size_t 
+               pkt = (struct in_pktinfo *) CMSG_DATA(cmsg);
+               memset(pkt, 0, sizeof(*pkt));
+               pkt->ipi_spec_dst = s4->sin_addr;
+-#  endif
+-
+-#  ifdef IP_SENDSRCADDR
++#  elif defined(IP_SENDSRCADDR)
+               struct cmsghdr *cmsg;
+               struct in_addr *in;
+ 



Home | Main Index | Thread Index | Old Index