From 93a29c32d063aa3240f4e333a5c4fd4ab6bbd922 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 23 Apr 2018 13:36:25 +0200 Subject: [PATCH] aria2: fix libressl-2.7 --- .../patches/patch-src_libssl_compat_h.patch | 16 ++++++++++++++++ srcpkgs/aria2/template | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/aria2/patches/patch-src_libssl_compat_h.patch diff --git a/srcpkgs/aria2/patches/patch-src_libssl_compat_h.patch b/srcpkgs/aria2/patches/patch-src_libssl_compat_h.patch new file mode 100644 index 00000000000..aedaa65199a --- /dev/null +++ b/srcpkgs/aria2/patches/patch-src_libssl_compat_h.patch @@ -0,0 +1,16 @@ +$OpenBSD: patch-src_libssl_compat_h,v 1.1 2018/02/18 11:12:22 sthen Exp $ + +Index: src/libssl_compat.h +--- src/libssl_compat.h.orig ++++ src/libssl_compat.h +@@ -43,7 +43,9 @@ + #define LIBRESSL_IN_USE 0 + #endif // !defined(LIBRESSL_VERSION_NUMBER) + ++/* XXX really OPENSSL_110_API... */ + #define OPENSSL_101_API \ +- (!LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x1010000fL) ++ OPENSSL_VERSION_NUMBER >= 0x1010000fL || \ ++ (LIBRESSL_IN_USE && LIBRESSL_VERSION_NUMBER < 0x2070000fL) + + #endif // LIBSSL_COMPAT_H diff --git a/srcpkgs/aria2/template b/srcpkgs/aria2/template index 1e131b87e18..dca8c00f4ec 100644 --- a/srcpkgs/aria2/template +++ b/srcpkgs/aria2/template @@ -1,7 +1,7 @@ # Template file for 'aria2' pkgname=aria2 version=1.33.1 -revision=2 +revision=3 build_style=gnu-configure configure_args="--with-openssl --with-libexpat --without-gnutls --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt