[packages] rtorrent: add patch for upstream ticket 1888, refresh patches (#6146)
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 14 Nov 2009 21:05:24 +0000 (21:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 14 Nov 2009 21:05:24 +0000 (21:05 +0000)
SVN-Revision: 18421

net/rtorrent/Makefile
net/rtorrent/patches/011-fix-bitfield-crash.patch
net/rtorrent/patches/901-upstream_rt_triple.patch
net/rtorrent/patches/903-upstream_issue_1888.patch [new file with mode: 0644]

index e672b91ce4b53362e6cb311478893ea89afb9e99..c371f399b3f6b699189a016c1bca08cf4a83bc19 100644 (file)
@@ -12,7 +12,7 @@ PKG_NAME:=rtorrent
 
 PKG_REV:=1100
 PKG_VERSION:=0.8.5_r$(PKG_REV)
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=svn://rakshasa.no/libtorrent/trunk/rtorrent
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
index 67ef2bc3a523681392c72a1e16794476696614bd..312094dde4ec74f0512d303d021e53540014f15c 100644 (file)
@@ -1,9 +1,7 @@
 # Fix crash when trying to call d.get_bitfield on a closed download. Ticket #1825 from libtorrent.rakshasa.no.
-Index: rtorrent/src/command_download.cc
-===================================================================
---- rtorrent/src/command_download.cc   (revision 1093)
-+++ rtorrent/src/command_download.cc   (working copy)
-@@ -292,6 +292,9 @@
+--- a/src/command_download.cc
++++ b/src/command_download.cc
+@@ -296,6 +296,9 @@
  
  torrent::Object
  retrieve_d_bitfield(core::Download* download) {
index d773acb4bc79786c7579cb01bc9046e37d3f67da..cf9bfd077972d8d9dc539fb9c70eaa76eeb0c0ff 100644 (file)
@@ -10,7 +10,7 @@ In file included from ./../rpc/command_map.h:45,
 
 --- a/src/rpc/command.h
 +++ b/src/rpc/command.h
-@@ -73,10 +73,8 @@ struct rt_triple : private std::pair<T1,
+@@ -87,10 +87,8 @@
    rt_triple(const T1& a, const T2& b, const T3& c) :
      base_type(a, b), third(c) {}
  
diff --git a/net/rtorrent/patches/903-upstream_issue_1888.patch b/net/rtorrent/patches/903-upstream_issue_1888.patch
new file mode 100644 (file)
index 0000000..9040dd2
--- /dev/null
@@ -0,0 +1,31 @@
+--- a/src/command_download.cc
++++ b/src/command_download.cc
+@@ -310,7 +310,7 @@
+   download->download()->signal_network_log(sigc::mem_fun(control->core(), &core::Manager::push_log_complete));
+   download->download()->signal_storage_error(sigc::mem_fun(control->core(), &core::Manager::push_log_complete));
+-  if (!rpc::call_command_string("get_tracker_dump").empty())
++  if (!rpc::call_command_string("get_log.tracker").empty())
+     download->download()->signal_tracker_dump(sigc::ptr_fun(&core::receive_tracker_dump));
+   return torrent::Object();
+--- a/src/core/manager.cc
++++ b/src/core/manager.cc
+@@ -77,7 +77,7 @@
+ void
+ receive_tracker_dump(const std::string& url, const char* data, size_t size) {
+-  const std::string& filename = rpc::call_command_string("get_tracker_dump");
++  const std::string& filename = rpc::call_command_string("get_log.tracker");
+   if (filename.empty())
+     return;
+@@ -94,7 +94,7 @@
+ void
+ Manager::handshake_log(const sockaddr* sa, int msg, int err, const torrent::HashString* hash) {
+-  if (!rpc::call_command_value("get_handshake_log"))
++  if (!rpc::call_command_value("get_log.handshake"))
+     return;
+   
+   std::string peer;