Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/grpc/files/, net-libs/grpc/
Date: Tue, 12 Jun 2018 06:53:31
Message-Id: 1528786334.3a42fbdae17de388d96fed660e15686b19473362.perfinion@gentoo
1 commit: 3a42fbdae17de388d96fed660e15686b19473362
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 12 06:52:14 2018 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 12 06:52:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a42fbda
7
8 net-libs/grpc: fix building with gcc8
9
10 Closes: https://bugs.gentoo.org/656166
11 Package-Manager: Portage-2.3.40, Repoman-2.3.9
12
13 .../grpc/files/0009-grpc-1.12.1-gcc8-fixes.patch | 53 ++++++++++++++++++++++
14 net-libs/grpc/grpc-1.12.1.ebuild | 1 +
15 2 files changed, 54 insertions(+)
16
17 diff --git a/net-libs/grpc/files/0009-grpc-1.12.1-gcc8-fixes.patch b/net-libs/grpc/files/0009-grpc-1.12.1-gcc8-fixes.patch
18 new file mode 100644
19 index 00000000000..a9168f165e1
20 --- /dev/null
21 +++ b/net-libs/grpc/files/0009-grpc-1.12.1-gcc8-fixes.patch
22 @@ -0,0 +1,53 @@
23 +--- a/tmp/alts_transport_security.cc.ORIG 2018-04-13 20:08:11.000000000 +0200
24 ++++ b/src/core/tsi/alts_transport_security.cc 2018-05-20 16:54:49.995787548 +0200
25 +@@ -45,7 +45,7 @@
26 + }
27 +
28 + void grpc_tsi_alts_init() {
29 +- memset(&g_alts_resource, 0, sizeof(alts_shared_resource));
30 ++ memset((void*)&g_alts_resource, 0, sizeof(alts_shared_resource));
31 + gpr_mu_init(&g_alts_resource.mu);
32 + gpr_cv_init(&g_alts_resource.cv);
33 + }
34 +--- a/tmp/client_channel.cc.ORIG 2018-04-13 20:08:11.000000000 +0200
35 ++++ b/src/core/ext/filters/client_channel/client_channel.cc 2018-05-20 17:07:20.604746186 +0200
36 +@@ -416,7 +416,7 @@
37 + grpc_uri* uri = grpc_uri_parse(server_uri, true);
38 + GPR_ASSERT(uri->path[0] != '\0');
39 + service_config_parsing_state parsing_state;
40 +- memset(&parsing_state, 0, sizeof(parsing_state));
41 ++ memset((void*)&parsing_state, 0, sizeof(parsing_state));
42 + parsing_state.server_name =
43 + uri->path[0] == '/' ? uri->path + 1 : uri->path;
44 + service_config->ParseGlobalParams(parse_retry_throttle_params,
45 +--- a/tmp/channel.cc.ORIG 2018-04-13 20:08:11.000000000 +0200
46 ++++ b/src/core/lib/surface/channel.cc 2018-05-20 16:58:01.632776988 +0200
47 +@@ -103,7 +103,7 @@
48 + return channel;
49 + }
50 +
51 +- memset(channel, 0, sizeof(*channel));
52 ++ memset((void*)channel, 0, sizeof(*channel));
53 + channel->target = target;
54 + channel->is_client = grpc_channel_stack_type_is_client(channel_stack_type);
55 + size_t channel_tracer_max_nodes = 0; // default to off
56 +@@ -280,7 +280,7 @@
57 + }
58 +
59 + grpc_call_create_args args;
60 +- memset(&args, 0, sizeof(args));
61 ++ memset((void*)&args, 0, sizeof(args));
62 + args.channel = channel;
63 + args.parent = parent_call;
64 + args.propagation_mask = propagation_mask;
65 +--- a/tmp/flow_control.cc.ORIG 2018-04-13 20:08:11.000000000 +0200
66 ++++ b/src/core/ext/transport/chttp2/transport/flow_control.cc 2018-05-20 17:09:47.055738116 +0200
67 +@@ -187,7 +187,7 @@
68 + uint32_t TransportFlowControl::MaybeSendUpdate(bool writing_anyway) {
69 + FlowControlTrace trace("t updt sent", this, nullptr);
70 + const uint32_t target_announced_window =
71 +- static_cast<const uint32_t>(target_window());
72 ++ static_cast<uint32_t>(target_window());
73 + if ((writing_anyway || announced_window_ <= target_announced_window / 2) &&
74 + announced_window_ != target_announced_window) {
75 + const uint32_t announce = static_cast<uint32_t> GPR_CLAMP(
76
77 diff --git a/net-libs/grpc/grpc-1.12.1.ebuild b/net-libs/grpc/grpc-1.12.1.ebuild
78 index 774c0518b1d..e57c672f483 100644
79 --- a/net-libs/grpc/grpc-1.12.1.ebuild
80 +++ b/net-libs/grpc/grpc-1.12.1.ebuild
81 @@ -62,6 +62,7 @@ PATCHES=(
82 "${FILESDIR}/0006-grpc-1.12.1-allow-system-openssl.patch"
83 "${FILESDIR}/0007-grpc-1.12.1-allow-system-zlib.patch"
84 "${FILESDIR}/0008-grpc-1.12.1-allow-system-cares.patch"
85 + "${FILESDIR}/0009-grpc-1.12.1-gcc8-fixes.patch"
86 )
87
88 src_prepare() {