Bug 198765

Summary: [PATCH] www/links: Make EGD conditional/Fix build with LibreSSL
Product: Ports & Packages Reporter: Bernard Spil <brnrd>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (bf)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
svn diff for www/links
none
Poudriere build log for www/links
none
svn diff for www/links
none
Poudriere build log for www/links
none
svn diff for www/links 2.9,1
none
Poudriere build log for www/links 2.9,1
none
svn diff for www/links 2.9,1 none

Description Bernard Spil freebsd_committer freebsd_triage 2015-03-21 12:47:57 UTC
Created attachment 154620 [details]
svn diff for www/links

www/links 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.
Comment 1 Bernard Spil freebsd_committer freebsd_triage 2015-03-21 12:48:17 UTC
Created attachment 154621 [details]
Poudriere build log for www/links
Comment 2 Brendan Fabeny freebsd_committer freebsd_triage 2015-04-25 09:40:20 UTC
I agree that we want to support LibreSSL, but this patch is far too large and unwieldy.  I'll advise upstream of the problem, and distill a smaller set of changes from the patch.
Comment 3 Bernard Spil freebsd_committer freebsd_triage 2015-04-25 10:57:11 UTC
Created attachment 155969 [details]
svn diff for www/links

Hi Brendan,

The large patch is largely due to the autoconf version of the included configure script
+-# Generated automatically using autoconf version 2.13 
++# Generated by GNU Autoconf 2.69.
I've refactored the patch so configure only adds the libcrypto RAND_egd check making the patch a lot smaller. Works fine here!
Comment 4 Bernard Spil freebsd_committer freebsd_triage 2015-04-25 10:58:06 UTC
Created attachment 155970 [details]
Poudriere build log for www/links
Comment 5 Bernard Spil freebsd_committer freebsd_triage 2015-04-27 14:30:08 UTC
Created attachment 156043 [details]
svn diff for www/links 2.9,1

Patch updated for 2.9,1
Comment 6 Bernard Spil freebsd_committer freebsd_triage 2015-04-27 14:31:57 UTC
Created attachment 156044 [details]
Poudriere build log for www/links 2.9,1
Comment 7 Bernard Spil freebsd_committer freebsd_triage 2015-10-24 11:10:54 UTC
Created attachment 162413 [details]
svn diff for www/links 2.9,1

After the addition of the OPENSSL_NO_EGD define the patch can be greatly reduced as requested by maintainer.
Comment 8 Rene Ladan freebsd_committer freebsd_triage 2016-06-27 21:49:37 UTC
Maintainer reset.
Comment 9 Bernard Spil freebsd_committer freebsd_triage 2016-07-02 10:17:56 UTC
Version 2.13 fixes building without RAND_egd