summaryrefslogtreecommitdiff
path: root/app-emulation
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-11-19 19:29:27 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-11-19 19:29:27 +0300
commit4a19d49bf7e4a455c3009fe2c852002a6b85f8cd (patch)
treef1feef8bb0ae4329d58e7eacbed7610794b3000f /app-emulation
parent1684c3b92592a62ee4080b250767231ba197ee13 (diff)
spice: libressl build patch
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/spice/files/spice-libressl.patch13
-rw-r--r--app-emulation/spice/spice-scm.ebuild4
2 files changed, 17 insertions, 0 deletions
diff --git a/app-emulation/spice/files/spice-libressl.patch b/app-emulation/spice/files/spice-libressl.patch
new file mode 100644
index 0000000..2f77fa5
--- /dev/null
+++ b/app-emulation/spice/files/spice-libressl.patch
@@ -0,0 +1,13 @@
+diff --git a/spice-common/common/ssl_verify.c b/spice-common/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/app-emulation/spice/spice-scm.ebuild b/app-emulation/spice/spice-scm.ebuild
index a2fbb4c..b287c3c 100644
--- a/app-emulation/spice/spice-scm.ebuild
+++ b/app-emulation/spice/spice-scm.ebuild
@@ -47,6 +47,10 @@ python_check_deps() {
has_version "dev-python/six[${PYTHON_USEDEP}]"
}
+PATCHES=(
+ "${FILESDIR}/spice-libressl.patch"
+)
+
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && python-any-r1_pkg_setup
}