pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/ntp4



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Oct  7 10:15:03 UTC 2020

Modified Files:
        pkgsrc/net/ntp4: distinfo
Added Files:
        pkgsrc/net/ntp4/patches: patch-sntp_libevent_evutil__rand.c

Log Message:
ntp4: Don't assume arc4random_addrandom() is available.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pkgsrc/net/ntp4/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/ntp4/patches/patch-sntp_libevent_evutil__rand.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/ntp4/distinfo
diff -u pkgsrc/net/ntp4/distinfo:1.33 pkgsrc/net/ntp4/distinfo:1.34
--- pkgsrc/net/ntp4/distinfo:1.33       Wed Oct  7 09:09:39 2020
+++ pkgsrc/net/ntp4/distinfo    Wed Oct  7 10:15:02 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2020/10/07 09:09:39 sjmulder Exp $
+$NetBSD: distinfo,v 1.34 2020/10/07 10:15:02 jperkin Exp $
 
 SHA1 (ntp-4.2.8p15.tar.gz) = e34e5b6f48c3ed1bbcfb03080dec1b8f91e19381
 RMD160 (ntp-4.2.8p15.tar.gz) = 4653211d8c258a4a9edf1b2445a77223330176a2
@@ -33,6 +33,7 @@ SHA1 (patch-ntpdc_Makefile.in) = 6afaf91
 SHA1 (patch-ntpq_ntpq.c) = 0776827a712e2f6636b9d322ae7445d184f3709f
 SHA1 (patch-sntp_libevent_build-aux_config.guess) = 5f5fff42d04daef5fcbba2bc09b015fb4489ca59
 SHA1 (patch-sntp_libevent_build-aux_config.sub) = 178e8b39138e49db7702c4bb84fe92550d14a978
+SHA1 (patch-sntp_libevent_evutil__rand.c) = b9fbeae496be49860910c1fcab98cc0519bb6645
 SHA1 (patch-sntp_libopts_autoopts.h) = 9f46171eb6982d1ee57b70286e9436aef763554d
 SHA1 (patch-sntp_libopts_enum.c) = 7d6624ed84a6ea6f85b4de4c37480041a7603252
 SHA1 (patch-sntp_libopts_usage.c) = ec77942c98965c13de625b930db3458d5b81d28b

Added files:

Index: pkgsrc/net/ntp4/patches/patch-sntp_libevent_evutil__rand.c
diff -u /dev/null pkgsrc/net/ntp4/patches/patch-sntp_libevent_evutil__rand.c:1.1
--- /dev/null   Wed Oct  7 10:15:03 2020
+++ pkgsrc/net/ntp4/patches/patch-sntp_libevent_evutil__rand.c  Wed Oct  7 10:15:02 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-sntp_libevent_evutil__rand.c,v 1.1 2020/10/07 10:15:02 jperkin Exp $
+
+Don't assume arc4random_addrandom() is available.
+
+--- sntp/libevent/evutil_rand.c.orig   2014-03-04 08:33:31.000000000 +0000
++++ sntp/libevent/evutil_rand.c
+@@ -195,8 +195,10 @@ evutil_secure_rng_get_bytes(void *buf, s
+ void
+ evutil_secure_rng_add_bytes(const char *buf, size_t n)
+ {
++#ifndef __sun
+       arc4random_addrandom((unsigned char*)buf,
+           n>(size_t)INT_MAX ? INT_MAX : (int)n);
++#endif
+ }
+ 
+ void



Home | Main Index | Thread Index | Old Index