[packages/libtorrent] Up to 0.16.14

arekm arekm at pld-linux.org
Sun Jun 21 20:32:31 CEST 2026


commit 4302e8d0aca4c50a4cec8e8bdd6e8f54dfbf8712
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Jun 21 20:31:58 2026 +0200

    Up to 0.16.14

 libtorrent-client_list.patch | 28 ++++++++++++++--------------
 libtorrent.spec              |  6 +++---
 2 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/libtorrent.spec b/libtorrent.spec
index ef219e7..442b38b 100644
--- a/libtorrent.spec
+++ b/libtorrent.spec
@@ -7,13 +7,13 @@ Summary:	LibTorrent - a BitTorrent library written in C++ for Unix
 Summary(pl.UTF-8):	LibTorrent - biblioteka BitTorrenta napisana w C++ dla Uniksa
 Name:		libtorrent
 # keep stable line, see URL below
-Version:	0.16.6
+Version:	0.16.14
 Release:	1
 Epoch:		1
 License:	GPL v2+
 Group:		Libraries
 Source0:	https://github.com/rakshasa/rtorrent/releases/download/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	e43a3282d4d7f31aa02257acea029474
+# Source0-md5:	31bc5594a46439026b2de36197dfb369
 Patch0:		%{name}-client_list.patch
 URL:		https://github.com/rakshasa/rtorrent/wiki
 BuildRequires:	autoconf >= 2.50
@@ -110,7 +110,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS README.md
 %attr(755,root,root) %{_libdir}/libtorrent.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtorrent.so.36
+%attr(755,root,root) %ghost %{_libdir}/libtorrent.so.44
 
 %files devel
 %defattr(644,root,root,755)
diff --git a/libtorrent-client_list.patch b/libtorrent-client_list.patch
index 069f87c..d8e7838 100644
--- a/libtorrent-client_list.patch
+++ b/libtorrent-client_list.patch
@@ -1,6 +1,6 @@
---- libtorrent-0.15.5/src/torrent/peer/client_list.cc~	2025-07-07 14:23:46.000000000 +0200
-+++ libtorrent-0.15.5/src/torrent/peer/client_list.cc	2025-07-07 14:28:54.586475195 +0200
-@@ -60,7 +60,7 @@ ClientList::ClientList() {
+--- libtorrent-0.16.14/src/torrent/peer/client_list.cc	2026-06-14 10:04:09.000000000 +0200
++++ libtorrent-0.16.14/src/torrent/peer/client_list.cc	2026-06-21 20:25:38.802150537 +0200
+@@ -24,7 +24,7 @@
    insert_helper(ClientInfo::TYPE_AZUREUS, "qB", NULL, NULL, "qBittorrent");
    insert_helper(ClientInfo::TYPE_AZUREUS, "UT", NULL, NULL, "uTorrent");
    insert_helper(ClientInfo::TYPE_AZUREUS, "TR", NULL, NULL, "Transmission");
@@ -9,7 +9,7 @@
    insert_helper(ClientInfo::TYPE_AZUREUS, "AZ", NULL, NULL, "Vuze");
    insert_helper(ClientInfo::TYPE_AZUREUS, "UM", NULL, NULL, "uTorrent Mac");
    insert_helper(ClientInfo::TYPE_AZUREUS, "LT", NULL, NULL, "libtorrent");
-@@ -70,6 +70,7 @@ ClientList::ClientList() {
+@@ -34,6 +34,7 @@
    insert_helper(ClientInfo::TYPE_AZUREUS, "BC", NULL, NULL, "BitComet");
    insert_helper(ClientInfo::TYPE_AZUREUS, "XL", NULL, NULL, "Xunlei");
    insert_helper(ClientInfo::TYPE_AZUREUS, "SD", NULL, NULL, "Xunlei");
@@ -17,7 +17,7 @@
  
    // Other clients.
    insert_helper(ClientInfo::TYPE_AZUREUS, "7T", NULL, NULL, "aTorrent");
-@@ -146,7 +147,7 @@ ClientList::ClientList() {
+@@ -110,7 +111,7 @@
    insert_helper(ClientInfo::TYPE_AZUREUS, "RS", NULL, NULL, "Rufus");
    insert_helper(ClientInfo::TYPE_AZUREUS, "RT", NULL, NULL, "Retriever");
    insert_helper(ClientInfo::TYPE_AZUREUS, "RZ", NULL, NULL, "RezTorrent");
@@ -26,7 +26,7 @@
    insert_helper(ClientInfo::TYPE_AZUREUS, "S~", NULL, NULL, "Shareaza alpha/beta");
    insert_helper(ClientInfo::TYPE_AZUREUS, "SB", NULL, NULL, "SwiftBit");
    insert_helper(ClientInfo::TYPE_AZUREUS, "SG", NULL, NULL, "GS Torrent");
-@@ -171,6 +177,13 @@ ClientList::retrieve_id(ClientInfo* dest
+@@ -202,6 +203,13 @@
        std::isxdigit(id[3]) && std::isxdigit(id[4]) && std::isxdigit(id[5]) && std::isxdigit(id[6])) {
      dest->set_type(ClientInfo::TYPE_AZUREUS);
  
@@ -39,9 +39,9 @@
 +
      dest->mutable_key()[0] = id[1];
      dest->mutable_key()[1] = id[2];
-     
-@@ -178,15 +191,22 @@ ClientList::retrieve_id(ClientInfo* dest
-       dest->mutable_version()[i] = dest->mutable_upper_version()[i] = rak::hexchar_to_value(id[3 + i]);
+ 
+@@ -209,15 +217,22 @@
+       dest->mutable_version()[i] = dest->mutable_upper_version()[i] = utils::hex_to_value_or_zero(id[3 + i]);
  
    } else if (std::isalpha(id[0]) && id[4] == '-' &&
 -             std::isxdigit(id[1]) && std::isxdigit(id[2]) && std::isxdigit(id[3])) {
@@ -50,17 +50,17 @@
  
      dest->mutable_key()[0] = id[0];
      dest->mutable_key()[1] = '\0';
-     
+ 
 +    // T03G = BitTornado 0.3.16
 +    char id3;
 +    if (id[3] > 'F' && id[3] < 'a')
 +      id3 = id[3] - 'F' + 0xF;
 +    else
-+      id3 = rak::hexchar_to_value(id[3]);
++      id3 = utils::hex_to_value_or_zero(id[3]);
 +
-     dest->mutable_version()[0] = dest->mutable_upper_version()[0] = rak::hexchar_to_value(id[1]);
-     dest->mutable_version()[1] = dest->mutable_upper_version()[1] = rak::hexchar_to_value(id[2]);
--    dest->mutable_version()[2] = dest->mutable_upper_version()[2] = rak::hexchar_to_value(id[3]);
+     dest->mutable_version()[0] = dest->mutable_upper_version()[0] = utils::hex_to_value_or_zero(id[1]);
+     dest->mutable_version()[1] = dest->mutable_upper_version()[1] = utils::hex_to_value_or_zero(id[2]);
+-    dest->mutable_version()[2] = dest->mutable_upper_version()[2] = utils::hex_to_value_or_zero(id[3]);
 +    dest->mutable_version()[2] = dest->mutable_upper_version()[2] = id3;
      dest->mutable_version()[3] = dest->mutable_upper_version()[3] = '\0';
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtorrent.git/commitdiff/4302e8d0aca4c50a4cec8e8bdd6e8f54dfbf8712



More information about the pld-cvs-commit mailing list