svn commit: r417921 - in head/www/elinks: . files
Bernard Spil
brnrd at FreeBSD.org
Sat Jul 2 10:35:19 UTC 2016
Author: brnrd
Date: Sat Jul 2 10:35:17 2016
New Revision: 417921
URL: https://svnweb.freebsd.org/changeset/ports/417921
Log:
www/elinks: Fix build without RAND_egd
- Add patch for building without EGD (OpenSSL 1.1/LibreSSL)
- Move from USE_OPENSSL to USES=ssl
PR: 198764
Added:
head/www/elinks/files/patch-src_network_ssl_ssl.c (contents, props changed)
Modified:
head/www/elinks/Makefile
Modified: head/www/elinks/Makefile
==============================================================================
--- head/www/elinks/Makefile Sat Jul 2 10:30:15 2016 (r417920)
+++ head/www/elinks/Makefile Sat Jul 2 10:35:17 2016 (r417921)
@@ -11,8 +11,7 @@ MAINTAINER= beat at FreeBSD.org
COMMENT= Links text WWW browser with enhancements
GNU_CONFIGURE= yes
-USES= bison cpe execinfo gmake localbase tar:bzip2
-USE_OPENSSL= yes
+USES= bison cpe execinfo gmake localbase ssl tar:bzip2
CONFIGURE_ARGS= --without-zlib
LIBS+= -lexecinfo
Added: head/www/elinks/files/patch-src_network_ssl_ssl.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/elinks/files/patch-src_network_ssl_ssl.c Sat Jul 2 10:35:17 2016 (r417921)
@@ -0,0 +1,14 @@
+--- src/network/ssl/ssl.c.orig 2009-08-22 13:15:08.000000000 +0200
++++ src/network/ssl/ssl.c 2015-03-21 12:41:15.886709287 +0100
+@@ -49,7 +49,10 @@ init_openssl(struct module *module)
+ * cannot initialize the PRNG and so every attempt to use SSL fails.
+ * It's actually an OpenSSL FAQ, and according to them, it's up to the
+ * application coders to seed the RNG. -- William Yodlowsky */
+- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) {
++#ifndef OPENSSL_NO_EGD
++ if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0)
++#endif
++ {
+ /* Not an EGD, so read and write to it */
+ if (RAND_load_file(f_randfile, -1))
+ RAND_write_file(f_randfile);
More information about the svn-ports-all
mailing list