From 7b5b1cc555ec5fad62e95decfb54001429c38579 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Wed, 28 Aug 2024 20:35:21 +0200 Subject: [PATCH] libtorrent: update to openssl3 --- net-libs/libtorrent/libtorrent-0.13.8.recipe | 4 +-- .../patches/libtorrent-0.13.8.patchset | 36 ++++++++++++++----- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/net-libs/libtorrent/libtorrent-0.13.8.recipe b/net-libs/libtorrent/libtorrent-0.13.8.recipe index 25282f8aa..f8369fd6f 100644 --- a/net-libs/libtorrent/libtorrent-0.13.8.recipe +++ b/net-libs/libtorrent/libtorrent-0.13.8.recipe @@ -4,7 +4,7 @@ with the goals of being efficient and easy to use." HOMEPAGE="http://libtorrent.rakshasa.no/" COPYRIGHT="2005-2019 Jari Sundell" LICENSE="GNU LGPL v2" -REVISION="1" +REVISION="2" SOURCE_URI="https://github.com/rakshasa/rtorrent/releases/download/v0.9.8/libtorrent-$portVersion.tar.gz" CHECKSUM_SHA256="ed115a28f4ae8cfcd33b94a597c076ca74fd549867a26e4fac9505c27288e983" PATCHES="libtorrent-$portVersion.patchset" @@ -40,7 +40,7 @@ REQUIRES_devel=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libcppunit$secondaryArchSuffix - devel:libcrypto$secondaryArchSuffix + devel:libcrypto$secondaryArchSuffix >= 3 devel:libgettextlib$secondaryArchSuffix devel:libz$secondaryArchSuffix " diff --git a/net-libs/libtorrent/patches/libtorrent-0.13.8.patchset b/net-libs/libtorrent/patches/libtorrent-0.13.8.patchset index aeac92efb..1339c89de 100644 --- a/net-libs/libtorrent/patches/libtorrent-0.13.8.patchset +++ b/net-libs/libtorrent/patches/libtorrent-0.13.8.patchset @@ -1,13 +1,11 @@ -From 3a221c1f3a413103a32aea71451ab7cd82222edf Mon Sep 17 00:00:00 2001 +From 1b4728925f0211e3a37cf7e2843bd17ba9be2286 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Thu, 3 Jan 2019 11:47:05 +0300 Subject: Fix build on Haiku diff --git a/src/net/socket_fd.cc b/src/net/socket_fd.cc -old mode 100755 -new mode 100644 -index 54cb6de..fba9d7c +index f04059f..7967ac0 100644 --- a/src/net/socket_fd.cc +++ b/src/net/socket_fd.cc @@ -70,9 +70,11 @@ SocketFd::set_priority(priority_type p) { @@ -23,10 +21,10 @@ index 54cb6de..fba9d7c } -- -2.19.1 +2.45.2 -From 6ca0922b9b43d10199357c1e4a97506431452ad5 Mon Sep 17 00:00:00 2001 +From 97f5eca7cba7e1663408166f1f770929f3316e67 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Mon, 4 Mar 2019 15:51:53 +0300 Subject: Workaround a bug "rtorrent: Could not allocate socket for listening." @@ -34,7 +32,7 @@ Subject: Workaround a bug "rtorrent: Could not allocate socket for listening." https://github.com/rakshasa/rtorrent/issues/820#issuecomment-455900997 diff --git a/src/net/socket_fd.cc b/src/net/socket_fd.cc -index fba9d7c..725e76e 100644 +index 7967ac0..9e39f6c 100644 --- a/src/net/socket_fd.cc +++ b/src/net/socket_fd.cc @@ -128,40 +128,14 @@ SocketFd::get_error() const { @@ -83,5 +81,27 @@ index fba9d7c..725e76e 100644 bool -- -2.19.1 +2.45.2 + + +From a733b858c06a76b4c1082b0910400d97fbaba7f9 Mon Sep 17 00:00:00 2001 +From: PulkoMandy +Date: Wed, 28 Aug 2024 20:34:48 +0200 +Subject: Define _GNU_SOURCE for pthread_setname_np + + +diff --git a/src/torrent/utils/thread_base.cc b/src/torrent/utils/thread_base.cc +index 778e4c3..9df7906 100644 +--- a/src/torrent/utils/thread_base.cc ++++ b/src/torrent/utils/thread_base.cc +@@ -33,6 +33,7 @@ + // + // Skomakerveien 33 + // 3185 Skoppum, NORWAY ++#define _GNU_SOURCE + + #include "config.h" + +-- +2.45.2