Created attachment 154624 [details] svn diff for security/tlswrap security/tlswrap unconditionally relies on RAND_egd which makes building fail with LibreSSL which has removed EGD. FreeBSD does not require EGD at all, /dev/random has been available since FreeBSD 4.2 This patch checks for the existence of RAND_egd in libcrypto and disables the code using egd.
Created attachment 154625 [details] Poudriere build log for security/tlswrap
This patch failed to define HAVE_RAND_EGD during build because conf.h.in was not updated. I have also reduced the 8635(!) line patch to configure to a 81 line patch.
A commit references this bug: Author: johans Date: Sun Apr 19 14:33:54 UTC 2015 New revision: 384291 URL: https://svnweb.freebsd.org/changeset/ports/384291 Log: security/tlswrap unconditionally relies on RAND_egd which makes building fail with LibreSSL which has removed EGD. FreeBSD does not require EGD at all, /dev/random has been available since FreeBSD 4.2 This patch checks for the existence of RAND_egd in libcrypto and disables the code using egd when it is not available. The default build remains unchanged PR: 198767 Submitted by: Bernard Spil <spil.oss@gmail.com> Changes: head/security/tlswrap/files/ head/security/tlswrap/files/patch-conf.h.in head/security/tlswrap/files/patch-configure head/security/tlswrap/files/patch-configure.in head/security/tlswrap/files/patch-tls.c