commit:     20e14e6a5d031c7112d7346a6abe26324e876bc3
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 10 18:21:02 2018 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Mar 10 18:21:02 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20e14e6a

net-p2p/transmission: fix build with libressl

Closes: https://bugs.gentoo.org/646354
Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81

 net-p2p/transmission/files/transmission-2.93-libressl.patch | 11 +++++++++++
 net-p2p/transmission/transmission-2.93.ebuild               |  1 +
 2 files changed, 12 insertions(+)

diff --git a/net-p2p/transmission/files/transmission-2.93-libressl.patch 
b/net-p2p/transmission/files/transmission-2.93-libressl.patch
new file mode 100644
index 00000000000..8c978ced269
--- /dev/null
+++ b/net-p2p/transmission/files/transmission-2.93-libressl.patch
@@ -0,0 +1,11 @@
+--- a/libtransmission/crypto-utils-openssl.c
++++ b/libtransmission/crypto-utils-openssl.c
+@@ -230,7 +230,7 @@ tr_rc4_process (tr_rc4_ctx_t   handle,
+ ****
+ ***/
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000
++#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
+ static inline int
+ DH_set0_pqg (DH     * dh,
+              BIGNUM * p,

diff --git a/net-p2p/transmission/transmission-2.93.ebuild 
b/net-p2p/transmission/transmission-2.93.ebuild
index d5235cc1c65..f4d38bcde3f 100644
--- a/net-p2p/transmission/transmission-2.93.ebuild
+++ b/net-p2p/transmission/transmission-2.93.ebuild
@@ -52,6 +52,7 @@ DOCS=( AUTHORS NEWS qt/README.txt )
 
 PATCHES=(
        "${FILESDIR}"/libsystemd.patch
+       "${FILESDIR}"/transmission-2.93-libressl.patch
 )
 
 src_prepare() {

Reply via email to