summaryrefslogtreecommitdiff
path: root/net-misc/spice-gtk
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-11-19 19:54:05 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-11-19 19:54:05 +0300
commit1247f661f9d84976ed5d79479625ba2615f1320b (patch)
treee0e1333777008f8c953934d853479a53a5fb7372 /net-misc/spice-gtk
parent4a19d49bf7e4a455c3009fe2c852002a6b85f8cd (diff)
spice-gtk: libressl build patch
Diffstat (limited to 'net-misc/spice-gtk')
-rw-r--r--net-misc/spice-gtk/files/libressl.patch39
-rw-r--r--net-misc/spice-gtk/spice-gtk-scm.ebuild8
2 files changed, 45 insertions, 2 deletions
diff --git a/net-misc/spice-gtk/files/libressl.patch b/net-misc/spice-gtk/files/libressl.patch
new file mode 100644
index 0000000..c42bbcd
--- /dev/null
+++ b/net-misc/spice-gtk/files/libressl.patch
@@ -0,0 +1,39 @@
+diff --git a/spice-common/common/ssl_verify.c b/common/ssl_verify.c
+index a9ed650..27aa5d3 100644
+--- a/spice-common/common/ssl_verify.c
++++ b/spice-common/common/ssl_verify.c
+@@ -33,7 +33,7 @@
+ #include <string.h>
+ #include <gio/gio.h>
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000
++#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
+ static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1)
+ {
+ return M_ASN1_STRING_data(asn1);
+diff --git a/src/bio-gio.c b/src/bio-gio.c
+index 9358fae..15f73ff 100644
+--- a/src/bio-gio.c
++++ b/src/bio-gio.c
+@@ -23,7 +23,7 @@
+ #include "spice-util.h"
+ #include "bio-gio.h"
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000
++#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
+ static BIO_METHOD one_static_bio;
+
+ static int BIO_meth_set_read(BIO_METHOD *biom,
+diff --git a/src/spice-channel.c b/src/spice-channel.c
+index 21f868d..74648d9 100644
+--- a/src/spice-channel.c
++++ b/src/spice-channel.c
+@@ -55,7 +55,7 @@ static void spice_channel_reset_capabilities(SpiceChannel *channel);
+ static void spice_channel_send_migration_handshake(SpiceChannel *channel);
+ static gboolean channel_connect(SpiceChannel *channel, gboolean tls);
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000
++#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
+ static RSA *EVP_PKEY_get0_RSA(EVP_PKEY *pkey)
+ {
+ if (pkey->type != EVP_PKEY_RSA) {
diff --git a/net-misc/spice-gtk/spice-gtk-scm.ebuild b/net-misc/spice-gtk/spice-gtk-scm.ebuild
index c7ef71d..a6a681e 100644
--- a/net-misc/spice-gtk/spice-gtk-scm.ebuild
+++ b/net-misc/spice-gtk/spice-gtk-scm.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
GCONF_DEBUG="no"
WANT_AUTOMAKE="1.12"
VALA_MIN_API_VERSION="0.14"
@@ -79,8 +79,12 @@ DEPEND="${RDEPEND}
# dev-lang/vala:0.14
# dev-lang/perl
+PATCHES=(
+ "${FILESDIR}/libressl.patch"
+)
+
src_prepare() {
- epatch_user
+ default
eautoreconf