Skip to content

Commit

Permalink
wget: add patch from openbsd to compile against libressl
Browse files Browse the repository at this point in the history
  • Loading branch information
rofl0r committed Jul 12, 2014
1 parent 1880c62 commit 234185c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions KEEP/wget-libressl.patch
@@ -0,0 +1,15 @@
$OpenBSD: patch-src_openssl_c,v 1.7 2014/04/19 12:14:15 sthen Exp $
--- a/src/openssl.c Sat Apr 19 06:12:48 2014
+++ b/src/openssl.c Sat Apr 19 06:13:18 2014
@@ -86,9 +86,11 @@ init_prng (void)
if (RAND_status ())
return;

+#ifdef HAVE_SSL_RAND_EGD
/* Get random data from EGD if opt.egd_file was used. */
if (opt.egd_file && *opt.egd_file)
RAND_egd (opt.egd_file);
+#endif

if (RAND_status ())
return;
1 change: 1 addition & 0 deletions pkg/wget
Expand Up @@ -9,6 +9,7 @@ sha512=e21f409306869ad5ca956b9cfe4605f5945a8594004b83c3287ffc1b4f25f3ea91275923e
http://ftp.gnu.org/gnu/wget/wget-1.13.tar.xz

[build]
patch -p1 < "$K"/wget-libressl.patch || exit 1
printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > tests/Makefile.in
[ -n "$CROSS_COMPILE" ] && \
xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
Expand Down

0 comments on commit 234185c

Please sign in to comment.