From owner-svn-ports-all@freebsd.org Sun Nov 20 20:58:09 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8763C4C641; Sun, 20 Nov 2016 20:58:09 +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 mx1.freebsd.org (Postfix) with ESMTPS id 6329C18FD; Sun, 20 Nov 2016 20:58:09 +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 uAKKw8lN064870; Sun, 20 Nov 2016 20:58:08 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAKKw8ho064868; Sun, 20 Nov 2016 20:58:08 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201611202058.uAKKw8ho064868@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 20 Nov 2016 20:58:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r426627 - in head/sysutils/facter: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2016 20:58:09 -0000 Author: jbeich Date: Sun Nov 20 20:58:08 2016 New Revision: 426627 URL: https://svnweb.freebsd.org/changeset/ports/426627 Log: sysutils/facter: unbreak build with boost 1.62 vendor/leatherman/logging/src/logging.cc:75:44: error: no matching constructor for initialization of 'sink_t' (aka 'synchronous_sink') boost::shared_ptr sink(new sink_t(&dst)); ^ ~~~~ /usr/local/include/boost/log/sinks/sync_frontend.hpp:72:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'ostream *' (aka 'basic_ostream *') to 'const boost::log::v2_mt_posix::sinks::synchronous_sink' for 1st argument class synchronous_sink : ^ /usr/local/include/boost/log/sinks/sync_frontend.hpp:123:14: note: candidate constructor not viable: no known conversion from 'ostream *' (aka 'basic_ostream *') to 'const shared_ptr' for 1st argument explicit synchronous_sink(shared_ptr< sink_backend_type > const& backend) : ^ /usr/local/include/boost/log/sinks/sync_frontend.hpp:134:45: note: candidate template ignored: substitution failure [with T0 = std::__1::basic_ostream > *]: no type named 'type' in 'boost::log::v2_mt_posix::aux::enable_if_named_parameters > *, boost::log::v2_mt_posix::aux::sfinae_dummy>' BOOST_LOG_PARAMETRIZED_CONSTRUCTORS_GEN(BOOST_LOG_SINK_CTOR_FORWARD_INTERNAL, ~) ^ /usr/local/include/boost/log/detail/parameter_tools.hpp:44:66: note: expanded from macro 'BOOST_LOG_PARAMETRIZED_CONSTRUCTORS_GEN' BOOST_PP_REPEAT_FROM_TO(1, BOOST_LOG_MAX_PARAMETER_ARGS, macro, args) ^ /usr/local/include/boost/preprocessor/repetition/repeat_from_to.hpp:36:125: note: expanded from macro 'BOOST_PP_REPEAT_FROM_TO_1' ^ /usr/local/include/boost/preprocessor/repetition/repeat_from_to.hpp:54:136: note: expanded from macro 'BOOST_PP_REPEAT_FROM_TO_D_1' ^ note: (skipping 25 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) /usr/local/include/boost/preprocessor/control/iif.hpp:25:60: note: expanded from macro 'BOOST_PP_IIF_I' ^ /usr/local/include/boost/preprocessor/control/iif.hpp:32:31: note: expanded from macro 'BOOST_PP_IIF_1' ^ /usr/local/include/boost/log/sinks/sync_frontend.hpp:51:14: note: expanded from macro 'BOOST_LOG_SINK_CTOR_FORWARD_INTERNAL_1' explicit synchronous_sink(T0 const& arg0, typename boost::log::aux::enable_if_named_parameters< T0, boost::log::aux::sfinae_dummy >::type = boost::log::aux::sfinae_dummy()) :\ ^ ~~~~ /usr/local/include/boost/log/sinks/sync_frontend.hpp:134:45: note: candidate constructor template not viable: requires 2 arguments, but 1 was provided /usr/local/include/boost/log/detail/parameter_tools.hpp:44:66: note: expanded from macro 'BOOST_LOG_PARAMETRIZED_CONSTRUCTORS_GEN' BOOST_PP_REPEAT_FROM_TO(1, BOOST_LOG_MAX_PARAMETER_ARGS, macro, args) ^ PR: 214469 Submitted by: antoine Obtained from: upstream Approved by: portmgr blanket Added: head/sysutils/facter/files/patch-vendor_leatherman_logging_src_logging.cc (contents, props changed) Modified: head/sysutils/facter/Makefile (contents, props changed) Modified: head/sysutils/facter/Makefile ============================================================================== --- head/sysutils/facter/Makefile Sun Nov 20 20:57:54 2016 (r426626) +++ head/sysutils/facter/Makefile Sun Nov 20 20:58:08 2016 (r426627) @@ -2,7 +2,7 @@ PORTNAME= facter PORTVERSION= 3.1.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= http://downloads.puppetlabs.com/facter/ Added: head/sysutils/facter/files/patch-vendor_leatherman_logging_src_logging.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/facter/files/patch-vendor_leatherman_logging_src_logging.cc Sun Nov 20 20:58:08 2016 (r426627) @@ -0,0 +1,19 @@ +(LTH-115) Fix Boost.Log sink initialization with Boost 1.62 + +In Boost 1.62, the way sink argument forwarding appears to have changed +in such a way that it failed to identify the implicit creation of a +color_writer. Switch to explicitly creating the color_writer sink. + +https://github.com/puppetlabs/leatherman/commit/e8196d55ecac7f2bf3aa5cb0aefef0122e63db21 + +--- vendor/leatherman/logging/src/logging.cc.orig 2015-11-25 00:14:00 UTC ++++ vendor/leatherman/logging/src/logging.cc +@@ -72,7 +72,7 @@ namespace leatherman { namespace logging + core->remove_all_sinks(); + + using sink_t = sinks::synchronous_sink; +- boost::shared_ptr sink(new sink_t(&dst)); ++ boost::shared_ptr sink = boost::make_shared(boost::make_shared(&dst)); + core->add_sink(sink); + + #if (!defined(__sun) && !defined(_AIX)) || !defined(__GNUC__)