git: 076173205c07 - 2026Q3 - net-p2p/{lib,r}torrent: Update to 0.16.22

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Fri, 04 Sep 2026 10:13:39 UTC
The branch 2026Q3 has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=076173205c07cc6497101b0ec2e4fd356f303908

commit 076173205c07cc6497101b0ec2e4fd356f303908
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2026-09-03 21:12:03 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2026-09-04 10:13:26 +0000

    net-p2p/{lib,r}torrent: Update to 0.16.22
    
    This release includes various bugfixes and minor improvements as part of
    a stable series of releases.
    
    ChangeLog:      https://github.com/rakshasa/rtorrent/releases/tag/v0.16.22
    MFH:            2026Q3
    (cherry picked from commit 63270e7b4cead062d5ad64919e8ab3e560bddf29)
---
 net-p2p/libtorrent/Makefile                                  |  2 +-
 net-p2p/libtorrent/distinfo                                  |  6 +++---
 .../libtorrent/files/patch-src_tracker_tracker__worker.cc    | 12 ++++++++++++
 net-p2p/libtorrent/pkg-plist                                 |  4 ++--
 net-p2p/rtorrent/Makefile                                    |  2 +-
 net-p2p/rtorrent/distinfo                                    |  6 +++---
 6 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/net-p2p/libtorrent/Makefile b/net-p2p/libtorrent/Makefile
index bd24523d3652..4b3154742ec7 100644
--- a/net-p2p/libtorrent/Makefile
+++ b/net-p2p/libtorrent/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libtorrent
-DISTVERSION=	0.16.21
+DISTVERSION=	0.16.22
 CATEGORIES=	net-p2p
 MASTER_SITES=	https://github.com/rakshasa/rtorrent/releases/download/v${DISTVERSION}/
 
diff --git a/net-p2p/libtorrent/distinfo b/net-p2p/libtorrent/distinfo
index c92f1708aa7a..e235f3f223e1 100644
--- a/net-p2p/libtorrent/distinfo
+++ b/net-p2p/libtorrent/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1787741304
-SHA256 (libtorrent-0.16.21.tar.gz) = 60d002aedfde061240ee2b9fd3f845e86261c1900b0a4f696c6c03166f6b5fa8
-SIZE (libtorrent-0.16.21.tar.gz) = 929036
+TIMESTAMP = 1788468194
+SHA256 (libtorrent-0.16.22.tar.gz) = 08f6619dcd181ea5d48429ce027888f67a3e14e31135158112d3ec7dcaa240d9
+SIZE (libtorrent-0.16.22.tar.gz) = 932502
diff --git a/net-p2p/libtorrent/files/patch-src_tracker_tracker__worker.cc b/net-p2p/libtorrent/files/patch-src_tracker_tracker__worker.cc
new file mode 100644
index 000000000000..6afe3b7c252f
--- /dev/null
+++ b/net-p2p/libtorrent/files/patch-src_tracker_tracker__worker.cc
@@ -0,0 +1,12 @@
+https://github.com/rakshasa/libtorrent/issues/915
+
+--- src/tracker/tracker_worker.cc.orig	2026-09-03 20:48:03 UTC
++++ src/tracker/tracker_worker.cc
+@@ -2,6 +2,7 @@
+ 
+ #include "tracker_worker.h"
+ 
++#include <sys/socket.h>
+ #include <netinet/in.h>
+ 
+ #include "torrent/exceptions.h"
diff --git a/net-p2p/libtorrent/pkg-plist b/net-p2p/libtorrent/pkg-plist
index aa3aad31da68..f126e168946d 100644
--- a/net-p2p/libtorrent/pkg-plist
+++ b/net-p2p/libtorrent/pkg-plist
@@ -81,6 +81,6 @@ include/torrent/utils/string_manip.h
 include/torrent/utils/unordered_vector.h
 include/torrent/utils/uri_parser.h
 lib/libtorrent.so
-lib/libtorrent.so.49
-lib/libtorrent.so.49.0.0
+lib/libtorrent.so.50
+lib/libtorrent.so.50.0.0
 libdata/pkgconfig/libtorrent.pc
diff --git a/net-p2p/rtorrent/Makefile b/net-p2p/rtorrent/Makefile
index fddea331623a..71cacead18fb 100644
--- a/net-p2p/rtorrent/Makefile
+++ b/net-p2p/rtorrent/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	rtorrent
-DISTVERSION=	0.16.21
+DISTVERSION=	0.16.22
 CATEGORIES=	net-p2p
 MASTER_SITES=	https://github.com/rakshasa/rtorrent/releases/download/v${DISTVERSION}/
 
diff --git a/net-p2p/rtorrent/distinfo b/net-p2p/rtorrent/distinfo
index abdd500f8628..130ec5202dcf 100644
--- a/net-p2p/rtorrent/distinfo
+++ b/net-p2p/rtorrent/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1787744119
-SHA256 (rtorrent-0.16.21.tar.gz) = 90eeee2312c1acf88d6602bbe6d331c9885346040436b87d37b034385e9505b2
-SIZE (rtorrent-0.16.21.tar.gz) = 878955
+TIMESTAMP = 1788469635
+SHA256 (rtorrent-0.16.22.tar.gz) = 4b157f83d93fd6fd3741a018a7397485dec5c080cbf222b336749b7d5f8f63d6
+SIZE (rtorrent-0.16.22.tar.gz) = 879461