From owner-svn-ports-head@FreeBSD.ORG Sun Aug 25 15:17:19 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CCD597B7; Sun, 25 Aug 2013 15:17:19 +0000 (UTC) (envelope-from az@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AB5B222E7; Sun, 25 Aug 2013 15:17:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7PFHJrX061787; Sun, 25 Aug 2013 15:17:19 GMT (envelope-from az@svn.freebsd.org) Received: (from az@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r7PFHJUj061784; Sun, 25 Aug 2013 15:17:19 GMT (envelope-from az@svn.freebsd.org) Message-Id: <201308251517.r7PFHJUj061784@svn.freebsd.org> From: Andrej Zverev Date: Sun, 25 Aug 2013 15:17:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r325348 - in head/net-p2p: libtorrent-devel libtorrent-devel/files rtorrent-devel X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Aug 2013 15:17:20 -0000 Author: az Date: Sun Aug 25 15:17:18 2013 New Revision: 325348 URL: http://svnweb.freebsd.org/changeset/ports/325348 Log: - add patch from net-p2p/libtorrent which can fix High CPU issue - bump portrevisions PR: ports/181354 Submitted by: Darren Added: head/net-p2p/libtorrent-devel/files/patch-src_torrent_utils_thread__base.cc - copied unchanged from r325335, head/net-p2p/libtorrent/files/patch-src_torrent_utils_thread__base.cc Modified: head/net-p2p/libtorrent-devel/Makefile head/net-p2p/rtorrent-devel/Makefile Modified: head/net-p2p/libtorrent-devel/Makefile ============================================================================== --- head/net-p2p/libtorrent-devel/Makefile Sun Aug 25 14:03:11 2013 (r325347) +++ head/net-p2p/libtorrent-devel/Makefile Sun Aug 25 15:17:18 2013 (r325348) @@ -3,7 +3,7 @@ PORTNAME= libtorrent-devel PORTVERSION= 0.13.3 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= http://libtorrent.rakshasa.no/downloads/ DISTNAME= ${PORTNAME:S/-devel//}-${PORTVERSION} Copied: head/net-p2p/libtorrent-devel/files/patch-src_torrent_utils_thread__base.cc (from r325335, head/net-p2p/libtorrent/files/patch-src_torrent_utils_thread__base.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/libtorrent-devel/files/patch-src_torrent_utils_thread__base.cc Sun Aug 25 15:17:18 2013 (r325348, copy of r325335, head/net-p2p/libtorrent/files/patch-src_torrent_utils_thread__base.cc) @@ -0,0 +1,20 @@ +--- src/torrent/utils/thread_base.cc.orig ++++ src/torrent/utils/thread_base.cc +@@ -88,6 +88,8 @@ thread_base::stop_thread_wait() { + + void + thread_base::interrupt() { ++ int sleep_length = 0; ++ + __sync_fetch_and_or(&m_flags, flag_no_timeout); + + while (is_polling() && has_no_timeout()) { +@@ -96,7 +98,8 @@ thread_base::interrupt() { + if (!(is_polling() && has_no_timeout())) + return; + +- usleep(0); ++ usleep(sleep_length); ++ sleep_length = std::min(sleep_length + 50, 1000); + } + } Modified: head/net-p2p/rtorrent-devel/Makefile ============================================================================== --- head/net-p2p/rtorrent-devel/Makefile Sun Aug 25 14:03:11 2013 (r325347) +++ head/net-p2p/rtorrent-devel/Makefile Sun Aug 25 15:17:18 2013 (r325348) @@ -11,8 +11,8 @@ DISTNAME= ${PORTNAME:S/-devel//}-${PORTV MAINTAINER= az@FreeBSD.org COMMENT= BitTorrent Client written in C++ (development version) -BUILD_DEPENDS= libtorrent-devel=0.13.3:${PORTSDIR}/net-p2p/libtorrent-devel -RUN_DEPENDS= libtorrent-devel=0.13.3:${PORTSDIR}/net-p2p/libtorrent-devel +BUILD_DEPENDS= libtorrent-devel=0.13.3_1:${PORTSDIR}/net-p2p/libtorrent-devel +RUN_DEPENDS= libtorrent-devel=0.13.3_1:${PORTSDIR}/net-p2p/libtorrent-devel LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl CONFLICTS= rtorrent-[0-9]*