Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/ppcoind/, net-p2p/ppcoind/files/
Date: Fri, 26 May 2017 21:01:12
Message-Id: 1495832312.f635eed0fb02dfd8684afbca47a975913877e117.soap@gentoo
1 commit: f635eed0fb02dfd8684afbca47a975913877e117
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Sat May 20 22:08:33 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri May 26 20:58:32 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f635eed0
7
8 net-p2p/ppcoind: Fix building with GCC-6
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=594404
11 Package-Manager: Portage-2.3.5, Repoman-2.3.2
12 Closes: https://github.com/gentoo/gentoo/pull/4691
13
14 net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch | 11 +++++++++++
15 net-p2p/ppcoind/ppcoind-0.4.0.ebuild | 4 +++-
16 2 files changed, 14 insertions(+), 1 deletion(-)
17
18 diff --git a/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch b/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch
19 new file mode 100644
20 index 00000000000..76bad3feb5a
21 --- /dev/null
22 +++ b/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch
23 @@ -0,0 +1,11 @@
24 +--- a/src/net.cpp
25 ++++ b/src/net.cpp
26 +@@ -51,7 +51,7 @@ CAddress addrLocalHost(CService("0.0.0.0", 0), nLocalServices);
27 + CAddress addrSeenByPeer(CService("0.0.0.0", 0), nLocalServices);
28 + static CNode* pnodeLocalHost = NULL;
29 + uint64 nLocalHostNonce = 0;
30 +-array<int, THREAD_MAX> vnThreadsRunning;
31 ++boost::array<int, THREAD_MAX> vnThreadsRunning;
32 + static SOCKET hListenSocket = INVALID_SOCKET;
33 + CAddrMan addrman;
34 +
35
36 diff --git a/net-p2p/ppcoind/ppcoind-0.4.0.ebuild b/net-p2p/ppcoind/ppcoind-0.4.0.ebuild
37 index 96a1e4377fc..f0cc1712c90 100644
38 --- a/net-p2p/ppcoind/ppcoind-0.4.0.ebuild
39 +++ b/net-p2p/ppcoind/ppcoind-0.4.0.ebuild
40 @@ -1,4 +1,4 @@
41 -# Copyright 1999-2014 Gentoo Foundation
42 +# Copyright 1999-2017 Gentoo Foundation
43 # Distributed under the terms of the GNU General Public License v2
44
45 EAPI=5
46 @@ -45,6 +45,8 @@ pkg_setup() {
47 }
48
49 src_prepare() {
50 + epatch "${FILESDIR}"/${P}-gcc6.patch
51 +
52 if has_version '>=dev-libs/boost-1.52'; then
53 sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' src/makefile.unix
54 fi