public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rb_libtorrent] rawhide: Update to 2.0.16
@ 2026-11-23 21:52 Michael Cronenworth
0 siblings, 0 replies; only message in thread
From: Michael Cronenworth @ 2026-11-23 21:52 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rb_libtorrent
Branch : rawhide
Commit : cac38db4a1175dd9d09381bf343539bf375bc615
Author : Michael Cronenworth <mike@cchtml.com>
Date : 2026-11-23T15:51:49-06:00
Stats : +6/-66 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rb_libtorrent/c/cac38db4a1175dd9d09381bf343539bf375bc615?branch=rawhide
Log:
Update to 2.0.16
---
diff --git a/8270.patch b/8270.patch
deleted file mode 100644
index 034351d..0000000
--- a/8270.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From 50bd3a46c2c5ccd7298415d1a66ef27c96d0fa2b Mon Sep 17 00:00:00 2001
-From: Chocobo1 <Chocobo1@users.noreply.github.com>
-Date: Sun, 19 Apr 2026 01:01:53 +0800
-Subject: [PATCH] Add support for OpenSSL 4.0
-
-The accessor functions for `ASN1_STRING` are available since OpenSSL 1.0.1 so we are free to use
-them without conditional guards.
-See: https://openssl-library.org/post/2026-04-13-asn1_string/
-
-Closes #8268.
----
- src/torrent.cpp | 20 ++++++++++++--------
- 1 file changed, 12 insertions(+), 8 deletions(-)
-
-diff --git a/src/torrent.cpp b/src/torrent.cpp
-index c6564b67f82..7fcc75b3ed4 100644
---- a/src/torrent.cpp
-+++ b/src/torrent.cpp
-@@ -1630,9 +1630,9 @@ aux::vector<download_priority_t, piece_index_t> file_to_piece_prio(
- GENERAL_NAME* gen = sk_GENERAL_NAME_value(gens, i);
- if (gen->type != GEN_DNS) continue;
- ASN1_IA5STRING* domain = gen->d.dNSName;
-- if (domain->type != V_ASN1_IA5STRING || !domain->data || !domain->length) continue;
-- auto const* torrent_name = reinterpret_cast<char const*>(domain->data);
-- auto const name_length = aux::numeric_cast<std::size_t>(domain->length);
-+ if (ASN1_STRING_type(domain) != V_ASN1_IA5STRING || !ASN1_STRING_get0_data(domain) || !ASN1_STRING_length(domain)) continue;
-+ auto const* torrent_name = reinterpret_cast<char const*>(ASN1_STRING_get0_data(domain));
-+ auto const name_length = aux::numeric_cast<std::size_t>(ASN1_STRING_length(domain));
-
- #ifndef TORRENT_DISABLE_LOGGING
- if (i > 1) names += " | n: ";
-@@ -1654,18 +1654,22 @@ aux::vector<download_priority_t, piece_index_t> file_to_piece_prio(
-
- // no match in the alternate names, so try the common names. We should only
- // use the "most specific" common name, which is the last one in the list.
-+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
-+ X509_NAME const* name = X509_get_subject_name(cert);
-+#else
- X509_NAME* name = X509_get_subject_name(cert);
-+#endif
- int i = -1;
-- ASN1_STRING* common_name = nullptr;
-+ ASN1_STRING const* common_name = nullptr;
- while ((i = X509_NAME_get_index_by_NID(name, NID_commonName, i)) >= 0)
- {
-- X509_NAME_ENTRY* name_entry = X509_NAME_get_entry(name, i);
-+ X509_NAME_ENTRY const* name_entry = X509_NAME_get_entry(name, i);
- common_name = X509_NAME_ENTRY_get_data(name_entry);
- }
-- if (common_name && common_name->data && common_name->length)
-+ if (common_name && ASN1_STRING_get0_data(common_name) && ASN1_STRING_length(common_name))
- {
-- auto const* torrent_name = reinterpret_cast<char const*>(common_name->data);
-- auto const name_length = aux::numeric_cast<std::size_t>(common_name->length);
-+ auto const* torrent_name = reinterpret_cast<char const*>(ASN1_STRING_get0_data(common_name));
-+ auto const name_length = aux::numeric_cast<std::size_t>(ASN1_STRING_length(common_name));
-
- #ifndef TORRENT_DISABLE_LOGGING
- if (!names.empty()) names += " | n: ";
diff --git a/rb_libtorrent.spec b/rb_libtorrent.spec
index 684c636..b522ac8 100644
--- a/rb_libtorrent.spec
+++ b/rb_libtorrent.spec
@@ -1,8 +1,8 @@
%global git_url https://github.com/arvidn/libtorrent
Name: rb_libtorrent
-Version: 2.0.11
-Release: 9%{?dist}
+Version: 2.0.16
+Release: 1%{?dist}
Summary: A C++ BitTorrent library aiming to be the best alternative
# Most of the code is BSD-3-Clause
@@ -18,10 +18,6 @@ Source1: %{name}-README-renames.Fedora
Source2: %{name}-COPYING.Boost
Source3: %{name}-COPYING.zlib
-# Add support for OpenSSL 4.0
-# https://github.com/arvidn/libtorrent/pull/8270
-Patch0: %{git_url}/pull/8270.patch
-
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: ninja-build
@@ -186,6 +182,9 @@ install -p -m 0644 %{SOURCE1} ./README-renames.Fedora
%{python3_sitearch}/libtorrent.cpython-*.so
%changelog
+* Mon Nov 23 2026 Michael Cronenworth <mike@cchtml.com> - 2.0.16-1
+- Upgrade to 2.0.16
+
* Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 2.0.11-9
- Rebuilt for Python 3.15.0b4 ABI change
diff --git a/sources b/sources
index ceb9364..12a224d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libtorrent-rasterbar-2.0.11.tar.gz) = 756fb24c44b5dcf22d0bbc06a812abc28be7388a409e577c71fb02b1ca3005040947244c0ae83bd3388264dd518119736b869397fedd7bdbcd60699b04a19969
+SHA512 (libtorrent-rasterbar-2.0.16.tar.gz) = 266e4bbdf0ac5d6073f8c5bddbba7f2f3c1b4423bb941c5302bf9e0398dc888f90c2394cf6c9921f09857e5a5b2122ee62d5972c31d6afdb870349ad7034d503
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 21:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 21:52 [rpms/rb_libtorrent] rawhide: Update to 2.0.16 Michael Cronenworth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox