Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-voip/telepathy-gabble/, net-voip/telepathy-gabble/files/
Date: Sat, 02 Sep 2017 18:00:55
Message-Id: 1504375247.1bafad73070bcd30a41c5a96c1dad04ea840f866.eva@gentoo
1 commit: 1bafad73070bcd30a41c5a96c1dad04ea840f866
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 2 16:32:07 2017 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 2 18:00:47 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bafad73
7
8 net-voip/telepathy-gabble: fix build with USE=-jingle, bug #523230
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 ...lepathy-gabble-0.18.4-build-fix-no-jingle.patch | 29 ++++++++++++++++++++++
13 .../telepathy-gabble-0.18.4.ebuild | 9 ++++++-
14 2 files changed, 37 insertions(+), 1 deletion(-)
15
16 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
17 new file mode 100644
18 index 00000000000..6d25cde8f52
19 --- /dev/null
20 +++ b/net-voip/telepathy-gabble/files/telepathy-gabble-0.18.4-build-fix-no-jingle.patch
21 @@ -0,0 +1,29 @@
22 +From 8801beb5b64952fad15ff0c316bf1eddbde20ba9 Mon Sep 17 00:00:00 2001
23 +From: Gilles Dartiguelongue <eva@g.o>
24 +Date: Sat, 2 Sep 2017 18:23:10 +0200
25 +Subject: [PATCH] Add missing VOIP ifdef guards
26 +
27 +Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=523230
28 +---
29 + src/muc-channel.c | 2 ++
30 + 1 file changed, 2 insertions(+)
31 +
32 +diff --git a/src/muc-channel.c b/src/muc-channel.c
33 +index c0a27a490..9f6e01167 100644
34 +--- a/src/muc-channel.c
35 ++++ b/src/muc-channel.c
36 +@@ -1647,9 +1647,11 @@ gabble_muc_channel_can_be_closed (GabbleMucChannel *chan)
37 + if (g_hash_table_size (priv->tubes) > 0)
38 + return FALSE;
39 +
40 ++#ifdef ENABLE_VOIP
41 + if (priv->calls != NULL || priv->call_requests != NULL
42 + || priv->call_initiating)
43 + return FALSE;
44 ++#endif
45 +
46 + return TRUE;
47 + }
48 +--
49 +2.14.1
50 +
51
52 diff --git a/net-voip/telepathy-gabble/telepathy-gabble-0.18.4.ebuild b/net-voip/telepathy-gabble/telepathy-gabble-0.18.4.ebuild
53 index d9f8cb96c3c..434def47dfb 100644
54 --- a/net-voip/telepathy-gabble/telepathy-gabble-0.18.4.ebuild
55 +++ b/net-voip/telepathy-gabble/telepathy-gabble-0.18.4.ebuild
56 @@ -44,7 +44,9 @@ RDEPEND="
57 DEPEND="${RDEPEND}
58 ${PYTHON_DEPS}
59 >=dev-util/gtk-doc-am-1.17
60 - dev-libs/libxslt"
61 + dev-libs/libxslt
62 + virtual/pkgconfig
63 +"
64 # Twisted tests fail if bad ipv6 setup, upstream bug #30565
65 # Random twisted tests fail with org.freedesktop.DBus.Error.NoReply for some reason
66 # pygobject:2 is needed by twisted-17 for gtk2reactor usage by gabble
67 @@ -58,6 +60,11 @@ DEPEND="${RDEPEND}
68 # ) )
69 #)
70
71 +PATCHES=(
72 + # Fix build with USE=-jingle, bug #523230
73 + "${FILESDIR}"/${P}-build-fix-no-jingle.patch
74 +)
75 +
76 pkg_setup() {
77 python-any-r1_pkg_setup
78 }