Author: igor Date: Sun Dec 28 03:50:17 2014 New Revision: 3089 Log: fix links build with libressl
Added: trunk/links/ trunk/links/links-2.9-libressl-1.patch Added: trunk/links/links-2.9-libressl-1.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/links/links-2.9-libressl-1.patch Sun Dec 28 03:50:17 2014 (r3089) @@ -0,0 +1,43 @@ +Submitted By: Igor Živković <[email protected]> +Date: 2014-12-28 +Initial Package Version: 2.9 +Upstream Status: Not submitted +Origin: Self +Description: Fixes build with LibreSSL. + +diff -Naur links-2.9.orig/configure links-2.9/configure +--- links-2.9.orig/configure 2014-12-19 21:04:31.000000000 +0100 ++++ links-2.9/configure 2014-12-28 12:39:56.068371222 +0100 +@@ -5969,6 +5969,7 @@ + cat > conftest.$ac_ext <<EOF + #line 5969 "configure" + #include "confdefs.h" ++#include <stdint.h> + #include <openssl/ssl.h> + int main() { + SSLeay_add_ssl_algorithms() +@@ -6006,6 +6007,7 @@ + cat > conftest.$ac_ext <<EOF + #line 6006 "configure" + #include "confdefs.h" ++#include <stdint.h> + #include <openssl/ssl.h> + int main() { + SSLeay_add_ssl_algorithms() +diff -Naur links-2.9.orig/https.c links-2.9/https.c +--- links-2.9.orig/https.c 2013-09-20 23:17:00.000000000 +0200 ++++ links-2.9/https.c 2014-12-28 12:39:56.068371222 +0100 +@@ -36,11 +36,8 @@ + unsigned os_pool_size; + + const unsigned char *f = (const unsigned char *)RAND_file_name(cast_char f_randfile, sizeof(f_randfile)); +- if (f && RAND_egd(cast_const_char f) < 0) { +- /* Not an EGD, so read and write to it */ +- if (RAND_load_file(cast_const_char f_randfile, -1)) +- RAND_write_file(cast_const_char f_randfile); +- } ++ if (RAND_load_file(cast_const_char f_randfile, -1)) ++ RAND_write_file(cast_const_char f_randfile); + + os_seed_random(&os_pool, &os_pool_size); + if (os_pool_size) RAND_add(os_pool, os_pool_size, os_pool_size); -- http://lists.linuxfromscratch.org/listinfo/patches FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
