mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-libs/grpc: drop old
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
DIST grpc-1.16.1.tar.gz 14442310 BLAKE2B 7ee9dc8f146a11009024786f3aa80205eb9a29576dd96fe719b7417eafcdacab703f0eaa73f009c98a54968c4d6079f612fa2b581e236d12fd55013c7c01fd5f SHA512 2bfc3aba316eac7d741944826a5cd4de6aa6ccf05e8023383cb9d8cd374ff1961c75b0371edf088d47c8a797ed64c35bd64b7b22f388a62ece9ecef55f4ea56d
|
||||
DIST grpc-1.17.1.tar.gz 14626262 BLAKE2B ce44f15bfb7f8cb9b7f0f2a1919d218a99dbc4c599d912459c2b5ca46b386b2446018f22d0d28886769dec16b5eadb8140b78e584ecfd5bb2cc6aa63dcb45ece SHA512 45ba731fd4d1bc3cf590511e53ea6a73de6970f4bb379eb0ef90d550cdc13358f673ead8c6877c02c71dccdba914ad4765c58e173e0dd7895b5d25ebbad38e8e
|
||||
DIST grpc-1.18.0.tar.gz 14690365 BLAKE2B ec2992e3b80ca10f9d0250510930d4f2b5f7a9593a8245927aafe77b29b028e4a4a2f32162af08fd4e2077d48b9e0e32e772901f5f524247f7d6910e74c2a120 SHA512 2489860a395b9f59d4eb81db5a8d873683e317145ad140b72fabb13693e166c122ce8526d34e2380a52d18493e8b2b49d6d28e53878af2c43523a5791da8fe52
|
||||
DIST grpc-1.19.0.tar.gz 14793251 BLAKE2B b3a3db91f6c54126a51e27bd474d05bc672c5f71f131581ddea60ded64b247d69bdc4edcc974cbce7af71e78c4579a7b6ad0c618ac3aeb9b0ff7743b039658f7 SHA512 6a61373e5c407ee147ea755b9992f96801695d0b94e6d34305fc09afe9987ae6d4a70a0757bd903734f549604bda26b41582e6938b1654598429abc4cc3a3b90
|
||||
DIST grpc-1.20.1.tar.gz 14930355 BLAKE2B 5b1bf2250d2b052498cfad9fc96134fd9b0065c98d73957427347aff4fe170f9a3d323c9f8797311c570a25bd9ff79f80da610e32b638c6409d2cd5dfbeb4eef SHA512 e0dd0318d2b4ec07e0eafffa218938d91b1440c5053a557460ea7fceaab3d76f0cccc1d595abe7de9fa79f068b71cfbc5a28a3b688bc9c1e2737086928149583
|
||||
DIST grpc-1.21.1.tar.gz 15043553 BLAKE2B bed23af6606a69eb02a033d5dd6d92e3e080cc68ddae3c700872b8036cab594fd79c2396eb4ac84df2c5ea9eaf5ec0401d820667a7de0e9e2b376c0df4d4e9c5 SHA512 b9ea81a97416d9c1ef4d49e5f222f309b00d383f643f3bf342b6ad97f88e08e212e19db75e4a74fc5c23799dbe76dd0a9d6d4c9310e8cb1e007622a78d7a7114
|
||||
DIST grpc-1.22.1.tar.gz 15083781 BLAKE2B 5f1bc2fc638cfa2f97df9dfba3c927ae0c7871b9e56f8012795000c30f20fa4d5c1bad37d117cf8ea54fb372b8b02702a866c027c6e0a467f276a752ee9d17c6 SHA512 086ceb7a4fc1439bd23a2cab8c90ba2542491d5a9c278a0ff6e1b3ad623cf7725b2a7310bb793d9b36882bd9394d02a3616331ac26c78d822e68b305c2ae27f6
|
||||
DIST grpc-1.23.0.tar.gz 15212436 BLAKE2B 119a62e6573a1c7785934f7752d9bf2fc0f503a268e439ce143d6730994e3fc154ffd558a2fb3776a77f5f36798baac334f50d1c612ae5564c3c2f110df8b42c SHA512 4770651bd73b71735152155327c44d59125442b405157ffea8fb80b6f16406dd388474394e44ef620e2a777018121988a3a7a552a42141650d7cac263ab499a0
|
||||
DIST grpc-1.24.3.tar.gz 15364420 BLAKE2B 7a1262ee931c2578399e7373e25fefb7a4329a2c0f139b17fbd4073406a931730393016455ff3ddee8b686ebb7903a898ca532972f57369c7658c68643b6d715 SHA512 19afa8b1fd64c429317c85d8cf42d01af0ac6aec82508740c176e1fd4f92dea9531ea9812523215ed67466bae93a75e14dc34cd9cce5987a13c0104e0313c69c
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
From 7e2d98df390787797fa494b26c72896f16f6e2a6 Mon Sep 17 00:00:00 2001
|
||||
From: Georgy Yakovlev <gyakovlev@gentoo.org>
|
||||
Date: Sat, 30 Jun 2018 00:21:53 -0700
|
||||
Subject: [PATCH] Makefile: fix host ar handling
|
||||
|
||||
Cherry picked lines from
|
||||
https://github.com/grpc/grpc/pull/11476
|
||||
---
|
||||
Makefile | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 8333858588..b5a44b7096 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -328,6 +328,7 @@ HOST_CC ?= $(CC)
|
||||
HOST_CXX ?= $(CXX)
|
||||
HOST_LD ?= $(LD)
|
||||
HOST_LDXX ?= $(LDXX)
|
||||
+HOST_AR ?= $(AR)
|
||||
|
||||
CFLAGS += -std=c99 -Wsign-conversion -Wconversion $(W_SHADOW) $(W_EXTRA_SEMI)
|
||||
CXXFLAGS += -std=c++11
|
||||
@@ -444,6 +445,7 @@ HOST_CFLAGS = $(CFLAGS)
|
||||
HOST_CXXFLAGS = $(CXXFLAGS)
|
||||
HOST_LDFLAGS = $(LDFLAGS)
|
||||
HOST_LDLIBS = $(LDLIBS)
|
||||
+HOST_AROPTS = $(AROPTS)
|
||||
|
||||
# These are automatically computed variables.
|
||||
# There shouldn't be any need to change anything from now on.
|
||||
@@ -6886,10 +6888,10 @@ $(LIBDIR)/$(CONFIG)/libgrpc_plugin_support.a: protobuf_dep_error
|
||||
else
|
||||
|
||||
$(LIBDIR)/$(CONFIG)/libgrpc_plugin_support.a: $(ZLIB_DEP) $(CARES_DEP) $(ADDRESS_SORTING_DEP) $(PROTOBUF_DEP) $(LIBGRPC_PLUGIN_SUPPORT_OBJS)
|
||||
- $(E) "[AR] Creating $@"
|
||||
+ $(E) "[HOSTAR] Creating $@"
|
||||
$(Q) mkdir -p `dirname $@`
|
||||
$(Q) rm -f $(LIBDIR)/$(CONFIG)/libgrpc_plugin_support.a
|
||||
- $(Q) $(AR) $(AROPTS) $(LIBDIR)/$(CONFIG)/libgrpc_plugin_support.a $(LIBGRPC_PLUGIN_SUPPORT_OBJS)
|
||||
+ $(Q) $(HOST_AR) $(HOST_AROPTS) $(LIBDIR)/$(CONFIG)/libgrpc_plugin_support.a $(LIBGRPC_PLUGIN_SUPPORT_OBJS)
|
||||
ifeq ($(SYSTEM),Darwin)
|
||||
$(Q) ranlib -no_warning_for_no_symbols $(LIBDIR)/$(CONFIG)/libgrpc_plugin_support.a
|
||||
endif
|
||||
--
|
||||
2.18.0
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
From a443abbdbbd402951138bb8fcb2a4f159b920fcd Mon Sep 17 00:00:00 2001
|
||||
From: Georgy Yakovlev <gyakovlev@gentoo.org>
|
||||
Date: Wed, 12 Sep 2018 11:22:48 -0700
|
||||
Subject: [PATCH] Fix cpp soname symlinks
|
||||
|
||||
---
|
||||
Makefile | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 4e993782ee..09bd52e8ad 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -3050,7 +3050,7 @@ install-shared_cxx: shared_cxx strip-shared_cxx install-shared_c install-pkg-con
|
||||
ifeq ($(SYSTEM),MINGW32)
|
||||
$(Q) $(INSTALL) $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION_CPP)-dll.a $(prefix)/$(INSTALL_LIBDIR)/libgrpc++.a
|
||||
else ifneq ($(SYSTEM),Darwin)
|
||||
- $(Q) ln -sf $(SHARED_PREFIX)grpc++$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++.so.6
|
||||
+ $(Q) ln -sf $(SHARED_PREFIX)grpc++$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++.so.1
|
||||
$(Q) ln -sf $(SHARED_PREFIX)grpc++$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++.so
|
||||
endif
|
||||
$(E) "[INSTALL] Installing $(SHARED_PREFIX)grpc++_cronet$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP)"
|
||||
@@ -3059,7 +3059,7 @@ endif
|
||||
ifeq ($(SYSTEM),MINGW32)
|
||||
$(Q) $(INSTALL) $(LIBDIR)/$(CONFIG)/libgrpc++_cronet$(SHARED_VERSION_CPP)-dll.a $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_cronet.a
|
||||
else ifneq ($(SYSTEM),Darwin)
|
||||
- $(Q) ln -sf $(SHARED_PREFIX)grpc++_cronet$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_cronet.so.6
|
||||
+ $(Q) ln -sf $(SHARED_PREFIX)grpc++_cronet$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_cronet.so.1
|
||||
$(Q) ln -sf $(SHARED_PREFIX)grpc++_cronet$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_cronet.so
|
||||
endif
|
||||
$(E) "[INSTALL] Installing $(SHARED_PREFIX)grpc++_error_details$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP)"
|
||||
@@ -3068,7 +3068,7 @@ endif
|
||||
ifeq ($(SYSTEM),MINGW32)
|
||||
$(Q) $(INSTALL) $(LIBDIR)/$(CONFIG)/libgrpc++_error_details$(SHARED_VERSION_CPP)-dll.a $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_error_details.a
|
||||
else ifneq ($(SYSTEM),Darwin)
|
||||
- $(Q) ln -sf $(SHARED_PREFIX)grpc++_error_details$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_error_details.so.6
|
||||
+ $(Q) ln -sf $(SHARED_PREFIX)grpc++_error_details$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_error_details.so.1
|
||||
$(Q) ln -sf $(SHARED_PREFIX)grpc++_error_details$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_error_details.so
|
||||
endif
|
||||
$(E) "[INSTALL] Installing $(SHARED_PREFIX)grpc++_reflection$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP)"
|
||||
@@ -3077,7 +3077,7 @@ endif
|
||||
ifeq ($(SYSTEM),MINGW32)
|
||||
$(Q) $(INSTALL) $(LIBDIR)/$(CONFIG)/libgrpc++_reflection$(SHARED_VERSION_CPP)-dll.a $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_reflection.a
|
||||
else ifneq ($(SYSTEM),Darwin)
|
||||
- $(Q) ln -sf $(SHARED_PREFIX)grpc++_reflection$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_reflection.so.6
|
||||
+ $(Q) ln -sf $(SHARED_PREFIX)grpc++_reflection$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_reflection.so.1
|
||||
$(Q) ln -sf $(SHARED_PREFIX)grpc++_reflection$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_reflection.so
|
||||
endif
|
||||
$(E) "[INSTALL] Installing $(SHARED_PREFIX)grpc++_unsecure$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP)"
|
||||
@@ -3086,7 +3086,7 @@ endif
|
||||
ifeq ($(SYSTEM),MINGW32)
|
||||
$(Q) $(INSTALL) $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION_CPP)-dll.a $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_unsecure.a
|
||||
else ifneq ($(SYSTEM),Darwin)
|
||||
- $(Q) ln -sf $(SHARED_PREFIX)grpc++_unsecure$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_unsecure.so.6
|
||||
+ $(Q) ln -sf $(SHARED_PREFIX)grpc++_unsecure$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_unsecure.so.1
|
||||
$(Q) ln -sf $(SHARED_PREFIX)grpc++_unsecure$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpc++_unsecure.so
|
||||
endif
|
||||
$(E) "[INSTALL] Installing $(SHARED_PREFIX)grpcpp_channelz$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP)"
|
||||
@@ -3095,7 +3095,7 @@ endif
|
||||
ifeq ($(SYSTEM),MINGW32)
|
||||
$(Q) $(INSTALL) $(LIBDIR)/$(CONFIG)/libgrpcpp_channelz$(SHARED_VERSION_CPP)-dll.a $(prefix)/$(INSTALL_LIBDIR)/libgrpcpp_channelz.a
|
||||
else ifneq ($(SYSTEM),Darwin)
|
||||
- $(Q) ln -sf $(SHARED_PREFIX)grpcpp_channelz$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpcpp_channelz.so.6
|
||||
+ $(Q) ln -sf $(SHARED_PREFIX)grpcpp_channelz$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpcpp_channelz.so.1
|
||||
$(Q) ln -sf $(SHARED_PREFIX)grpcpp_channelz$(SHARED_VERSION_CPP).$(SHARED_EXT_CPP) $(prefix)/$(INSTALL_LIBDIR)/libgrpcpp_channelz.so
|
||||
endif
|
||||
ifneq ($(SYSTEM),MINGW32)
|
||||
--
|
||||
2.18.0
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
From 0892788776d60d92a0cddcd22078779166b736db Mon Sep 17 00:00:00 2001
|
||||
From: Dario Berzano <dario.berzano@cern.ch>
|
||||
Date: Thu, 5 Jul 2018 11:27:20 +0200
|
||||
Subject: [PATCH] Prevent shell calls longer than ARG_MAX
|
||||
|
||||
This patch we breaks the relevant paths array into multiple shorter arrays in
|
||||
order to make the shell calls succeed.
|
||||
|
||||
See grpc/grpc#14844.
|
||||
---
|
||||
Makefile | 16 ++++++++++++++++
|
||||
1 file changed, 16 insertions(+)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 54823a31167..25eb092d996 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -2946,8 +2946,14 @@ install-headers_c:
|
||||
|
||||
install-headers_cxx:
|
||||
$(E) "[INSTALL] Installing public C++ headers"
|
||||
- $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX), $(INSTALL) -d $(prefix)/$(dir $(h)) && ) exit 0 || exit 1
|
||||
- $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX), $(INSTALL) $(h) $(prefix)/$(h) && ) exit 0 || exit 1
|
||||
+ $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX1), $(INSTALL) -d $(prefix)/$(dir $(h)) && ) exit 0 || exit 1
|
||||
+ $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX1), $(INSTALL) $(h) $(prefix)/$(h) && ) exit 0 || exit 1
|
||||
+ $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX2), $(INSTALL) -d $(prefix)/$(dir $(h)) && ) exit 0 || exit 1
|
||||
+ $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX2), $(INSTALL) $(h) $(prefix)/$(h) && ) exit 0 || exit 1
|
||||
+ $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX3), $(INSTALL) -d $(prefix)/$(dir $(h)) && ) exit 0 || exit 1
|
||||
+ $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX3), $(INSTALL) $(h) $(prefix)/$(h) && ) exit 0 || exit 1
|
||||
+ $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX4), $(INSTALL) -d $(prefix)/$(dir $(h)) && ) exit 0 || exit 1
|
||||
+ $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX4), $(INSTALL) $(h) $(prefix)/$(h) && ) exit 0 || exit 1
|
||||
|
||||
install-static: install-static_c install-static_cxx
|
||||
|
||||
@@ -5278,6 +5284,8 @@ PUBLIC_HEADERS_CXX += \
|
||||
include/grpc++/support/stub_options.h \
|
||||
include/grpc++/support/sync_stream.h \
|
||||
include/grpc++/support/time.h \
|
||||
+
|
||||
+PUBLIC_HEADERS_CXX1 += \
|
||||
include/grpcpp/alarm.h \
|
||||
include/grpcpp/channel.h \
|
||||
include/grpcpp/client_context.h \
|
||||
@@ -5325,6 +5333,8 @@ PUBLIC_HEADERS_CXX += \
|
||||
include/grpcpp/support/stub_options.h \
|
||||
include/grpcpp/support/sync_stream.h \
|
||||
include/grpcpp/support/time.h \
|
||||
+
|
||||
+PUBLIC_HEADERS_CXX2 += \
|
||||
include/grpc/support/alloc.h \
|
||||
include/grpc/support/atm.h \
|
||||
include/grpc/support/atm_gcc_atomic.h \
|
||||
@@ -5376,6 +5386,8 @@ PUBLIC_HEADERS_CXX += \
|
||||
include/grpc/impl/codegen/propagation_bits.h \
|
||||
include/grpc/impl/codegen/slice.h \
|
||||
include/grpc/impl/codegen/status.h \
|
||||
+
|
||||
+PUBLIC_HEADERS_CXX3 += \
|
||||
include/grpc++/impl/codegen/async_stream.h \
|
||||
include/grpc++/impl/codegen/async_unary_call.h \
|
||||
include/grpc++/impl/codegen/byte_buffer.h \
|
||||
@@ -5406,6 +5418,8 @@ PUBLIC_HEADERS_CXX += \
|
||||
include/grpc++/impl/codegen/stub_options.h \
|
||||
include/grpc++/impl/codegen/sync_stream.h \
|
||||
include/grpc++/impl/codegen/time.h \
|
||||
+
|
||||
+PUBLIC_HEADERS_CXX4 += \
|
||||
include/grpcpp/impl/codegen/async_generic_service.h \
|
||||
include/grpcpp/impl/codegen/async_stream.h \
|
||||
include/grpcpp/impl/codegen/async_unary_call.h \
|
||||
@@ -1,46 +0,0 @@
|
||||
From 807a938a576ec52bc8c971100b2da26b059d9347 Mon Sep 17 00:00:00 2001
|
||||
From: Tobias Jungel <tobias.jungel@gmail.com>
|
||||
Date: Wed, 22 Aug 2018 21:14:46 +0200
|
||||
Subject: [PATCH 1/2] mitigate gcc8 -Werror=ignored-qualifiers
|
||||
|
||||
---
|
||||
src/core/ext/transport/chttp2/transport/flow_control.cc | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/core/ext/transport/chttp2/transport/flow_control.cc b/src/core/ext/transport/chttp2/transport/flow_control.cc
|
||||
index 53932bcb7f5..4b1862735d6 100644
|
||||
--- a/src/core/ext/transport/chttp2/transport/flow_control.cc
|
||||
+++ b/src/core/ext/transport/chttp2/transport/flow_control.cc
|
||||
@@ -190,7 +190,7 @@ TransportFlowControl::TransportFlowControl(const grpc_chttp2_transport* t,
|
||||
uint32_t TransportFlowControl::MaybeSendUpdate(bool writing_anyway) {
|
||||
FlowControlTrace trace("t updt sent", this, nullptr);
|
||||
const uint32_t target_announced_window =
|
||||
- static_cast<const uint32_t>(target_window());
|
||||
+ static_cast<uint32_t>(target_window());
|
||||
if ((writing_anyway || announced_window_ <= target_announced_window / 2) &&
|
||||
announced_window_ != target_announced_window) {
|
||||
const uint32_t announce = static_cast<uint32_t> GPR_CLAMP(
|
||||
|
||||
From 5a03e7f10145c6591f313055907a9cf26ccb9234 Mon Sep 17 00:00:00 2001
|
||||
From: Tobias Jungel <tobias.jungel@gmail.com>
|
||||
Date: Wed, 22 Aug 2018 21:17:01 +0200
|
||||
Subject: [PATCH 2/2] mitigate gcc8 -Werror=stringop-truncation
|
||||
|
||||
---
|
||||
.../client_channel/lb_policy/grpclb/load_balancer_api.cc | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc b/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc
|
||||
index f24281a5bfb..8c064214729 100644
|
||||
--- a/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc
|
||||
+++ b/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc
|
||||
@@ -68,7 +68,8 @@ grpc_grpclb_request* grpc_grpclb_request_create(const char* lb_service_name) {
|
||||
req->has_initial_request = true;
|
||||
req->initial_request.has_name = true;
|
||||
strncpy(req->initial_request.name, lb_service_name,
|
||||
- GRPC_GRPCLB_SERVICE_NAME_MAX_LENGTH);
|
||||
+ GRPC_GRPCLB_SERVICE_NAME_MAX_LENGTH - 1);
|
||||
+ req->initial_request.name[GRPC_GRPCLB_SERVICE_NAME_MAX_LENGTH - 1] = '\0';
|
||||
return req;
|
||||
}
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
dev-libs/protobuf:=
|
||||
net-dns/c-ares:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.13.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.15.0-fix-cpp-so-version.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-gcc8-fixes.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-Prevent-shell-calls-longer-than-ARG_MAX.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
emake \
|
||||
V=1 \
|
||||
prefix=/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
AR="$(tc-getAR)" \
|
||||
AROPTS="rcs" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LD="${CC}" \
|
||||
LDXX="${CXX}" \
|
||||
STRIP=/bin/true \
|
||||
HOST_CC="$(tc-getBUILD_CC)" \
|
||||
HOST_CXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_LD="$(tc-getBUILD_CC)" \
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_AR="$(tc-getBUILD_AR)" \
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)" \
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
prefix="${ED}"/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
STRIP=/bin/true \
|
||||
install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
dev-libs/protobuf:=
|
||||
net-dns/c-ares:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
# requires network
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.13.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-gcc8-fixes.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-Prevent-shell-calls-longer-than-ARG_MAX.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's:-Werror::g' Makefile || die
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
emake \
|
||||
V=1 \
|
||||
prefix=/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
AR="$(tc-getAR)" \
|
||||
AROPTS="rcs" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LD="${CC}" \
|
||||
LDXX="${CXX}" \
|
||||
STRIP=/bin/true \
|
||||
HOST_CC="$(tc-getBUILD_CC)" \
|
||||
HOST_CXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_LD="$(tc-getBUILD_CC)" \
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_AR="$(tc-getBUILD_AR)" \
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)" \
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
prefix="${ED}"/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
STRIP=/bin/true \
|
||||
install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
dev-libs/protobuf:=
|
||||
net-dns/c-ares:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
# requires network
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.13.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-gcc8-fixes.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-Prevent-shell-calls-longer-than-ARG_MAX.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's:-Werror::g' Makefile || die
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
emake \
|
||||
V=1 \
|
||||
prefix=/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
AR="$(tc-getAR)" \
|
||||
AROPTS="rcs" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LD="${CC}" \
|
||||
LDXX="${CXX}" \
|
||||
STRIP=/bin/true \
|
||||
HOST_CC="$(tc-getBUILD_CC)" \
|
||||
HOST_CXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_LD="$(tc-getBUILD_CC)" \
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_AR="$(tc-getBUILD_AR)" \
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)" \
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
prefix="${ED}"/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
STRIP=/bin/true \
|
||||
install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
@@ -1,105 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
dev-libs/protobuf:=
|
||||
net-dns/c-ares:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
# requires network
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.13.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-Prevent-shell-calls-longer-than-ARG_MAX.patch"
|
||||
)
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's:-Werror::g' Makefile || die
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
emake \
|
||||
V=1 \
|
||||
prefix=/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
AR="$(tc-getAR)" \
|
||||
AROPTS="rcs" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LD="${CC}" \
|
||||
LDXX="${CXX}" \
|
||||
STRIP=/bin/true \
|
||||
HOST_CC="$(tc-getBUILD_CC)" \
|
||||
HOST_CXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_LD="$(tc-getBUILD_CC)" \
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_AR="$(tc-getBUILD_AR)" \
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)" \
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
prefix="${ED}"/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
STRIP=/bin/true \
|
||||
install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS CONCEPTS.md README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
@@ -1,105 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
>=dev-libs/protobuf-3.7.0:=
|
||||
>=net-dns/c-ares-1.15.0:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
# requires network
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.13.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-Prevent-shell-calls-longer-than-ARG_MAX.patch"
|
||||
)
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's:-Werror::g' Makefile || die
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
emake \
|
||||
V=1 \
|
||||
prefix=/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
AR="$(tc-getAR)" \
|
||||
AROPTS="rcs" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LD="${CC}" \
|
||||
LDXX="${CXX}" \
|
||||
STRIP=/bin/true \
|
||||
HOST_CC="$(tc-getBUILD_CC)" \
|
||||
HOST_CXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_LD="$(tc-getBUILD_CC)" \
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)" \
|
||||
HOST_AR="$(tc-getBUILD_AR)" \
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)" \
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
prefix="${ED}"/usr \
|
||||
INSTALL_LIBDIR="$(get_libdir)" \
|
||||
STRIP=/bin/true \
|
||||
install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS CONCEPTS.md README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
>=dev-libs/protobuf-3.7.0:=
|
||||
>=net-dns/c-ares-1.15.0:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
# requires network
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.21.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.16.0-Prevent-shell-calls-longer-than-ARG_MAX.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r third_party/cares || die
|
||||
sed -i 's:-Werror::g' Makefile || die
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
prefix=/usr
|
||||
INSTALL_LIBDIR="$(get_libdir)"
|
||||
AR="$(tc-getAR)"
|
||||
AROPTS="rcs"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LD="${CC}"
|
||||
LDXX="${CXX}"
|
||||
STRIP=/bin/true
|
||||
HOST_AR="$(tc-getBUILD_AR)"
|
||||
HOST_CC="$(tc-getBUILD_CC)"
|
||||
HOST_CXX="$(tc-getBUILD_CXX)"
|
||||
HOST_LD="$(tc-getBUILD_CC)"
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)"
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
prefix="${ED}"/usr
|
||||
INSTALL_LIBDIR="$(get_libdir)"
|
||||
STRIP=/bin/true
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS CONCEPTS.md README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user