Bug 198766 - [PATCH] www/links-hacked: Make EGD conditional/Fix build with LibreSSL
Summary: [PATCH] www/links-hacked: Make EGD conditional/Fix build with LibreSSL
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Bernard Spil
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-03-21 13:15 UTC by Bernard Spil
Modified: 2016-07-02 10:38 UTC (History)
0 users

See Also:


Attachments
svn diff for www/links-hacked (767.61 KB, patch)
2015-03-21 13:15 UTC, Bernard Spil
no flags Details | Diff
Poudriere build log for www/links-hacked (585.07 KB, application/x-gzip)
2015-03-21 13:17 UTC, Bernard Spil
no flags Details
svn diff for www/links-hacked (1.10 KB, patch)
2015-10-24 11:23 UTC, Bernard Spil
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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