From 7162c6a20a9e2d742412f5e983048de87c3ae9ad Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 15 Jul 2014 18:11:01 +0200 Subject: [PATCH] libldap: libressl RAND_egd() patch. --- srcpkgs/libldap/patches/libressl.patch | 15 +++++++++++++++ srcpkgs/libldap/template | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libldap/patches/libressl.patch diff --git a/srcpkgs/libldap/patches/libressl.patch b/srcpkgs/libldap/patches/libressl.patch new file mode 100644 index 00000000000..04ee8b60e10 --- /dev/null +++ b/srcpkgs/libldap/patches/libressl.patch @@ -0,0 +1,15 @@ +--- libraries/libldap/tls_o.c.orig 2014-07-15 18:08:35.841431410 +0200 ++++ libraries/libldap/tls_o.c 2014-07-15 18:09:10.681720371 +0200 +@@ -1128,10 +1128,11 @@ tlso_seed_PRNG( const char *randfile ) + * The fact is that when $HOME is NULL, .rnd is used. + */ + randfile = RAND_file_name( buffer, sizeof( buffer ) ); +- ++#ifdef HAVE_SSL_RAND_EGD + } else if (RAND_egd(randfile) > 0) { + /* EGD socket */ + return 0; ++#endif + } + + if (randfile == NULL) { diff --git a/srcpkgs/libldap/template b/srcpkgs/libldap/template index 44ab69e58a5..a3bef7b82a8 100644 --- a/srcpkgs/libldap/template +++ b/srcpkgs/libldap/template @@ -1,7 +1,7 @@ # Template file for 'libldap' pkgname=libldap version=2.4.38 -revision=3 +revision=4 wrksrc="openldap-${version}" build_style=gnu-configure configure_args="--enable-dynamic --enable-proctitle --with-tls