summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2018-03-10 13:21:02 -0500
committerMike Gilbert <floppym@gentoo.org>2018-03-10 13:21:02 -0500
commit20e14e6a5d031c7112d7346a6abe26324e876bc3 (patch)
tree59891ef3295c145fd39302c4b070648d0dd34ba7 /net-p2p
parentsys-apps/systemd: bump to 238 (diff)
downloadgentoo-20e14e6a5d031c7112d7346a6abe26324e876bc3.tar.gz
gentoo-20e14e6a5d031c7112d7346a6abe26324e876bc3.tar.bz2
gentoo-20e14e6a5d031c7112d7346a6abe26324e876bc3.zip
net-p2p/transmission: fix build with libressl
Closes: https://bugs.gentoo.org/646354 Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/files/transmission-2.93-libressl.patch11
-rw-r--r--net-p2p/transmission/transmission-2.93.ebuild1
2 files changed, 12 insertions, 0 deletions
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 000000000000..8c978ced269a
--- /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 d5235cc1c656..f4d38bcde3f0 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() {