Bug 198766

Summary: [PATCH] www/links-hacked: Make EGD conditional/Fix build with LibreSSL
Product: Ports & Packages Reporter: Bernard Spil <brnrd>
Component: Individual Port(s)Assignee: Bernard Spil <brnrd>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
svn diff for www/links-hacked
none
Poudriere build log for www/links-hacked
none
svn diff for www/links-hacked none

Description Bernard Spil freebsd_committer freebsd_triage 2015-03-21 13:15:09 UTC
Created attachment 154622 [details]
svn diff for www/links-hacked

www/links-hacked 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 13:17:26 UTC
Created attachment 154623 [details]
Poudriere build log for www/links-hacked

Loads of warnings, ca. 6MB plain
Comment 2 Bernard Spil freebsd_committer freebsd_triage 2015-10-24 11:23:42 UTC
Created attachment 162414 [details]
svn diff for www/links-hacked

After the addition of the OPENSSL_NO_EGD define the patch can be greatly reduced as requested by maintainer.
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-07-02 10:30:06 UTC
A commit references this bug:

Author: brnrd
Date: Sat Jul  2 10:29:48 UTC 2016
New revision: 417919
URL: https://svnweb.freebsd.org/changeset/ports/417919

Log:
  www/links-hacked: Fix build without RAND_egd

    - Add patch for building without EGD (OpenSSL 1.1/LibreSSL)
    - Move from USE_OPENSSL to USES=ssl

  PR:		198766

Changes:
  head/www/links-hacked/Makefile
  head/www/links-hacked/files/patch-https.c