Wed Mar 8 13:37:55 2017 UTC ()
Update patch for current define naming.  Fixes SunOS build.


(jperkin)
diff -r1.33 -r1.34 pkgsrc/devel/libevent/distinfo
diff -r1.2 -r1.3 pkgsrc/devel/libevent/patches/patch-evutil__rand.c

cvs diff -r1.33 -r1.34 pkgsrc/devel/libevent/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libevent/distinfo 2017/02/15 17:34:37 1.33
+++ pkgsrc/devel/libevent/distinfo 2017/03/08 13:37:55 1.34
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.33 2017/02/15 17:34:37 adam Exp $ 1$NetBSD: distinfo,v 1.34 2017/03/08 13:37:55 jperkin Exp $
2 2
3SHA1 (libevent-2.1.8-stable.tar.gz) = 2a1b8bb7a262d3fd0ed6a080a20991a6eed675ec 3SHA1 (libevent-2.1.8-stable.tar.gz) = 2a1b8bb7a262d3fd0ed6a080a20991a6eed675ec
4RMD160 (libevent-2.1.8-stable.tar.gz) = 6c7ce8cb51279f9b6b8d8897192db6a2da3d6797 4RMD160 (libevent-2.1.8-stable.tar.gz) = 6c7ce8cb51279f9b6b8d8897192db6a2da3d6797
5SHA512 (libevent-2.1.8-stable.tar.gz) = a2fd3dd111e73634e4aeb1b29d06e420b15c024d7b47778883b5f8a4ff320b5057a8164c6d50b53bd196c79d572ce2639fe6265e03a93304b09c22b41e4c2a17 5SHA512 (libevent-2.1.8-stable.tar.gz) = a2fd3dd111e73634e4aeb1b29d06e420b15c024d7b47778883b5f8a4ff320b5057a8164c6d50b53bd196c79d572ce2639fe6265e03a93304b09c22b41e4c2a17
6Size (libevent-2.1.8-stable.tar.gz) = 1026485 bytes 6Size (libevent-2.1.8-stable.tar.gz) = 1026485 bytes
7SHA1 (patch-Makefile.in) = 09c7524eb8657e1f76232db97273806a8c900219 7SHA1 (patch-Makefile.in) = 09c7524eb8657e1f76232db97273806a8c900219
8SHA1 (patch-evutil__rand.c) = 28f7e540e85d1e13f7ca71b2dff22eafb1a804b1 8SHA1 (patch-evutil__rand.c) = 92af79099f2344cbda7ce4d23e10835df583999b

cvs diff -r1.2 -r1.3 pkgsrc/devel/libevent/patches/Attic/patch-evutil__rand.c (expand / switch to unified diff)

--- pkgsrc/devel/libevent/patches/Attic/patch-evutil__rand.c 2017/02/15 17:34:37 1.2
+++ pkgsrc/devel/libevent/patches/Attic/patch-evutil__rand.c 2017/03/08 13:37:55 1.3
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1$NetBSD: patch-evutil__rand.c,v 1.2 2017/02/15 17:34:37 adam Exp $ 1$NetBSD: patch-evutil__rand.c,v 1.3 2017/03/08 13:37:55 jperkin Exp $
2 2
3Native illumos arc4random(3C) imported the latest OpenBSD API which 3Native illumos arc4random(3C) imported the latest OpenBSD API which
4does not have arc4random_addrandom(). 4does not have arc4random_addrandom().
5 5
6--- evutil_rand.c.orig 2013-11-01 18:18:57.000000000 +0000 6--- evutil_rand.c.orig 2013-11-01 18:18:57.000000000 +0000
7+++ evutil_rand.c 7+++ evutil_rand.c
8@@ -195,7 +195,9 @@ evutil_secure_rng_get_bytes(void *buf, s 8@@ -195,7 +195,9 @@ evutil_secure_rng_get_bytes(void *buf, s
9 void 9 void
10 evutil_secure_rng_add_bytes(const char *buf, size_t n) 10 evutil_secure_rng_add_bytes(const char *buf, size_t n)
11 { 11 {
12+#if !(defined(_EVENT_HAVE_ARC4RANDOM) && defined(__sun)) 12+#if !(defined(EVENT__HAVE_ARC4RANDOM) && defined(__sun))
13 arc4random_addrandom((unsigned char*)buf, 13 arc4random_addrandom((unsigned char*)buf,
14 n>(size_t)INT_MAX ? INT_MAX : (int)n); 14 n>(size_t)INT_MAX ? INT_MAX : (int)n);
15+#endif 15+#endif
16 } 16 }
17  17