commit: 678e5ef4ae24332c368f4591c3b68817b126277b Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Wed Nov 5 06:32:59 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Nov 26 02:21:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=678e5ef4
net-p2p/rtorrent: drop 0.9.8-r3, 0.15.1, 0.15.5, 0.16.1 Closes: https://bugs.gentoo.org/946551 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44491 Signed-off-by: Sam James <sam <AT> gentoo.org> net-p2p/rtorrent/Manifest | 4 - .../files/rtorrent-0.15.1-tests-fix-arrays.patch | 144 --------------------- .../files/rtorrent-0.15.3-unbundle_json.patch | 17 --- .../rtorrent/files/rtorrent-0.9.8-bgo891995.patch | 27 ---- .../files/rtorrent-0.9.8-configure-c99.patch | 79 ----------- net-p2p/rtorrent/rtorrent-0.15.1.ebuild | 78 ----------- net-p2p/rtorrent/rtorrent-0.15.5.ebuild | 108 ---------------- net-p2p/rtorrent/rtorrent-0.16.1.ebuild | 110 ---------------- net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild | 78 ----------- 9 files changed, 645 deletions(-) diff --git a/net-p2p/rtorrent/Manifest b/net-p2p/rtorrent/Manifest index acdec426c7a6..cd88ad9c7699 100644 --- a/net-p2p/rtorrent/Manifest +++ b/net-p2p/rtorrent/Manifest @@ -1,6 +1,2 @@ -DIST rtorrent-0.15.1.tar.gz 688056 BLAKE2B 0fd0b3748e1ec13935fa900434ad5d54c6062ea48c5f8cb320d0a30cb318c09f80347ca665c61a7745770c965eee5e1cfa7e96968a2468ad06711b80be5d6e92 SHA512 e5c713601ecb0c4536b64d98ca53261db35980b04a3f274d12f51467b021d77768e7f6a2004a33a76a99f7d96e0a2c3de4605fd7ee186ba05a7c16aa96b97ea5 -DIST rtorrent-0.15.5.tar.gz 866800 BLAKE2B 7e92d127e5104c40b51fdfef8ec73e097d926ed042626cd81df9c4b8b0e951d0ff054bc38efebbbdbc8ef051ae8e7ecb3b31d57b2bd0732a8fed721cf2899c7f SHA512 54888d9a2b37c0e4ebf3e47203c863b1fad5b2e39fa2a563a09c2615f3ff603ee240da86a990a8e24597bc2da32bda98400f661f8241dc1fb16953eebdc20fc0 DIST rtorrent-0.15.7.tar.gz 866976 BLAKE2B e826f55b7411d0f11278a64b1851d4b5ff479b6872e513466d484000032a22d56025d4b04246ecd31b3229d71c0cb9738ac8bb76ed41865ef67dc27e4fe15b6c SHA512 99d8e276fb4044b123a5d8f147f8de521d228087ea13ce702cb8d601a14ce6b69cfbeb9a3d6ff394d49a5b0ae0a597c2dbafa687b550835ba5372e094c6b8ce6 -DIST rtorrent-0.16.1.tar.gz 851083 BLAKE2B d4fdb6aa0c0e1cdb4b82d50b44e27ecd098aa6197373177c19cfdd27f72b4d11f9cd2356f3cc908b3ed054b1fc17b4be42628c9a08d9749eef4392b53f559422 SHA512 d3a34d71d7c55bee7dea1b3702257879ac0e9110d2dd2fcde771230b66b4e8f1234596d6300b4a38f252a6314e5dcf074cd85a89315e9e52abb40f0087b6a687 DIST rtorrent-0.16.4.tar.gz 851592 BLAKE2B d14ee1354b02588882b087cc58c622d687b3dc1d7e0e18b84d2c6de8ce0beb13d552db252c6398a64a4139de3d0082f31e93317fc654a70413369274af23f577 SHA512 3e7b6cf10c2d8a376adff70a5a0d8de1b2c850143e8c697999c912535fe04ac18f39a782c3b914f6a322614ef7f575abfe7a9026ae7ab5e17958fcc4540685f5 -DIST rtorrent-0.9.8.tar.gz 647523 BLAKE2B 3562ed03dee3baa4a702d20c7c91b9248d9de0f25d1f8cd182863101f293a0ef13cb49164e4d16b25e72a4fbe1cc1a2fbde176d3068c749edbcb2287ef260b2b SHA512 016685948d0290694ab9635ae218c7acd876e6d45bea1bdba3a29c545e64f5d824c5e2f6693a4c2e9200196177881d54f312d72e0a19742bd74a03bd19ca05c7 diff --git a/net-p2p/rtorrent/files/rtorrent-0.15.1-tests-fix-arrays.patch b/net-p2p/rtorrent/files/rtorrent-0.15.1-tests-fix-arrays.patch deleted file mode 100644 index 33162f1168cf..000000000000 --- a/net-p2p/rtorrent/files/rtorrent-0.15.1-tests-fix-arrays.patch +++ /dev/null @@ -1,144 +0,0 @@ -https://github.com/rakshasa/rtorrent/issues/1360 -https://github.com/rakshasa/rtorrent/commit/350d03ca04fedc2153927b7bf26d43030e23d962 -https://github.com/rakshasa/rtorrent/commit/c2c6a4be268aee3f74fe4d0abcf944208b8617ba ---- a/test/rpc/xmlrpc_test.cc -+++ b/test/rpc/xmlrpc_test.cc -@@ -15,6 +15,89 @@ - void initialize_command_dynamic(); - - #if defined(HAVE_XMLRPC_TINYXML2) && !defined(HAVE_XMLRPC_C) -+ -+std::vector<std::tuple<std::string, std::string, std::string>> basic_requests = { -+ std::make_tuple("Basic call", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data/></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("Basic call without params", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data/></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("UTF-8 string", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><string>чао</string></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><string>чао</string></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("emoji string", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><string>😊</string></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><string>😊</string></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("base64 data (which gets returned as a string)", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><base64>Zm9vYmFy</base64></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><string>foobar</string></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("i8 ints", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><i8>41</i8></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><i8>41</i8></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("i8 ints", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><i8>2247483647</i8></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><i8>2247483647</i8></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("negative i8 ints", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><i8>-2347483647</i8></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><i8>-2347483647</i8></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("Simple array", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><array><data><value><i8>2247483647</i8></value></data></array></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><array><data><value><i8>2247483647</i8></value></data></array></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("Empty array", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><array><data></data></array></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><array><data/></array></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("Empty struct", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><struct></struct></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><struct/></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("Simple struct", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><struct><member><name>lowerBound</name><value><i8>18</i8></value></member><member><name>upperBound</name><value><i8>139</i8></value></member></struct></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><struct><member><name>lowerBound</name><value><i8>18</i8></value></member><member><name>upperBound</name><value><i8>139</i8></value></member></struct></value></data></array></value></param></params></methodResponse>"), -+ -+ std::make_tuple("Invalid - missing method", -+ "<?xml version=\"1.0\"?><methodCall><methodName>no_such_method</methodName><params><param><value><i8>41</i8></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-506</i8></value></member><member><name>faultString</name><value><string>method 'no_such_method' not defined</string></value></member></struct></fault></methodResponse>"), -+ -+ std::make_tuple("Invalid - i8 target", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><i8>41</i8></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-500</i8></value></member><member><name>faultString</name><value><string>invalid parameters: target must be a string</string></value></member></struct></fault></methodResponse>"), -+ -+ std::make_tuple("Invalid - empty int tag", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><i8/></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-501</i8></value></member><member><name>faultString</name><value><string>unable to parse empty integer</string></value></member></struct></fault></methodResponse>"), -+ -+ std::make_tuple("Invalid - empty int text", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><i8></i8></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-501</i8></value></member><member><name>faultString</name><value><string>unable to parse empty integer</string></value></member></struct></fault></methodResponse>"), -+ -+ std::make_tuple("Invalid - broken XML", -+ "thodCall><methodName>test_a</methodName><params><param><value><i8>41</i8></value></param></params></method", -+ "<?xml version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-503</i8></value></member><member><name>faultString</name><value><string>Error=XML_ERROR_PARSING_ELEMENT ErrorID=6 (0x6) Line number=1: XMLElement name=method</string></value></member></struct></fault></methodResponse>"), -+ -+ std::make_tuple("Invalid - non-integer i8", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><i8>string value</i8></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-501</i8></value></member><member><name>faultString</name><value><string>unable to parse integer value</string></value></member></struct></fault></methodResponse>"), -+ -+ std::make_tuple("Invalid - float i8", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><i8>3.14</i8></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-501</i8></value></member><member><name>faultString</name><value><string>unable to parse integer value</string></value></member></struct></fault></methodResponse>"), -+ -+ std::make_tuple("Invalid - non-boolean boolean", -+ "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><boolean>string value</boolean></value></param></params></methodCall>", -+ "<?xml version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-501</i8></value></member><member><name>faultString</name><value><string>unknown boolean value: string value</string></value></member></struct></fault></methodResponse>") -+}; -+ - void - XmlrpcTest::setUp() { - m_commandItr = m_commands; -@@ -30,36 +113,10 @@ - - void - XmlrpcTest::test_basics() { -- std::ifstream file; file.open("rpc/xmlrpc_test_data.txt"); -- CPPUNIT_ASSERT(file.good()); -- std::vector<std::string> titles; -- std::vector<std::string> inputs; -- std::vector<std::string> outputs; -- std::string line; -- int index = 0; -- // Read file into inputs/outputs -- while (std::getline(file, line)) { -- if (line.size() == 0) { -- continue; -- } -- if (line[0] == '#') { -- titles.push_back(line); -- continue; -- } -- if (index % 2) { -- outputs.push_back(line); -- } else { -- inputs.push_back(line); -- } -- index++; -- } -- -- // Sanity check the above parser -- CPPUNIT_ASSERT_MESSAGE("Could not parse test data", inputs.size() > 0 && inputs.size() == outputs.size() && inputs.size() == titles.size()); -- for (int i = 0; i < inputs.size(); i++) { -+ for (auto& test : basic_requests) { - std::string output; -- m_xmlrpc.process(inputs[i].c_str(), inputs[i].size(), [&output](const char* c, uint32_t l){ output.append(c, l); return true;}); -- CPPUNIT_ASSERT_EQUAL_MESSAGE(titles[i], std::string(outputs[i]), output); -+ m_xmlrpc.process(std::get<1>(test).c_str(), std::get<1>(test).size(), [&output](const char* c, uint32_t l){ output.append(c, l); return true;}); -+ CPPUNIT_ASSERT_EQUAL_MESSAGE(std::get<0>(test), std::get<2>(test), output); - } - } - -@@ -69,7 +126,7 @@ - // valid UTF-8, but doesn't check strings, and Object strings are - // just a series of bytes so it reflects just fine. - std::string input = "<?xml version=\"1.0\"?><methodCall><methodName>xmlrpc_reflect</methodName><params><param><value><string></string></value></param><param><value><string>\xc3\x28</string></value></param></params></methodCall>"; -- std::string expected = "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><value><string>\xc3\x28</string></value></array></value></param></params></methodResponse>"; -+ std::string expected = "<?xml version=\"1.0\"?><methodResponse><params><param><value><array><data><value><string>\xc3\x28</string></value></data></array></value></param></params></methodResponse>"; - std::string output; - m_xmlrpc.process(input.c_str(), input.size(), [&output](const char* c, uint32_t l){ output.append(c, l); return true;}); - CPPUNIT_ASSERT_EQUAL(expected, output); diff --git a/net-p2p/rtorrent/files/rtorrent-0.15.3-unbundle_json.patch b/net-p2p/rtorrent/files/rtorrent-0.15.3-unbundle_json.patch deleted file mode 100644 index 1e0d114a03be..000000000000 --- a/net-p2p/rtorrent/files/rtorrent-0.15.3-unbundle_json.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/src/rpc/jsonrpc.cc b/src/rpc/jsonrpc.cc -index a9fad26..df9c44a 100644 ---- a/src/rpc/jsonrpc.cc -+++ b/src/rpc/jsonrpc.cc -@@ -6,11 +6,11 @@ - #include <string> - #include <torrent/common.h> - #include <torrent/torrent.h> -+#include <nlohmann/json.hpp> - - #include "rpc/rpc_manager.h" - #include "rpc/command.h" - #include "rpc/command_map.h" --#include "rpc/nlohmann/json.h" - #include "rpc/parse_commands.h" - #include "torrent/exceptions.h" - #include "torrent/object.h" diff --git a/net-p2p/rtorrent/files/rtorrent-0.9.8-bgo891995.patch b/net-p2p/rtorrent/files/rtorrent-0.9.8-bgo891995.patch deleted file mode 100644 index 943fe64dddc1..000000000000 --- a/net-p2p/rtorrent/files/rtorrent-0.9.8-bgo891995.patch +++ /dev/null @@ -1,27 +0,0 @@ -https://bugs.gentoo.org/891995 -https://github.com/rakshasa/rtorrent/issues/1205 -https://github.com/rakshasa/rtorrent/pull/1169 - -From 812bba81bc049a5f786282b3654cab294b0ef236 Mon Sep 17 00:00:00 2001 -From: Aleksa Sarai <[email protected]> -Date: Mon, 20 Jun 2022 19:09:57 +1000 -Subject: [PATCH] utils: lockfile: avoid stack overflow for lockfile buffer - -There appears to have been some change on openSUSE (likely some new -hardening flags for builds, or some glibc hardening) such that incorrect -buffer handling results in a segfault even if the buffer is never -overflowed. - -Signed-off-by: Aleksa Sarai <[email protected]> ---- a/src/utils/lockfile.cc -+++ b/src/utils/lockfile.cc -@@ -98,7 +98,8 @@ Lockfile::try_lock() { - int pos = ::gethostname(buf, 255); - - if (pos == 0) { -- ::snprintf(buf + std::strlen(buf), 255, ":+%i\n", ::getpid()); -+ ssize_t len = std::strlen(buf); -+ ::snprintf(buf + len, 255 - len, ":+%i\n", ::getpid()); - int __UNUSED result = ::write(fd, buf, std::strlen(buf)); - } - diff --git a/net-p2p/rtorrent/files/rtorrent-0.9.8-configure-c99.patch b/net-p2p/rtorrent/files/rtorrent-0.9.8-configure-c99.patch deleted file mode 100644 index a2fa67799b8e..000000000000 --- a/net-p2p/rtorrent/files/rtorrent-0.9.8-configure-c99.patch +++ /dev/null @@ -1,79 +0,0 @@ -https://github.com/rakshasa/rtorrent/commit/3f72e2760305936b27904d0080a5fb5600948bd5 - -From 3f72e2760305936b27904d0080a5fb5600948bd5 Mon Sep 17 00:00:00 2001 -From: rakshasa <[email protected]> -Date: Sat, 27 Feb 2021 22:13:01 +0900 -Subject: [PATCH] Replaced custom execinfo autoconf test. - ---- a/configure.ac -+++ b/configure.ac -@@ -20,8 +20,6 @@ TORRENT_DISABLE_IPV6 - - AC_SYS_LARGEFILE - --TORRENT_CHECK_EXECINFO -- - TORRENT_ENABLE_ARCH - TORRENT_WITH_SYSROOT - -@@ -29,6 +27,7 @@ TORRENT_WITHOUT_VARIABLE_FDSET - TORRENT_WITHOUT_STATVFS - TORRENT_WITHOUT_STATFS - -+AX_EXECINFO - AX_PTHREAD([], AC_MSG_ERROR([requires pthread])) - AX_WITH_CURSES - ---- a/scripts/common.m4 -+++ b/scripts/common.m4 -@@ -150,21 +150,6 @@ dnl Need to fix this so that it uses the stuff defined by the system. - ]) - ]) - --AC_DEFUN([TORRENT_CHECK_EXECINFO], [ -- AC_MSG_CHECKING(for execinfo.h) -- -- AC_COMPILE_IFELSE([AC_LANG_SOURCE([ -- #include <execinfo.h> -- int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;} -- ])], -- [ -- AC_MSG_RESULT(yes) -- AC_DEFINE(USE_EXECINFO, 1, Use execinfo.h) -- ], [ -- AC_MSG_RESULT(no) -- ]) --]) -- - AC_DEFUN([TORRENT_CHECK_ALIGNED], [ - AC_MSG_CHECKING(the byte alignment) - ---- a/src/main.cc -+++ b/src/main.cc -@@ -53,7 +53,7 @@ - #include <rak/functional.h> - #include <rak/error_number.h> - --#ifdef USE_EXECINFO -+#ifdef HAVE_BACKTRACE - #include <execinfo.h> - #endif - -@@ -533,7 +533,7 @@ handle_sigbus(int signum, siginfo_t* sa, void* ptr) { - std::stringstream output; - output << "Caught SIGBUS, dumping stack:" << std::endl; - --#ifdef USE_EXECINFO -+#ifdef HAVE_BACKTRACE - void* stackPtrs[20]; - - // Print the stack and exit. -@@ -604,7 +604,7 @@ do_panic(int signum) { - - output << "Caught " << SignalHandler::as_string(signum) << ", dumping stack:" << std::endl; - --#ifdef USE_EXECINFO -+#ifdef HAVE_BACKTRACE - void* stackPtrs[20]; - - // Print the stack and exit. diff --git a/net-p2p/rtorrent/rtorrent-0.15.1.ebuild b/net-p2p/rtorrent/rtorrent-0.15.1.ebuild deleted file mode 100644 index fd8d4dbb77b6..000000000000 --- a/net-p2p/rtorrent/rtorrent-0.15.1.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools linux-info systemd - -DESCRIPTION="BitTorrent Client using libtorrent" -HOMEPAGE="https://rakshasa.github.io/rtorrent/" -SRC_URI="https://github.com/rakshasa/rtorrent/releases/download/v${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="debug selinux test tinyxml2 xmlrpc" -RESTRICT="!test? ( test )" -REQUIRED_USE="tinyxml2? ( !xmlrpc )" - -DEPEND=" - ~net-libs/libtorrent-${PV} - net-misc/curl - sys-libs/ncurses:0= - xmlrpc? ( dev-libs/xmlrpc-c:= ) -" -RDEPEND=" - ${DEPEND} - selinux? ( sec-policy/selinux-rtorrent ) -" -BDEPEND=" - virtual/pkgconfig - test? ( dev-util/cppunit ) -" - -DOCS=( doc/rtorrent.rc ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.15.1-tests-fix-arrays.patch -) - -pkg_setup() { - if ! linux_config_exists || ! linux_chkconfig_present IPV6; then - ewarn "rtorrent will not start without IPv6 support in your kernel" - ewarn "without further configuration. Please set bind=0.0.0.0 or" - ewarn "similar in your rtorrent.rc" - ewarn "Upstream bug: https://github.com/rakshasa/rtorrent/issues/732" - fi -} - -src_prepare() { - default - - # https://github.com/rakshasa/rtorrent/issues/332 - cp "${FILESDIR}"/rtorrent.1 "${S}"/doc/ || die - - if [[ ${CHOST} != *-darwin* ]]; then - # syslibroot is only for macos, change to sysroot for others - sed -i 's/Wl,-syslibroot,/Wl,--sysroot,/' "${S}/scripts/common.m4" || die - fi - - eautoreconf -} - -src_configure() { - # configure needs bash or script bombs out on some null shift, bug #291229 - CONFIG_SHELL=${BASH} econf \ - $(use_enable debug) \ - $(usev xmlrpc --with-xmlrpc-c) \ - $(usev tinyxml2 --with-xmlrpc-tinyxml2) -} - -src_install() { - default - doman doc/rtorrent.1 - - newinitd "${FILESDIR}/rtorrent-r1.init" rtorrent - newconfd "${FILESDIR}/rtorrentd.conf" rtorrent - systemd_newunit "${FILESDIR}/rtorrentd_at-r1.service" "[email protected]" -} diff --git a/net-p2p/rtorrent/rtorrent-0.15.5.ebuild b/net-p2p/rtorrent/rtorrent-0.15.5.ebuild deleted file mode 100644 index fe08327c47ea..000000000000 --- a/net-p2p/rtorrent/rtorrent-0.15.5.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# require 64-bit integer -LUA_COMPAT=( lua5-{3,4} ) - -inherit autotools linux-info lua-single systemd - -DESCRIPTION="BitTorrent Client using libtorrent" -HOMEPAGE="https://rakshasa.github.io/rtorrent/" -SRC_URI="https://github.com/rakshasa/rtorrent/releases/download/v${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="debug lua selinux test tinyxml2 xmlrpc" -RESTRICT="!test? ( test )" -REQUIRED_USE=" - lua? ( ${LUA_REQUIRED_USE} ) - tinyxml2? ( !xmlrpc ) -" - -COMMON_DEPEND=" - ~net-libs/libtorrent-${PV} - net-misc/curl - sys-libs/ncurses:0= - lua? ( ${LUA_DEPS} ) - xmlrpc? ( dev-libs/xmlrpc-c:=[libxml2] ) -" -DEPEND="${COMMON_DEPEND} - dev-cpp/nlohmann_json -" -RDEPEND="${COMMON_DEPEND} - selinux? ( sec-policy/selinux-rtorrent ) -" -BDEPEND=" - virtual/pkgconfig - test? ( dev-util/cppunit ) -" - -DOCS=( doc/rtorrent.rc ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.15.3-unbundle_json.patch - # fix configure w/ slibtool. merged in 0.16.0 - "${FILESDIR}"/${PN}-0.15.5-find_grep.patch -) - -pkg_setup() { - if ! linux_config_exists || ! linux_chkconfig_present IPV6; then - ewarn "rtorrent will not start without IPv6 support in your kernel" - ewarn "without further configuration. Please set bind=0.0.0.0 or" - ewarn "similar in your rtorrent.rc" - ewarn "Upstream bug: https://github.com/rakshasa/rtorrent/issues/732" - fi - use lua && lua-single_pkg_setup -} - -src_prepare() { - default - - # use system-json - rm -r src/rpc/nlohmann || die - - # https://github.com/rakshasa/rtorrent/issues/332 - cp "${FILESDIR}"/rtorrent.1 "${S}"/doc/ || die - - if [[ ${CHOST} != *-darwin* ]]; then - # syslibroot is only for macos, change to sysroot for others - sed -i 's/Wl,-syslibroot,/Wl,--sysroot,/' "${S}/scripts/common.m4" || die - fi - - eautoreconf -} - -src_configure() { - # configure needs bash or script bombs out on some null shift, bug #291229 - export CONFIG_SHELL=${BASH} - - local myeconfargs=( - $(use_enable debug) - $(use_with lua) - $(usev xmlrpc --with-xmlrpc-c) - $(usev tinyxml2 --with-xmlrpc-tinyxml2) - ) - - use lua && myeconfargs+=( - LUA_INCLUDE="-I$(lua_get_include_dir)" - ) - - econf "${myeconfargs[@]}" -} - -src_install() { - default - doman doc/rtorrent.1 - - if use lua; then - insinto $(lua_get_lmod_dir) - doins ${PN}.lua - fi - - newinitd "${FILESDIR}/rtorrent-r1.init" rtorrent - newconfd "${FILESDIR}/rtorrentd.conf" rtorrent - systemd_newunit "${FILESDIR}/rtorrentd_at-r1.service" "[email protected]" -} diff --git a/net-p2p/rtorrent/rtorrent-0.16.1.ebuild b/net-p2p/rtorrent/rtorrent-0.16.1.ebuild deleted file mode 100644 index 1784897a603e..000000000000 --- a/net-p2p/rtorrent/rtorrent-0.16.1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# require 64-bit integer -LUA_COMPAT=( lua5-{3,4} ) - -inherit autotools lua-single systemd - -DESCRIPTION="BitTorrent Client using libtorrent" -HOMEPAGE="https://rakshasa.github.io/rtorrent/" -if [[ ${PV} == *9999 ]] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/rakshasa/${PN}.git" -else - SRC_URI="https://github.com/rakshasa/rtorrent/releases/download/v${PV}/${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="debug lua selinux test tinyxml2 xmlrpc" -RESTRICT="!test? ( test )" -REQUIRED_USE=" - lua? ( ${LUA_REQUIRED_USE} ) - tinyxml2? ( !xmlrpc ) -" - -COMMON_DEPEND=" - ~net-libs/libtorrent-${PV} - sys-libs/ncurses:0= - lua? ( ${LUA_DEPS} ) - xmlrpc? ( dev-libs/xmlrpc-c:=[libxml2] ) -" -DEPEND="${COMMON_DEPEND} - dev-cpp/nlohmann_json -" -RDEPEND="${COMMON_DEPEND} - selinux? ( sec-policy/selinux-rtorrent ) -" -BDEPEND=" - virtual/pkgconfig - test? ( dev-util/cppunit ) -" - -DOCS=( doc/rtorrent.rc ) - -pkg_setup() { - use lua && lua-single_pkg_setup -} - -src_prepare() { - default - - # use system-json - rm -r src/rpc/nlohmann || die - sed -e 's@"rpc/nlohmann/json.h"@<nlohmann/json.hpp>@' \ - -i src/rpc/jsonrpc.cc || die - - # https://github.com/rakshasa/rtorrent/issues/332 - cp "${FILESDIR}"/rtorrent.1 "${S}"/doc/ || die - - if [[ ${CHOST} != *-darwin* ]]; then - # syslibroot is only for macos, change to sysroot for others - sed -i 's/Wl,-syslibroot,/Wl,--sysroot,/' "${S}/scripts/common.m4" || die - fi - - eautoreconf -} - -src_configure() { - local myeconfargs=( - $(use_enable debug) - $(use_with lua) - $(usev xmlrpc --with-xmlrpc-c) - $(usev tinyxml2 --with-xmlrpc-tinyxml2) - ) - - use lua && myeconfargs+=( - LUA_INCLUDE="-I$(lua_get_include_dir)" - ) - - econf "${myeconfargs[@]}" -} - -src_install() { - default - doman doc/rtorrent.1 - - # lua file is installed then in the proper directory - rm "${ED}"/usr/share/rtorrent/lua/rtorrent.lua || die - if use lua; then - insinto $(lua_get_lmod_dir) - doins lua/${PN}.lua - fi - - newinitd "${FILESDIR}/rtorrent-r1.init" rtorrent - newconfd "${FILESDIR}/rtorrentd.conf" rtorrent - systemd_newunit "${FILESDIR}/rtorrentd_at-r1.service" "[email protected]" -} - -pkg_postinst() { - einfo "This release could introduce new commands to configure RTorrent." - einfo "Please read the release notes before restarting:" - einfo "https://github.com/rakshasa/rtorrent/releases" - einfo "" - einfo "For configuration assistance, see:" - einfo "https://github.com/rakshasa/rtorrent/wiki" -} diff --git a/net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild b/net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild deleted file mode 100644 index 40eb8b3b5005..000000000000 --- a/net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools flag-o-matic linux-info systemd - -DESCRIPTION="BitTorrent Client using libtorrent" -HOMEPAGE="https://rakshasa.github.io/rtorrent/" -SRC_URI="http://rtorrent.net/downloads/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~hppa ~mips ~ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="debug selinux test xmlrpc" -RESTRICT="!test? ( test )" - -COMMON_DEPEND="~net-libs/libtorrent-0.13.${PV##*.} - >=net-misc/curl-7.19.1 - sys-libs/ncurses:0= - xmlrpc? ( dev-libs/xmlrpc-c:= )" -RDEPEND="${COMMON_DEPEND} - selinux? ( sec-policy/selinux-rtorrent ) -" -DEPEND="${COMMON_DEPEND} - dev-util/cppunit - virtual/pkgconfig" - -DOCS=( doc/rtorrent.rc ) - -PATCHES=( - "${FILESDIR}/${P}-bgo891995.patch" - "${FILESDIR}/${PN}-0.9.8-configure-c99.patch" -) - -pkg_setup() { - if ! linux_config_exists || ! linux_chkconfig_present IPV6; then - ewarn "rtorrent will not start without IPv6 support in your kernel" - ewarn "without further configuration. Please set bind=0.0.0.0 or" - ewarn "similar in your rtorrent.rc" - ewarn "Upstream bug: https://github.com/rakshasa/rtorrent/issues/732" - fi -} - -src_prepare() { - default - - # https://github.com/rakshasa/rtorrent/issues/332 - cp "${FILESDIR}"/rtorrent.1 "${S}"/doc/ || die - - if [[ ${CHOST} != *-darwin* ]]; then - # syslibroot is only for macos, change to sysroot for others - sed -i 's/Wl,-syslibroot,/Wl,--sysroot,/' "${S}/scripts/common.m4" || die - fi - - eautoreconf -} - -src_configure() { - # -Werror=odr - # https://bugs.gentoo.org/861848 - # https://github.com/rakshasa/rtorrent/issues/1264 - filter-lto - - # configure needs bash or script bombs out on some null shift, bug #291229 - CONFIG_SHELL=${BASH} econf \ - $(use_enable debug) \ - $(use_with xmlrpc xmlrpc-c) -} - -src_install() { - default - doman doc/rtorrent.1 - - newinitd "${FILESDIR}/rtorrent-r1.init" rtorrent - newconfd "${FILESDIR}/rtorrentd.conf" rtorrent - systemd_newunit "${FILESDIR}/rtorrentd_at-r1.service" "[email protected]" -}
