From owner-svn-ports-head@freebsd.org Wed Apr 18 10:17:36 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D1D2FFA5DF0; Wed, 18 Apr 2018 10:17:35 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F25E8416C; Wed, 18 Apr 2018 10:17:35 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5BE4519A5C; Wed, 18 Apr 2018 10:17:35 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3IAHZ9o069417; Wed, 18 Apr 2018 10:17:35 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3IAHZaS069415; Wed, 18 Apr 2018 10:17:35 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201804181017.w3IAHZaS069415@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 18 Apr 2018 10:17:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467699 - in head/devel/RStudio: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/devel/RStudio: . files X-SVN-Commit-Revision: 467699 X-SVN-Commit-Repository: ports 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.25 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: Wed, 18 Apr 2018 10:17:36 -0000 Author: jbeich Date: Wed Apr 18 10:17:34 2018 New Revision: 467699 URL: https://svnweb.freebsd.org/changeset/ports/467699 Log: devel/RStudio: unbreak with boost 1.67 src/cpp/core/DateTime.cpp:68:26: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::seconds' return time_t_epoch + seconds(sec); ^~~~~~~~~~~ /usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const boost::posix_time::seconds' for 1st argument class BOOST_SYMBOL_VISIBLE seconds : public time_duration ^ /usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:58:37: note: candidate template ignored: disabled by 'enable_if' [with T = double] typename boost::enable_if, void>::type* = 0) : ^ PR: 227427 Reported by: antoine (via exp-run) Added: head/devel/RStudio/files/patch-boost-1.67 (contents, props changed) Modified: head/devel/RStudio/Makefile (contents, props changed) Modified: head/devel/RStudio/Makefile ============================================================================== --- head/devel/RStudio/Makefile Wed Apr 18 09:33:42 2018 (r467698) +++ head/devel/RStudio/Makefile Wed Apr 18 10:17:34 2018 (r467699) @@ -6,6 +6,7 @@ PORTNAME= RStudio DISTVERSIONPREFIX= v DISTVERSION= 1.1.445 +PORTREVISION= 1 CATEGORIES= devel math java MASTER_SITES= https://s3.amazonaws.com/rstudio-dictionaries/:dictionaries \ https://s3.amazonaws.com/rstudio-buildtools/:buildtools Added: head/devel/RStudio/files/patch-boost-1.67 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/RStudio/files/patch-boost-1.67 Wed Apr 18 10:17:34 2018 (r467699) @@ -0,0 +1,62 @@ +Regressed by https://github.com/boostorg/date_time/commit/f9f2aaf5216c + +src/cpp/core/DateTime.cpp:68:26: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::seconds' + return time_t_epoch + seconds(sec); + ^~~~~~~~~~~ +src/cpp/core/file_lock/FileLock.cpp:136:34: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::seconds' + FileLock::s_timeoutInterval = boost::posix_time::seconds(timeoutInterval); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/cpp/core/file_lock/FileLock.cpp:140:30: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::seconds' + FileLock::s_refreshRate = boost::posix_time::seconds(refreshRate); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/cpp/core/file_lock/FileLock.cpp:215:38: error: no matching constructor for initialization of 'boost::posix_time::seconds' +boost::posix_time::seconds FileLock::s_timeoutInterval(kDefaultTimeoutInterval); + ^ ~~~~~~~~~~~~~~~~~~~~~~~ +src/cpp/core/file_lock/FileLock.cpp:216:38: error: no matching constructor for initialization of 'boost::posix_time::seconds' +boost::posix_time::seconds FileLock::s_refreshRate(kDefaultRefreshRate); + ^ ~~~~~~~~~~~~~~~~~~~ +/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const boost::posix_time::seconds' for 1st argument + class BOOST_SYMBOL_VISIBLE seconds : public time_duration + ^ +/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:58:37: note: candidate template ignored: disabled by 'enable_if' [with T = double] + typename boost::enable_if, void>::type* = 0) : + ^ + +--- src/cpp/core/DateTime.cpp.orig 2018-04-16 22:26:34 UTC ++++ src/cpp/core/DateTime.cpp +@@ -65,7 +65,7 @@ boost::posix_time::ptime timeFromSecondsSinceEpoch(dou + using namespace boost::posix_time; + + ptime time_t_epoch(date(1970,1,1)); +- return time_t_epoch + seconds(sec); ++ return time_t_epoch + seconds(long(sec)); + } + + boost::posix_time::ptime timeFromMillisecondsSinceEpoch(int64_t ms) +--- src/cpp/core/file_lock/FileLock.cpp.orig 2018-04-16 22:26:34 UTC ++++ src/cpp/core/file_lock/FileLock.cpp +@@ -46,8 +46,8 @@ const char * const kLockTypeLinkBased = "linkbased"; + #endif + + const char * const kLocksConfPath = "/etc/rstudio/file-locks"; +-const double kDefaultRefreshRate = 20.0; +-const double kDefaultTimeoutInterval = 30.0; ++const long kDefaultRefreshRate = 20; ++const long kDefaultTimeoutInterval = 30; + + std::string lockTypeToString(FileLock::LockType type) + { +@@ -132,11 +132,11 @@ void FileLock::initialize(const Settings& settings) + FileLock::s_defaultType = stringToLockType(settings.get("lock-type", kLockTypeDefault)); + + // timeout interval +- double timeoutInterval = getFieldPositive(settings, "timeout-interval", kDefaultTimeoutInterval); ++ long timeoutInterval = getFieldPositive(settings, "timeout-interval", kDefaultTimeoutInterval); + FileLock::s_timeoutInterval = boost::posix_time::seconds(timeoutInterval); + + // refresh rate +- double refreshRate = getFieldPositive(settings, "refresh-rate", kDefaultRefreshRate); ++ long refreshRate = getFieldPositive(settings, "refresh-rate", kDefaultRefreshRate); + FileLock::s_refreshRate = boost::posix_time::seconds(refreshRate); + + // logging