commit:     f635eed0fb02dfd8684afbca47a975913877e117
Author:     Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Sat May 20 22:08:33 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri May 26 20:58:32 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f635eed0

net-p2p/ppcoind: Fix building with GCC-6

Bug: https://bugs.gentoo.org/show_bug.cgi?id=594404
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4691

 net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch | 11 +++++++++++
 net-p2p/ppcoind/ppcoind-0.4.0.ebuild           |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch 
b/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch
new file mode 100644
index 00000000000..76bad3feb5a
--- /dev/null
+++ b/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch
@@ -0,0 +1,11 @@
+--- a/src/net.cpp
++++ b/src/net.cpp
+@@ -51,7 +51,7 @@ CAddress addrLocalHost(CService("0.0.0.0", 0), 
nLocalServices);
+ CAddress addrSeenByPeer(CService("0.0.0.0", 0), nLocalServices);
+ static CNode* pnodeLocalHost = NULL;
+ uint64 nLocalHostNonce = 0;
+-array<int, THREAD_MAX> vnThreadsRunning;
++boost::array<int, THREAD_MAX> vnThreadsRunning;
+ static SOCKET hListenSocket = INVALID_SOCKET;
+ CAddrMan addrman;
+ 

diff --git a/net-p2p/ppcoind/ppcoind-0.4.0.ebuild 
b/net-p2p/ppcoind/ppcoind-0.4.0.ebuild
index 96a1e4377fc..f0cc1712c90 100644
--- a/net-p2p/ppcoind/ppcoind-0.4.0.ebuild
+++ b/net-p2p/ppcoind/ppcoind-0.4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -45,6 +45,8 @@ pkg_setup() {
 }
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-gcc6.patch
+
        if has_version '>=dev-libs/boost-1.52'; then
                sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' 
src/makefile.unix
        fi

Reply via email to