diff options
Diffstat (limited to 'dev-python/grpcio-tools')
-rw-r--r-- | dev-python/grpcio-tools/Manifest | 3 | ||||
-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 |
3 files changed, 18 insertions, 1 deletions
diff --git a/dev-python/grpcio-tools/Manifest b/dev-python/grpcio-tools/Manifest index 5c41c5572110..d7e9222708e4 100644 --- a/dev-python/grpcio-tools/Manifest +++ b/dev-python/grpcio-tools/Manifest @@ -1,5 +1,6 @@ +AUX setup.py-respect-cc.patch 636 BLAKE2B 8bbba520f02c83be4322e6ad2e65f95f23dc475f55b8acea15be341b131f9262c6595d7cc79dcfd0ede7ee3be61139a4c0d74586ffa845ce21dc253fc8e88bff SHA512 22aff2ae63dfeff93dd1bcb23d3f95f0e54908819b6fb7b54fad54b38cd86e62c2f4af8f1248c81516700377971c0da9dea027df99df9fa7d168f720dbac4d23 DIST grpcio-tools-1.26.0.tar.gz 1990162 BLAKE2B 3f07f5d5be14851a3df276865b9a4d93222f0d4bb95610600ac56efa268e46225c2095d7112612296649bb48afb53a35b73febb3b379f05ea061e269c3546f03 SHA512 d1780a0103b531cc4416b4524c77bd96ab6aac3c081a8ba8c402c10909eb3945d9a3caf4ecc8f9f9c8ae216958405bb98fe1b1874af46407084ed3a65128e105 DIST grpcio-tools-1.28.1.tar.gz 1986547 BLAKE2B 9f6eeb1e12dbf088a38bbff4daec95327cf86d6b9ac72dfdd826507d6b19d635bb263ccb4aca7577df7f585acaf02a45feebcfe0879c32a1190cac179d8cafba SHA512 b385fc567e8bb5965082164f87c1fafca5f0ec236feef343df92f82862b12ca33ddf9c94a366cd56437dc691ec5a37b82fd0f4fd547e389c6e9bcc7fe912d12e EBUILD grpcio-tools-1.26.0.ebuild 709 BLAKE2B 3f97d02b96c6a857ddd0c3892f66f93063646715c42c022f95aea0caebb901069268888ffb2839bef00743e7b72bb5c287e95210a79fd7ae0f8a97fe0fefaa8d SHA512 5e06dee6cb7b8afbc19fbd8c9a557555e2eaef4c0a1e30ab24c5e26f287fef14b5fea02db6c28c4328fe28331af6278fd253470d761c8d501236a20f13f18548 -EBUILD grpcio-tools-1.28.1.ebuild 709 BLAKE2B 3f97d02b96c6a857ddd0c3892f66f93063646715c42c022f95aea0caebb901069268888ffb2839bef00743e7b72bb5c287e95210a79fd7ae0f8a97fe0fefaa8d SHA512 5e06dee6cb7b8afbc19fbd8c9a557555e2eaef4c0a1e30ab24c5e26f287fef14b5fea02db6c28c4328fe28331af6278fd253470d761c8d501236a20f13f18548 +EBUILD grpcio-tools-1.28.1.ebuild 762 BLAKE2B 8448040333dc9089d864949fb1abb1675688c43fce7b06f974261dd02405d5274388456b322b70d82893d935cc8802154566714a2a3aaed4e9b00dfe8e430a55 SHA512 a2f33ff11d7a524707471282d5b2757949d3888eb3755084ad2e5e1e18656021a65f34ebc86b2555fe4843852d018eb576e4346c9fe5b09c358383429f2e6d74 MISC metadata.xml 375 BLAKE2B 5bc161c29339492932031484663b5af94d2cdc7ab17fd7125e1f06988b8870c6c513549341348d531b5858e32757e0edd7bc0e364abcbefc58658d7153b85f71 SHA512 42bcc2c018fc04fe3166ad61cc7e4392d95edfdcc802d88423a903033ea6bbd781dd0a6df2251c6aca41b38db1fc57554149b390ed34d1e70527ac467007961c 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)" |