diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-06-08 00:14:21 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-06-08 00:14:21 -0700 |
commit | f27de769b375f53f4e2b0383c653b1be81538795 (patch) | |
tree | 47bfb557399c4e879bb36ab99e81305bb29aaea3 /dev-python | |
parent | dev-python/grpcio: respect CC in setup.py (diff) | |
download | gentoo-f27de769b375f53f4e2b0383c653b1be81538795.tar.gz gentoo-f27de769b375f53f4e2b0383c653b1be81538795.tar.bz2 gentoo-f27de769b375f53f4e2b0383c653b1be81538795.zip |
dev-python/grpcio-tools: respect CC in setup.py
Upstream-PR: https://github.com/grpc/grpc/pull/23159
Bug: https://bugs.gentoo.org/727478
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/grpcio-tools/files/setup.py-respect-cc.patch | 14 | ||||
-rw-r--r-- | dev-python/grpcio-tools/grpcio-tools-1.28.1.ebuild | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/grpcio-tools/files/setup.py-respect-cc.patch b/dev-python/grpcio-tools/files/setup.py-respect-cc.patch new file mode 100644 index 000000000000..029f96489686 --- /dev/null +++ b/dev-python/grpcio-tools/files/setup.py-respect-cc.patch @@ -0,0 +1,14 @@ +--- a/setup.py 2020-06-08 00:11:23.457959701 -0700 ++++ b/setup.py 2020-06-08 00:11:54.384652323 -0700 +@@ -68,9 +68,10 @@ + + def check_linker_need_libatomic(): + """Test if linker on system needs libatomic.""" ++ cc = os.environ.get('CC', 'cc') + code_test = (b'#include <atomic>\n' + + b'int main() { return std::atomic<int64_t>{}; }') +- cc_test = subprocess.Popen(['cc', '-x', 'c++', '-std=c++11', '-'], ++ cc_test = subprocess.Popen([cc, '-x', 'c++', '-std=c++11', '-'], + stdin=PIPE, + stdout=PIPE, + stderr=PIPE) diff --git a/dev-python/grpcio-tools/grpcio-tools-1.28.1.ebuild b/dev-python/grpcio-tools/grpcio-tools-1.28.1.ebuild index 5f5084a83cac..059e4b9e3b56 100644 --- a/dev-python/grpcio-tools/grpcio-tools-1.28.1.ebuild +++ b/dev-python/grpcio-tools/grpcio-tools-1.28.1.ebuild @@ -22,6 +22,8 @@ DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] " +PATCHES=( "${FILESDIR}/setup.py-respect-cc.patch" ) + python_configure_all() { export GRPC_PYTHON_BUILD_WITH_CYTHON=1 export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" |