1
0
forked from pool/libtorrent

libtorrent 0.15.2

This commit is contained in:
2025-03-28 21:50:45 +01:00
parent 792e2f431d
commit 0f717d8e2e
5 changed files with 46 additions and 8 deletions

View File

@@ -0,0 +1,31 @@
From 67cc72ba73c6b3dfa5b133715d5c7a52e6db2ff4 Mon Sep 17 00:00:00 2001
From: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Date: Fri, 28 Mar 2025 20:43:26 +0000
Subject: [PATCH] 0.15.2: Missing header <algorithm>
References: https://github.com/rakshasa/libtorrent/pull/337
>utils/directory_events.cc:118:40: error: no member named 'find_if' in namespace 'std'; did you mean '__find_if'?
> 118 | wd_list::const_iterator itr = std::find_if(m_wd_list.begin(), m_wd_list.end(),
> | ~~~~~^~~~~~~
> | __find_if
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
---
src/torrent/utils/directory_events.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/torrent/utils/directory_events.cc b/src/torrent/utils/directory_events.cc
index 524fdd3e..a0998683 100644
--- a/src/torrent/utils/directory_events.cc
+++ b/src/torrent/utils/directory_events.cc
@@ -5,6 +5,7 @@
#include <string>
#include <errno.h>
#include <unistd.h>
+#include <algorithm>
#ifdef HAVE_INOTIFY
#include <sys/inotify.h>
--
2.49.0

BIN
libtorrent-0.15.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
libtorrent-0.15.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Mar 28 20:41:18 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 0.15.2
* preparation for multi-threaded trackers
* added a thread-safe DNS resolver
- Add 0001-0.15.2-Missing-header-algorithm.patch
-------------------------------------------------------------------
Thu Jan 2 11:53:47 UTC 2025 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libtorrent
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,15 @@
Name: libtorrent
%define lname libtorrent23
Version: 0.15.1
%define lname libtorrent24
Version: 0.15.2
Release: 0
Summary: A BitTorrent library written in C++
License: SUSE-GPL-2.0+-with-openssl-exception
Group: Productivity/Networking/File-Sharing
URL: https://github.com/rakshasa/libtorrent
Source: https://github.com/rakshasa/rtorrent/releases/download/v%version/libtorrent-%version.tar.gz
Patch1: 0001-0.15.2-Missing-header-algorithm.patch
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
@@ -63,7 +63,6 @@ seed speeds than the official client on high-bandwidth links.
%build
export CFLAGS="%optflags -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
export CXXFLAGS="$CXXFLAGS -std=gnu++14"
autoreconf -fiv
%configure --enable-ipv6 --with-posix-fallocate
%make_build