diff --git a/srcpkgs/leatherman/patches/210.patch b/srcpkgs/leatherman/patches/210.patch new file mode 100644 index 00000000000..906db1f92dc --- /dev/null +++ b/srcpkgs/leatherman/patches/210.patch @@ -0,0 +1,25 @@ +From e8196d55ecac7f2bf3aa5cb0aefef0122e63db21 Mon Sep 17 00:00:00 2001 +From: Michael Smith +Date: Thu, 13 Oct 2016 14:45:13 -0700 +Subject: [PATCH] (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. +--- + logging/src/logging.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/logging/src/logging.cc b/logging/src/logging.cc +index 9c071dc..d7419d5 100644 +--- logging/src/logging.cc ++++ logging/src/logging.cc +@@ -82,7 +82,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); + + diff --git a/srcpkgs/leatherman/template b/srcpkgs/leatherman/template index 01699690aae..fae4ffea1b2 100644 --- a/srcpkgs/leatherman/template +++ b/srcpkgs/leatherman/template @@ -1,7 +1,7 @@ # Template file for 'leatherman' pkgname=leatherman version=0.9.2 -revision=1 +revision=2 build_style=cmake hostmakedepends="pkg-config" makedepends="boost-devel libcurl-devel"