diff options
author | Pacho Ramos <pacho@gentoo.org> | 2016-03-14 20:36:04 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2016-03-14 20:36:38 +0100 |
commit | 4c7b33bdc0f216402e234df1800bd58784ffeec6 (patch) | |
tree | b5cd3cb851943ec0a6338c89f5e1ace0c265f972 /net-voip/telepathy-haze/files | |
parent | x11-themes/xcursor-themes: Add ~arm64 keyword (diff) | |
download | gentoo-4c7b33bdc0f216402e234df1800bd58784ffeec6.tar.gz gentoo-4c7b33bdc0f216402e234df1800bd58784ffeec6.tar.bz2 gentoo-4c7b33bdc0f216402e234df1800bd58784ffeec6.zip |
net-voip/telepathy-haze: Upstream patch to fix a crash, fix compat with latest pidgin (#572296)
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-voip/telepathy-haze/files')
-rw-r--r-- | net-voip/telepathy-haze/files/telepathy-haze-0.8.0-crash.patch | 28 | ||||
-rw-r--r-- | net-voip/telepathy-haze/files/telepathy-haze-0.8.0-pidgin-2.10.12-compat.patch | 22 |
2 files changed, 50 insertions, 0 deletions
diff --git a/net-voip/telepathy-haze/files/telepathy-haze-0.8.0-crash.patch b/net-voip/telepathy-haze/files/telepathy-haze-0.8.0-crash.patch new file mode 100644 index 000000000000..2c480bbd746c --- /dev/null +++ b/net-voip/telepathy-haze/files/telepathy-haze-0.8.0-crash.patch @@ -0,0 +1,28 @@ +From 83589722731dde63118104f75c9ab89f66b21c21 Mon Sep 17 00:00:00 2001 +From: Debarshi Ray <debarshir@freedesktop.org> +Date: Tue, 28 Apr 2015 19:13:39 +0200 +Subject: [PATCH] contact-list: Don't crash if a contact is already in the + roster + +Bug: https://bugs.freedesktop.org/show_bug.cgi?id=47005 +--- + src/contact-list.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/contact-list.c b/src/contact-list.c +index fc46de8..710ed19 100644 +--- a/src/contact-list.c ++++ b/src/contact-list.c +@@ -532,7 +532,8 @@ haze_contact_list_request_subscription (HazeContactList *self, + /* If the buddy already exists, then it should already be on the + * subscribe list. + */ +- g_assert (purple_find_buddy (account, bname) == NULL); ++ if (purple_find_buddy (account, bname) != NULL) ++ return; + + buddy = purple_buddy_new (account, bname, NULL); + +-- +2.1.0 + diff --git a/net-voip/telepathy-haze/files/telepathy-haze-0.8.0-pidgin-2.10.12-compat.patch b/net-voip/telepathy-haze/files/telepathy-haze-0.8.0-pidgin-2.10.12-compat.patch new file mode 100644 index 000000000000..9785debec9ab --- /dev/null +++ b/net-voip/telepathy-haze/files/telepathy-haze-0.8.0-pidgin-2.10.12-compat.patch @@ -0,0 +1,22 @@ +--- a/src/media-stream.c ++++ b/src/media-stream.c +@@ -23,6 +23,7 @@ + #include "config.h" + #include "media-stream.h" + ++#include <libpurple/version.h> + #include <libpurple/media/backend-iface.h> + #include <string.h> + #include <telepathy-glib/dbus.h> +@@ -1076,7 +1077,11 @@ haze_media_stream_new_native_candidate ( + if (proto == TP_MEDIA_STREAM_BASE_PROTO_UDP) + protocol = PURPLE_MEDIA_NETWORK_PROTOCOL_UDP; + else if (proto == TP_MEDIA_STREAM_BASE_PROTO_TCP) ++#if PURPLE_VERSION_CHECK (2, 10, 12) ++ protocol = PURPLE_MEDIA_NETWORK_PROTOCOL_TCP_PASSIVE; ++#else + protocol = PURPLE_MEDIA_NETWORK_PROTOCOL_TCP; ++#endif + else + DEBUG ("Unknown network protocol"); + |