From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B6CE1138334 for ; Tue, 12 Jun 2018 06:53:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92A18E087C; Tue, 12 Jun 2018 06:53:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52C58E087C for ; Tue, 12 Jun 2018 06:53:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C933335C92 for ; Tue, 12 Jun 2018 06:53:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4041E2C2 for ; Tue, 12 Jun 2018 06:53:26 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1528786334.3a42fbdae17de388d96fed660e15686b19473362.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/grpc/files/, net-libs/grpc/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/grpc/files/0009-grpc-1.12.1-gcc8-fixes.patch net-libs/grpc/grpc-1.12.1.ebuild X-VCS-Directories: net-libs/grpc/files/ net-libs/grpc/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 3a42fbdae17de388d96fed660e15686b19473362 X-VCS-Branch: master Date: Tue, 12 Jun 2018 06:53:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 71a6a9c5-02e6-48c2-b719-3f4f960c0c7c X-Archives-Hash: 072e6b3dba56e05268e13c4010a0e52a commit: 3a42fbdae17de388d96fed660e15686b19473362 Author: Jason Zaman gentoo org> AuthorDate: Tue Jun 12 06:52:14 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Jun 12 06:52:14 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a42fbda net-libs/grpc: fix building with gcc8 Closes: https://bugs.gentoo.org/656166 Package-Manager: Portage-2.3.40, Repoman-2.3.9 .../grpc/files/0009-grpc-1.12.1-gcc8-fixes.patch | 53 ++++++++++++++++++++++ net-libs/grpc/grpc-1.12.1.ebuild | 1 + 2 files changed, 54 insertions(+) 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 new file mode 100644 index 00000000000..a9168f165e1 --- /dev/null +++ b/net-libs/grpc/files/0009-grpc-1.12.1-gcc8-fixes.patch @@ -0,0 +1,53 @@ +--- a/tmp/alts_transport_security.cc.ORIG 2018-04-13 20:08:11.000000000 +0200 ++++ b/src/core/tsi/alts_transport_security.cc 2018-05-20 16:54:49.995787548 +0200 +@@ -45,7 +45,7 @@ + } + + void grpc_tsi_alts_init() { +- memset(&g_alts_resource, 0, sizeof(alts_shared_resource)); ++ memset((void*)&g_alts_resource, 0, sizeof(alts_shared_resource)); + gpr_mu_init(&g_alts_resource.mu); + gpr_cv_init(&g_alts_resource.cv); + } +--- a/tmp/client_channel.cc.ORIG 2018-04-13 20:08:11.000000000 +0200 ++++ b/src/core/ext/filters/client_channel/client_channel.cc 2018-05-20 17:07:20.604746186 +0200 +@@ -416,7 +416,7 @@ + grpc_uri* uri = grpc_uri_parse(server_uri, true); + GPR_ASSERT(uri->path[0] != '\0'); + service_config_parsing_state parsing_state; +- memset(&parsing_state, 0, sizeof(parsing_state)); ++ memset((void*)&parsing_state, 0, sizeof(parsing_state)); + parsing_state.server_name = + uri->path[0] == '/' ? uri->path + 1 : uri->path; + service_config->ParseGlobalParams(parse_retry_throttle_params, +--- a/tmp/channel.cc.ORIG 2018-04-13 20:08:11.000000000 +0200 ++++ b/src/core/lib/surface/channel.cc 2018-05-20 16:58:01.632776988 +0200 +@@ -103,7 +103,7 @@ + return channel; + } + +- memset(channel, 0, sizeof(*channel)); ++ memset((void*)channel, 0, sizeof(*channel)); + channel->target = target; + channel->is_client = grpc_channel_stack_type_is_client(channel_stack_type); + size_t channel_tracer_max_nodes = 0; // default to off +@@ -280,7 +280,7 @@ + } + + grpc_call_create_args args; +- memset(&args, 0, sizeof(args)); ++ memset((void*)&args, 0, sizeof(args)); + args.channel = channel; + args.parent = parent_call; + args.propagation_mask = propagation_mask; +--- a/tmp/flow_control.cc.ORIG 2018-04-13 20:08:11.000000000 +0200 ++++ b/src/core/ext/transport/chttp2/transport/flow_control.cc 2018-05-20 17:09:47.055738116 +0200 +@@ -187,7 +187,7 @@ + uint32_t TransportFlowControl::MaybeSendUpdate(bool writing_anyway) { + FlowControlTrace trace("t updt sent", this, nullptr); + const uint32_t target_announced_window = +- static_cast(target_window()); ++ static_cast(target_window()); + if ((writing_anyway || announced_window_ <= target_announced_window / 2) && + announced_window_ != target_announced_window) { + const uint32_t announce = static_cast GPR_CLAMP( diff --git a/net-libs/grpc/grpc-1.12.1.ebuild b/net-libs/grpc/grpc-1.12.1.ebuild index 774c0518b1d..e57c672f483 100644 --- a/net-libs/grpc/grpc-1.12.1.ebuild +++ b/net-libs/grpc/grpc-1.12.1.ebuild @@ -62,6 +62,7 @@ PATCHES=( "${FILESDIR}/0006-grpc-1.12.1-allow-system-openssl.patch" "${FILESDIR}/0007-grpc-1.12.1-allow-system-zlib.patch" "${FILESDIR}/0008-grpc-1.12.1-allow-system-cares.patch" + "${FILESDIR}/0009-grpc-1.12.1-gcc8-fixes.patch" ) src_prepare() {