Closes: https://bugs.gentoo.org/650416
Package-Manager: Portage-2.3.41, Repoman-2.3.9
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
"${FILESDIR}"/${P}-boost-1.65-tr1-removal.patch
"${FILESDIR}"/${P}-gcc7.patch
"${FILESDIR}"/${P}-format-security.patch
+ "${FILESDIR}"/${P}-gcc5-make_shared.patch
)
src_prepare() {
--- /dev/null
+--- a/src/differential.cpp
++++ b/src/differential.cpp
+@@ -575,7 +575,7 @@
+ boost::mutex::scoped_lock lock(meta_data_lock);
+ #endif
+ pair<SampleDiffMetaDataTable::iterator, bool> p;
+- p = meta_data_table.insert(make_pair(description, new SampleDifferenceMetaData()));
++ p = meta_data_table.insert(make_pair(description, boost::make_shared<SampleDifferenceMetaData>()));
+ return p.first->second;
+ }
+