From 8ed70926ddd0eef1491623d323174abdb3370034 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 30 Mar 2016 13:02:20 +0200 Subject: [PATCH] boost: libressl-2.3 compat --- srcpkgs/boost/patches/libressl-2.3.patch | 25 ++++++++++++++++++++++++ srcpkgs/boost/template | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/boost/patches/libressl-2.3.patch diff --git a/srcpkgs/boost/patches/libressl-2.3.patch b/srcpkgs/boost/patches/libressl-2.3.patch new file mode 100644 index 0000000000..bfb523e0bf --- /dev/null +++ b/srcpkgs/boost/patches/libressl-2.3.patch @@ -0,0 +1,25 @@ +--- boost/asio/ssl/impl/context.ipp.orig 2016-03-30 12:59:18.922289572 +0200 ++++ boost/asio/ssl/impl/context.ipp 2016-03-30 13:01:04.776294357 +0200 +@@ -89,6 +89,14 @@ + handle_ = ::SSL_CTX_new(::SSLv2_server_method()); + break; + #endif // defined(OPENSSL_NO_SSL2) ++#if defined(OPENSSL_NO_SSL3) ++ case context::sslv3: ++ case context::sslv3_client: ++ case context::sslv3_server: ++ boost::asio::detail::throw_error( ++ boost::asio::error::invalid_argument, "context"); ++ break; ++#else // defined(OPENSSL_NO_SSL3) + case context::sslv3: + handle_ = ::SSL_CTX_new(::SSLv3_method()); + break; +@@ -98,6 +106,7 @@ + case context::sslv3_server: + handle_ = ::SSL_CTX_new(::SSLv3_server_method()); + break; ++#endif // defined(OPENSSL_NO_SSL3) + case context::tlsv1: + handle_ = ::SSL_CTX_new(::TLSv1_method()); + break; diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template index 511270adda..cffa479e3c 100644 --- a/srcpkgs/boost/template +++ b/srcpkgs/boost/template @@ -1,7 +1,7 @@ # Template file for 'boost' pkgname=boost version=1.58.0 -revision=6 +revision=7 wrksrc="${pkgname}_${version//\./_}" hostmakedepends="bzip2-devel" makedepends="zlib-devel bzip2-devel icu-devel"