net-voip/telepathy-gabble: fix build with USE=-jingle, bug #523230
authorGilles Dartiguelongue <eva@gentoo.org>
Sat, 2 Sep 2017 16:32:07 +0000 (18:32 +0200)
committerGilles Dartiguelongue <eva@gentoo.org>
Sat, 2 Sep 2017 18:00:47 +0000 (20:00 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-build-fix-no-jingle.patch [new file with mode: 0644]
net-voip/telepathy-gabble/telepathy-gabble-0.18.4.ebuild

diff --git a/net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-build-fix-no-jingle.patch b/net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-build-fix-no-jingle.patch
new file mode 100644 (file)
index 0000000..6d25cde
--- /dev/null
@@ -0,0 +1,29 @@
+From 8801beb5b64952fad15ff0c316bf1eddbde20ba9 Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Sat, 2 Sep 2017 18:23:10 +0200
+Subject: [PATCH] Add missing VOIP ifdef guards
+
+Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=523230
+---
+ src/muc-channel.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/muc-channel.c b/src/muc-channel.c
+index c0a27a490..9f6e01167 100644
+--- a/src/muc-channel.c
++++ b/src/muc-channel.c
+@@ -1647,9 +1647,11 @@ gabble_muc_channel_can_be_closed (GabbleMucChannel *chan)
+   if (g_hash_table_size (priv->tubes) > 0)
+     return FALSE;
+ 
++#ifdef ENABLE_VOIP
+   if (priv->calls != NULL || priv->call_requests != NULL
+       || priv->call_initiating)
+     return FALSE;
++#endif
+ 
+   return TRUE;
+ }
+-- 
+2.14.1
+
index d9f8cb96c3c8d50448791d7a75954959cec73d48..434def47dfbf4f1f11ee64efac7d95cceb67770b 100644 (file)
@@ -44,7 +44,9 @@ RDEPEND="
 DEPEND="${RDEPEND}
        ${PYTHON_DEPS}
        >=dev-util/gtk-doc-am-1.17
-       dev-libs/libxslt"
+       dev-libs/libxslt
+       virtual/pkgconfig
+"
 # Twisted tests fail if bad ipv6 setup, upstream bug #30565
 # Random twisted tests fail with org.freedesktop.DBus.Error.NoReply for some reason
 # pygobject:2 is needed by twisted-17 for gtk2reactor usage by gabble
@@ -58,6 +60,11 @@ DEPEND="${RDEPEND}
 #      ) )
 #)
 
+PATCHES=(
+       # Fix build with USE=-jingle, bug #523230
+       "${FILESDIR}"/${P}-build-fix-no-jingle.patch
+)
+
 pkg_setup() {
        python-any-r1_pkg_setup
 }