Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/deluge/files/
Date: Fri, 04 Mar 2016 08:44:51
Message-Id: 1456757067.c7a49e7c181fd8041bdfa9c62a9971dd3b98392d.idella4@gentoo
1 commit: c7a49e7c181fd8041bdfa9c62a9971dd3b98392d
2 Author: Paolo Pedroni <paolo.pedroni <AT> iol <DOT> it>
3 AuthorDate: Mon Feb 29 14:44:27 2016 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 29 14:44:27 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a49e7c
7
8 net-p2p/deluge: remove unused patch
9
10 This file is no longer needed
11
12 ...uge-1.3.5-rb_libtorrent-disable-python-bindings | 60 ----------------------
13 1 file changed, 60 deletions(-)
14
15 diff --git a/net-p2p/deluge/files/deluge-1.3.5-rb_libtorrent-disable-python-bindings b/net-p2p/deluge/files/deluge-1.3.5-rb_libtorrent-disable-python-bindings
16 deleted file mode 100644
17 index 301019e..0000000
18 --- a/net-p2p/deluge/files/deluge-1.3.5-rb_libtorrent-disable-python-bindings
19 +++ /dev/null
20 @@ -1,60 +0,0 @@
21 -https://bugs.gentoo.org/show_bug.cgi?id=437356
22 -
23 -From 37ea2854a21e50debdf7bc953a3411e5934b74d9 Mon Sep 17 00:00:00 2001
24 -From: Calum Lind <calumlind+deluge@×××××.com>
25 -Date: Thu, 27 Sep 2012 16:53:22 +0000
26 -Subject: Fix 2160 : Disable use of python bindings for libtorrent extensions and replace with session flag
27 -
28 -The fixes a GIL issue causing libtorrent segfault. https://code.google.com/p/libtorrent/issues/detail?id=369
29 -
30 -Note: The ut_pex plugin (Peer Exchange) will now always be enabled.
31 ----
32 -diff --git a/deluge/core/core.py b/deluge/core/core.py
33 -index 4bda811..4ca3d96 100644
34 ---- a/deluge/core/core.py
35 -+++ b/deluge/core/core.py
36 -@@ -84,7 +84,10 @@ class Core(component.Component):
37 - while len(version) < 4:
38 - version.append(0)
39 -
40 -- self.session = lt.session(lt.fingerprint("DE", *version), flags=0)
41 -+ # Note: All libtorrent python bindings to set plugins/extensions need to be disabled
42 -+ # due to GIL issue. https://code.google.com/p/libtorrent/issues/detail?id=369
43 -+ # Setting session flags to 1 enables all libtorrent default plugins
44 -+ self.session = lt.session(lt.fingerprint("DE", *version), flags=1)
45 -
46 - # Load the session state if available
47 - self.__load_session_state()
48 -@@ -103,9 +106,11 @@ class Core(component.Component):
49 - self.session.set_settings(self.settings)
50 -
51 - # Load metadata extension
52 -- self.session.add_extension(lt.create_metadata_plugin)
53 -- self.session.add_extension(lt.create_ut_metadata_plugin)
54 -- self.session.add_extension(lt.create_smart_ban_plugin)
55 -+ # Note: All libtorrent python bindings to set plugins/extensions need to be disabled
56 -+ # due to GIL issue. https://code.google.com/p/libtorrent/issues/detail?id=369
57 -+ # self.session.add_extension(lt.create_metadata_plugin)
58 -+ # self.session.add_extension(lt.create_ut_metadata_plugin)
59 -+ # self.session.add_extension(lt.create_smart_ban_plugin)
60 -
61 - # Create the components
62 - self.eventmanager = EventManager()
63 -diff --git a/deluge/core/preferencesmanager.py b/deluge/core/preferencesmanager.py
64 -index 40070bb..2a5cb1b 100644
65 ---- a/deluge/core/preferencesmanager.py
66 -+++ b/deluge/core/preferencesmanager.py
67 -@@ -338,7 +338,10 @@ class PreferencesManager(component.Component):
68 - def _on_set_utpex(self, key, value):
69 - log.debug("utpex value set to %s", value)
70 - if value:
71 -- self.session.add_extension(lt.create_ut_pex_plugin)
72 -+ # Note: All libtorrent python bindings to set plugins/extensions need to be disabled
73 -+ # due to GIL issue. https://code.google.com/p/libtorrent/issues/detail?id=369
74 -+ #self.session.add_extension(lt.create_ut_pex_plugin)
75 -+ pass
76 -
77 - def _on_set_encryption(self, key, value):
78 - log.debug("encryption value %s set to %s..", key, value)
79 ---
80 -cgit v0.9.0.2