diff --git a/net-p2p/libtorrent-devel/Makefile b/net-p2p/libtorrent-devel/Makefile index acbc7e752908..533b0ecd4943 100644 --- a/net-p2p/libtorrent-devel/Makefile +++ b/net-p2p/libtorrent-devel/Makefile @@ -1,39 +1,39 @@ PORTNAME= libtorrent -DISTVERSION= 0.16.27 +DISTVERSION= 0.16.28 CATEGORIES= net-p2p MASTER_SITES= https://github.com/rakshasa/rtorrent/releases/download/v${DISTVERSION}/ PKGNAMESUFFIX= -devel MAINTAINER= eduardo@FreeBSD.org COMMENT= BitTorrent Library written in C++ WWW= https://github.com/rakshasa/libtorrent LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcurl.so:ftp/curl TEST_DEPENDS= cppunit>0:devel/cppunit USES= compiler:c++20-lang cpe libtool localbase:ldflags pathfix \ pkgconfig ssl USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-debug \ --with-kqueue \ --without-epoll CONFIGURE_ENV= OPENSSL_CFLAGS="-I ${OPENSSLINC}" \ OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto" # This makes sure that /usr/local/lib appears before /usr/lib when # linking libtorrent to avoid linking with base's libcrypto. MAKE_ARGS= LDFLAGS="${LDFLAGS}" INSTALL_TARGET= install-strip TEST_ARGS= CPPUNIT_LIBS="-L${LOCALBASE}/lib -lcppunit" TEST_TARGET= check CONFLICTS_INSTALL= libtorrent .include diff --git a/net-p2p/libtorrent-devel/distinfo b/net-p2p/libtorrent-devel/distinfo index 88266b329761..e09a17df493f 100644 --- a/net-p2p/libtorrent-devel/distinfo +++ b/net-p2p/libtorrent-devel/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1793308276 -SHA256 (libtorrent-0.16.27.tar.gz) = b7ee3f637da6d136fb70a4566fbea8e444f7a2e259596e8612adeb0c7c520fd1 -SIZE (libtorrent-0.16.27.tar.gz) = 967041 +TIMESTAMP = 1794678636 +SHA256 (libtorrent-0.16.28.tar.gz) = 569650d86cf757bd921f72c105f289128f7d918c19c2aaae5a350ffa74c4913e +SIZE (libtorrent-0.16.28.tar.gz) = 991355 diff --git a/net-p2p/libtorrent-devel/pkg-plist b/net-p2p/libtorrent-devel/pkg-plist index 349546c891be..c36bbcd5787a 100644 --- a/net-p2p/libtorrent-devel/pkg-plist +++ b/net-p2p/libtorrent-devel/pkg-plist @@ -1,86 +1,88 @@ include/torrent/bitfield.h include/torrent/common.h include/torrent/data/block.h include/torrent/data/block_list.h include/torrent/data/block_transfer.h include/torrent/data/chunk_utils.h include/torrent/data/download_data.h include/torrent/data/file.h include/torrent/data/file_list.h include/torrent/data/file_list_iterator.h include/torrent/data/file_manager.h include/torrent/data/file_utils.h include/torrent/data/piece.h include/torrent/data/transfer_list.h include/torrent/download.h include/torrent/download/choke_group.h include/torrent/download/choke_queue.h include/torrent/download/download_manager.h include/torrent/download/group_entry.h include/torrent/download/resource_manager.h include/torrent/download/types.h include/torrent/download_info.h include/torrent/exceptions.h include/torrent/hash_string.h include/torrent/net/address_info.h include/torrent/net/fd.h include/torrent/net/http_get.h include/torrent/net/http_stack.h include/torrent/net/resolver.h include/torrent/net/socket_address.h include/torrent/net/socket_address_key.h include/torrent/net/types.h include/torrent/object.h include/torrent/object_raw_bencode.h include/torrent/object_static_map.h include/torrent/object_stream.h include/torrent/path.h include/torrent/peer/choke_status.h include/torrent/peer/client_info.h include/torrent/peer/client_list.h include/torrent/peer/connection_list.h include/torrent/peer/peer.h include/torrent/peer/peer_info.h include/torrent/peer/peer_list.h include/torrent/rate.h include/torrent/runtime/client_config.h include/torrent/runtime/memory_manager.h include/torrent/runtime/network_config.h include/torrent/runtime/network_manager.h include/torrent/runtime/proxy_manager.h include/torrent/runtime/runtime.h include/torrent/runtime/socket_manager.h include/torrent/system/callbacks.h include/torrent/system/common.h include/torrent/system/event.h include/torrent/system/poll.h include/torrent/system/scheduler.h include/torrent/system/spawn_process.h include/torrent/system/thread.h include/torrent/system/types.h include/torrent/throttle.h include/torrent/torrent.h include/torrent/tracker/dht_controller.h include/torrent/tracker/manager.h include/torrent/tracker/tracker.h include/torrent/tracker/tracker_state.h include/torrent/tracker/wrappers.h include/torrent/types/string_utf8.h include/torrent/utils/chrono.h include/torrent/utils/directory_events.h include/torrent/utils/extents.h include/torrent/utils/file_stat.h include/torrent/utils/functional.h +include/torrent/utils/limited_vector.h +include/torrent/utils/linked_unordered_set.h include/torrent/utils/log.h include/torrent/utils/log_buffer.h include/torrent/utils/option_strings.h include/torrent/utils/random.h include/torrent/utils/ranges.h include/torrent/utils/resume.h include/torrent/utils/string_manip.h include/torrent/utils/unordered_vector.h include/torrent/utils/uri_parser.h lib/libtorrent.so -lib/libtorrent.so.55 -lib/libtorrent.so.55.0.0 +lib/libtorrent.so.56 +lib/libtorrent.so.56.0.0 libdata/pkgconfig/libtorrent.pc diff --git a/net-p2p/rtorrent-devel/Makefile b/net-p2p/rtorrent-devel/Makefile index e2ea41d707e1..a01ec5c14b41 100644 --- a/net-p2p/rtorrent-devel/Makefile +++ b/net-p2p/rtorrent-devel/Makefile @@ -1,50 +1,50 @@ PORTNAME= rtorrent -DISTVERSION= 0.16.27 +DISTVERSION= 0.16.28 CATEGORIES= net-p2p MASTER_SITES= https://github.com/rakshasa/rtorrent/releases/download/v${DISTVERSION}/ PKGNAMESUFFIX= -devel MAINTAINER= eduardo@FreeBSD.org COMMENT= BitTorrent Client written in C++ WWW= https://github.com/rakshasa/rtorrent LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING LIB_DEPENDS= libtorrent.so:net-p2p/libtorrent-devel TEST_DEPENDS= cppunit>0:devel/cppunit USES= compiler:c++20-lang ncurses pkgconfig USE_RC_SUBR= rtorrent GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-debug \ --with-xmlrpc-tinyxml2 TEST_ARGS= CPPUNIT_LIBS="-L${LOCALBASE}/lib -lcppunit" TEST_TARGET= check CONFLICTS_INSTALL= rtorrent SUB_FILES= pkg-message USERS= rtorrent GROUPS= rtorrent PLIST_FILES= bin/rtorrent \ "@sample ${ETCDIR}/rtorrent.conf.sample" \ ${DATADIR}/lua/rtorrent.lua PORTDOCS= README.md OPTIONS_DEFINE= DOCS post-install: ${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \ ${STAGEDIR}${ETCDIR}/rtorrent.conf.sample post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ .include diff --git a/net-p2p/rtorrent-devel/distinfo b/net-p2p/rtorrent-devel/distinfo index 9994b73cecd9..58118803217e 100644 --- a/net-p2p/rtorrent-devel/distinfo +++ b/net-p2p/rtorrent-devel/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1793309269 -SHA256 (rtorrent-0.16.27.tar.gz) = 645e5ea863fee2c3a0f745be6235a37e80cf7db6a07bc82ca31d49bf65f2a52a -SIZE (rtorrent-0.16.27.tar.gz) = 899609 +TIMESTAMP = 1794680773 +SHA256 (rtorrent-0.16.28.tar.gz) = 5b668c625c45fb452018c27480e1a01ccbc33d850cb109209966651dabec207a +SIZE (rtorrent-0.16.28.tar.gz) = 904759 diff --git a/net-p2p/rtorrent-devel/files/patch-fix-tests b/net-p2p/rtorrent-devel/files/patch-fix-tests deleted file mode 100644 index 4aa37e9f6d93..000000000000 --- a/net-p2p/rtorrent-devel/files/patch-fix-tests +++ /dev/null @@ -1,110 +0,0 @@ -From 4295fee5655f743e52e726ab477651a580fa90d0 Mon Sep 17 00:00:00 2001 -From: Ivan -Date: Fri, 30 Oct 2026 10:41:52 +0300 -Subject: [PATCH] Do not assume libstdc++ in - TestView::test_multicall_skips_moved_entries - -libc++ has moved all three entries out by the second comparison, so count the ones left. ---- - test/core/test_view.cc | 52 +++++++++++++++++++++++------------------- - 1 file changed, 28 insertions(+), 24 deletions(-) - -diff --git test/core/test_view.cc test/core/test_view.cc -index c8bb3a4e7..78a527b74 100644 ---- test/core/test_view.cc -+++ test/core/test_view.cc -@@ -49,6 +49,9 @@ std::function compare_action; - std::function added_action; - std::function removed_action; - -+// Runs from every comparator command, until cleared. -+std::function every_compare_action; -+ - core::Download* - new_download() { - torrent::Object info = torrent::Object::create_map(); -@@ -142,6 +145,9 @@ cmd_compare(rpc::target_type target, const torrent::Object&) { - if (compare_action) - std::exchange(compare_action, {})(); - -+ if (every_compare_action) -+ every_compare_action(); -+ - auto left = static_cast(target.second); - auto right = static_cast(target.third); - -@@ -220,6 +226,8 @@ TestView::setUp() { - - void - TestView::tearDown() { -+ every_compare_action = {}; -+ - control->core()->download_list()->clear(); - control->view_manager()->clear(); - -@@ -478,9 +486,10 @@ TestView::test_insert_stops_at_erased_download() { - CPPUNIT_ASSERT_EQUAL(size_t(0), list->size()); - } - --// A comparator may read the view it sorts, while std::stable_sort holds one of --// its entries outside and leaves a moved-from one in its place. The commands --// that read a view skip that entry, also when no command would use it. -+// A comparator may read the view it sorts, while std::stable_sort holds some -+// of its entries outside and leaves moved-from ones in their place. The -+// commands that read a view skip those entries, also when no command would -+// use them. - void - TestView::test_multicall_skips_moved_entries() { - auto d0 = insert_download(); -@@ -491,35 +500,30 @@ TestView::test_multicall_skips_moved_entries() { - sort_rank = {{d0, 0}, {d1, 1}, {d2, 2}}; - matches_filter = {nullptr, d0, d1, d2}; - -- torrent::Object rows; -- torrent::Object filtered_rows; -- torrent::Object named_rows; -- torrent::Object hashes; -+ size_t comparisons = 0; -+ size_t wrong_counts = 0; - -- // The insertion sort moves d1 out after the first comparison returns false. -- compare_action = [&]() { -- compare_action = [&]() { -- auto args = torrent::Object::create_list(); -- args.as_list().push_back(std::string("test_view")); -- rows = rpc::call_command("d.multicall", args); -+ every_compare_action = [&]() { -+ comparisons++; -+ -+ size_t present = std::count_if(view->begin_visible(), view->end_visible(), [](const auto& d) { return d != nullptr; }); - -- hashes = rpc::call_command("download_list", args); -+ auto args = torrent::Object::create_list(); -+ args.as_list().push_back(std::string("test_view")); -+ wrong_counts += rpc::call_command("d.multicall", args).as_list().size() != present; -+ wrong_counts += rpc::call_command("download_list", args).as_list().size() != present; - -- args.as_list().push_back(command_object(filter_command)); -- filtered_rows = rpc::call_command("d.multicall.filtered", args); -+ args.as_list().push_back(command_object(filter_command)); -+ wrong_counts += rpc::call_command("d.multicall.filtered", args).as_list().size() != present; - -- args.as_list().back() = command_object(name_command); -- named_rows = rpc::call_command("d.multicall.filtered", args); -- }; -+ args.as_list().back() = command_object(name_command); -+ wrong_counts += rpc::call_command("d.multicall.filtered", args).as_list().size() != present; - }; - - view->set_sort_current(command_object(compare_command)); - view->sort(); - -- CPPUNIT_ASSERT(rows.is_list() && filtered_rows.is_list() && named_rows.is_list() && hashes.is_list()); -- CPPUNIT_ASSERT_EQUAL(size_t(2), rows.as_list().size()); -- CPPUNIT_ASSERT_EQUAL(size_t(2), filtered_rows.as_list().size()); -- CPPUNIT_ASSERT_EQUAL(size_t(2), named_rows.as_list().size()); -- CPPUNIT_ASSERT_EQUAL(size_t(2), hashes.as_list().size()); -+ CPPUNIT_ASSERT(comparisons > 0); -+ CPPUNIT_ASSERT_EQUAL(size_t{0}, wrong_counts); - CPPUNIT_ASSERT_EQUAL(std::string("d0,d1,d2"), describe_visible(*view)); - }