Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id C1EC61A923A for ; Wed, 7 Oct 2020 10:15:04 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 26FED84DC1; Wed, 7 Oct 2020 10:15:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A34CB84D4C for ; Wed, 7 Oct 2020 10:15:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id FvLm6O_vZdoj for ; Wed, 7 Oct 2020 10:15:03 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 2A20884D29 for ; Wed, 7 Oct 2020 10:15:03 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 1D565FB28; Wed, 7 Oct 2020 10:15:03 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1602065703256980" MIME-Version: 1.0 Date: Wed, 7 Oct 2020 10:15:03 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/net/ntp4 To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20201007101503.1D565FB28@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1602065703256980 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1602065703256980 Content-Disposition: inline Content-Length: 1964 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 --_----------=_1602065703256980--