1 |
commit: 31fe4f98334024bbb8f99fc16c75ac442f179a22 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 22:36:55 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 22:55:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31fe4f98 |
7 |
|
8 |
dev-python/grpcio: bump to 1.32.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/744619 |
11 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
12 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
13 |
|
14 |
dev-python/grpcio/Manifest | 1 + |
15 |
...up.py-respect-CC-variable-in-latomic-test.patch | 28 ++++++++++++++ |
16 |
dev-python/grpcio/grpcio-1.32.0.ebuild | 43 ++++++++++++++++++++++ |
17 |
3 files changed, 72 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/grpcio/Manifest b/dev-python/grpcio/Manifest |
20 |
index 8103d8c7204..8b912edf166 100644 |
21 |
--- a/dev-python/grpcio/Manifest |
22 |
+++ b/dev-python/grpcio/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST grpcio-1.28.1.tar.gz 19511346 BLAKE2B 01ebdeddcba5efbb67880693ede04ccd828771fe73def24a91d882c28f5cf6f14215daca212df1d8bb9372f385aff1e31418870437c87343f218e7b78a06b04c SHA512 12feaee3816a5e7b20b648a144d37f7e550a057112f5460bc4ec016885461951148cd4d2900fbfc905f76059ef29ae4c4d1d5a3216e5e3a2d17048c8b45f394f |
25 |
+DIST grpcio-1.32.0.tar.gz 20809917 BLAKE2B e28cb44d09fd775b9b6dc87dcd52bf7f144643b09912ff8b76bf39cb250743f90bc7e3769252d47f205f9532157ae68b6ac0a9202158cb14e7b9ad448d951656 SHA512 f802a7b83bd166502fdcbfaf162652adcda36da1b2e91b5073e3b3d97d38191fe989a6dcbec6c1bf27fff162633e54bdbdb20a92e74e14280fac4576baa92157 |
26 |
|
27 |
diff --git a/dev-python/grpcio/files/1.32.0-setup.py-respect-CC-variable-in-latomic-test.patch b/dev-python/grpcio/files/1.32.0-setup.py-respect-CC-variable-in-latomic-test.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..c6729e9808b |
30 |
--- /dev/null |
31 |
+++ b/dev-python/grpcio/files/1.32.0-setup.py-respect-CC-variable-in-latomic-test.patch |
32 |
@@ -0,0 +1,28 @@ |
33 |
+From c8e7e1c3cd55bf44b6fad6afa716dec9de3bf14f Mon Sep 17 00:00:00 2001 |
34 |
+From: Georgy Yakovlev <gyakovlev@g.o> |
35 |
+Date: Fri, 25 Sep 2020 15:34:19 -0700 |
36 |
+Subject: [PATCH] setup.py: respect CC variable in latomic test |
37 |
+ |
38 |
+--- |
39 |
+ setup.py | 3 ++- |
40 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
41 |
+ |
42 |
+diff --git a/setup.py b/setup.py |
43 |
+index 20a6d76..d1cd707 100644 |
44 |
+--- a/setup.py |
45 |
++++ b/setup.py |
46 |
+@@ -164,9 +164,10 @@ ENABLE_DOCUMENTATION_BUILD = os.environ.get( |
47 |
+ |
48 |
+ def check_linker_need_libatomic(): |
49 |
+ """Test if linker on system needs libatomic.""" |
50 |
++ cc = os.environ.get('CC', 'cc') |
51 |
+ code_test = (b'#include <atomic>\n' + |
52 |
+ b'int main() { return std::atomic<int64_t>{}; }') |
53 |
+- cc_test = subprocess.Popen(['cc', '-x', 'c++', '-std=c++11', '-'], |
54 |
++ cc_test = subprocess.Popen([cc, '-x', 'c++', '-std=c++11', '-'], |
55 |
+ stdin=PIPE, |
56 |
+ stdout=PIPE, |
57 |
+ stderr=PIPE) |
58 |
+-- |
59 |
+2.28.0 |
60 |
+ |
61 |
|
62 |
diff --git a/dev-python/grpcio/grpcio-1.32.0.ebuild b/dev-python/grpcio/grpcio-1.32.0.ebuild |
63 |
new file mode 100644 |
64 |
index 00000000000..d5fdc2f0f42 |
65 |
--- /dev/null |
66 |
+++ b/dev-python/grpcio/grpcio-1.32.0.ebuild |
67 |
@@ -0,0 +1,43 @@ |
68 |
+# Copyright 1999-2020 Gentoo Authors |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+ |
71 |
+EAPI=7 |
72 |
+ |
73 |
+PYTHON_COMPAT=( python3_{6..9} ) |
74 |
+ |
75 |
+inherit distutils-r1 multiprocessing prefix |
76 |
+ |
77 |
+DESCRIPTION="High-performance RPC framework (python libraries)" |
78 |
+HOMEPAGE="https://grpc.io" |
79 |
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" |
80 |
+ |
81 |
+LICENSE="Apache-2.0" |
82 |
+SLOT="0" |
83 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
84 |
+ |
85 |
+RDEPEND=" |
86 |
+ >=dev-libs/openssl-1.0.2:0=[-bindist] |
87 |
+ >=dev-python/cython-0.28.3[${PYTHON_USEDEP}] |
88 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
89 |
+ dev-python/six[${PYTHON_USEDEP}] |
90 |
+ net-dns/c-ares:= |
91 |
+ sys-libs/zlib:= |
92 |
+" |
93 |
+ |
94 |
+DEPEND="${RDEPEND}" |
95 |
+ |
96 |
+PATCHES=( "${FILESDIR}/1.32.0-setup.py-respect-CC-variable-in-latomic-test.patch" ) |
97 |
+ |
98 |
+python_prepare_all() { |
99 |
+ distutils-r1_python_prepare_all |
100 |
+ hprefixify setup.py |
101 |
+} |
102 |
+ |
103 |
+python_configure_all() { |
104 |
+ export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1 |
105 |
+ export GRPC_PYTHON_BUILD_SYSTEM_CARES=1 |
106 |
+ export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 |
107 |
+ export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 |
108 |
+ export GRPC_PYTHON_BUILD_WITH_CYTHON=1 |
109 |
+ export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" |
110 |
+} |