Created attachment 196373 [details] Proposed patch arc4random_addrandom should not be used directly, the interface will be removed soon (bug 230756). Please upstream this patch.
A commit references this bug: Author: delphij Date: Sun Aug 26 07:56:40 UTC 2018 New revision: 478104 URL: https://svnweb.freebsd.org/changeset/ports/478104 Log: devel/libevent: Don't use arc4random_addrandom. PR: 230764, 230756 Approved by: portmgr (antoine) Changes: head/devel/libevent/Makefile head/devel/libevent/files/patch-evutil__rand.c
Upstreamed (techinically, a bug reported by other user) at: https://github.com/libevent/libevent/issues/615 The issue was fixed in their 'master' already.
(In reply to Xin LI from comment #0) > arc4random_addrandom should not be used directly Is this true for all supported FreeBSD releases e.g., on 10.4? arc4random_addrandom() is not a macro, so #ifdef arc4random_addrandom will always return false even if it's available.
(In reply to Jan Beich from comment #3) Hmm that's good point! So the more correct way to do it would be to just remove the code...
No, the correct fix is backporting upstream commit. What you landed is neither consistent with future versions of libevent nor with previous versions of FreeBSD. PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES= 6541168d7037.patch:-p1
Also, what landed doesn't conflict with upstream commit. On future update there's a good chance the port maintainer may not notice it's no longer necessary.