From 5dd3d246569c81c942488222aff1e51b2242502d Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 23 Apr 2018 18:08:22 +0200 Subject: [PATCH] erlang: fix libressl-2.7 --- srcpkgs/erlang/patches/fix-libressl.patch | 14 ++++++++++++++ srcpkgs/erlang/template | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/erlang/patches/fix-libressl.patch diff --git a/srcpkgs/erlang/patches/fix-libressl.patch b/srcpkgs/erlang/patches/fix-libressl.patch new file mode 100644 index 00000000000..81144bfb4c9 --- /dev/null +++ b/srcpkgs/erlang/patches/fix-libressl.patch @@ -0,0 +1,14 @@ +--- ./otp_src_20.3/lib/crypto/c_src/crypto.c.orig 2018-04-23 18:04:06.652997515 +0200 ++++ ./otp_src_20.3/lib/crypto/c_src/crypto.c 2018-04-23 18:03:47.480968547 +0200 +@@ -102,8 +102,10 @@ + # undef FIPS_SUPPORT + # endif + ++# if LIBRESSL_VERSION_NUMBER < 0x2070000fL + /* LibreSSL wants the 1.0.1 API */ +-# define NEED_EVP_COMPATIBILITY_FUNCTIONS ++# define NEED_EVP_COMPATIBILITY_FUNCTIONS ++# endif + #endif + + diff --git a/srcpkgs/erlang/template b/srcpkgs/erlang/template index 0950f24e732..f5e7c3c54fa 100644 --- a/srcpkgs/erlang/template +++ b/srcpkgs/erlang/template @@ -1,7 +1,7 @@ # Template file for 'erlang' pkgname=erlang version=20.3 -revision=1 +revision=2 create_wrksrc=yes build_wrksrc=otp_src_${version} build_style=gnu-configure