diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-11-28 14:10:04 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2022-11-28 14:21:30 -0800 |
commit | 0ff6a32f5ca325f48d9a7ffab4ce59ec523d5813 (patch) | |
tree | 741816b8e1f0a780676d8f8411b6d66577db865a /dev-python/grpcio | |
parent | dev-python/grpcio-testing: add 1.51.0 (diff) | |
download | gentoo-0ff6a32f5ca325f48d9a7ffab4ce59ec523d5813.tar.gz gentoo-0ff6a32f5ca325f48d9a7ffab4ce59ec523d5813.tar.bz2 gentoo-0ff6a32f5ca325f48d9a7ffab4ce59ec523d5813.zip |
dev-python/grpcio: re-add CC patch in 1.51.0
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-python/grpcio')
-rw-r--r-- | dev-python/grpcio/files/1.51.0-respect-cc.patch | 28 | ||||
-rw-r--r-- | dev-python/grpcio/grpcio-1.51.0.ebuild | 2 |
2 files changed, 29 insertions, 1 deletions
diff --git a/dev-python/grpcio/files/1.51.0-respect-cc.patch b/dev-python/grpcio/files/1.51.0-respect-cc.patch new file mode 100644 index 000000000000..8a2c8313aa8f --- /dev/null +++ b/dev-python/grpcio/files/1.51.0-respect-cc.patch @@ -0,0 +1,28 @@ +From 209e9e0c21dd5bdf62d943dfd9caca40565734b5 Mon Sep 17 00:00:00 2001 +From: Georgy Yakovlev <gyakovlev@gentoo.org> +Date: Mon, 28 Nov 2022 14:08:17 -0800 +Subject: [PATCH] respect CC variable + +https://github.com/grpc/grpc/pull/26480 +Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> +--- + src/python/grpcio/commands.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py +index 58ab57be47..6d8228ffa0 100644 +--- a/src/python/grpcio/commands.py ++++ b/src/python/grpcio/commands.py +@@ -228,7 +228,8 @@ class BuildExt(build_ext.build_ext): + """ + try: + # TODO(lidiz) Remove the generated a.out for success tests. +- cc_test = subprocess.Popen(['cc', '-x', 'c', '-std=c++14', '-'], ++ cc = os.environ.get('CC', 'cc') ++ cc_test = subprocess.Popen([cc, '-x', 'c', '-std=c++14', '-'], + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) +-- +2.38.1 + diff --git a/dev-python/grpcio/grpcio-1.51.0.ebuild b/dev-python/grpcio/grpcio-1.51.0.ebuild index e0957a3fca22..316ccdb61a70 100644 --- a/dev-python/grpcio/grpcio-1.51.0.ebuild +++ b/dev-python/grpcio/grpcio-1.51.0.ebuild @@ -28,7 +28,7 @@ RDEPEND=" DEPEND="${RDEPEND}" -PATCHES=( "${FILESDIR}/1.37.1-cc-flag-test-fix.patch" ) +PATCHES=( "${FILESDIR}/1.51.0-respect-cc.patch" ) python_prepare_all() { distutils-r1_python_prepare_all |