aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2018-02-07 23:55:49 +0800
committerpawel <pawel@FreeBSD.org>2018-02-07 23:55:49 +0800
commitc6ed01515f1c52b81fed3cc9746c7d381b82f727 (patch)
tree41dc54c55675c50f6cdf3b8d75eeda97a8e489ce /deskutils
parentfbe7c1510e5889093824a136292f5834fa829dfe (diff)
downloadfreebsd-ports-gnome-c6ed01515f1c52b81fed3cc9746c7d381b82f727.tar.gz
freebsd-ports-gnome-c6ed01515f1c52b81fed3cc9746c7d381b82f727.tar.zst
freebsd-ports-gnome-c6ed01515f1c52b81fed3cc9746c7d381b82f727.zip
Fix build with LibreSSL:
./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_set_read' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_get_data' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_set_write' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_set_ctrl' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_set_puts' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_free' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_new' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_set_init' ./.libs/libspice-client-glib-2.0.so: undefined reference to `EVP_PKEY_get0_RSA' ./.libs/libspice-client-glib-2.0.so: undefined reference to `ASN1_STRING_get0_data' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_get_new_index' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_set_data' cc: error: linker command failed with exit code 1 (use -v to see invocation) Patches were submitted and accepted by upstream: https://lists.freedesktop.org/archives/spice-commits/2018-January/004276.html https://lists.freedesktop.org/archives/spice-commits/2018-January/004277.html PR: 225407 Submitted by: myself Approved by: maintainer timeout
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/spice-gtk/files/patch-libressl33
1 files changed, 33 insertions, 0 deletions
diff --git a/deskutils/spice-gtk/files/patch-libressl b/deskutils/spice-gtk/files/patch-libressl
new file mode 100644
index 000000000000..98b670bf70f3
--- /dev/null
+++ b/deskutils/spice-gtk/files/patch-libressl
@@ -0,0 +1,33 @@
+--- src/bio-gio.c.orig 2017-01-13 14:00:07 UTC
++++ 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,
+--- src/spice-channel.c.orig 2018-01-21 15:48:25 UTC
++++ src/spice-channel.c
+@@ -55,7 +55,7 @@ static void spice_channel_reset_capabilities(SpiceChan
+ 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) {
+--- spice-common/common/ssl_verify.c.orig 2018-01-21 15:52:12 UTC
++++ 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);