python3-grpcio: build against system LibreSSL and re2
H/T: @sgn Closes: #28816 [via git-merge-pr]
This commit is contained in:
parent
2bedf4e8a9
commit
72b2779cb2
1 changed files with 4 additions and 17 deletions
|
@ -1,12 +1,12 @@
|
|||
# Template file for 'python3-grpcio'
|
||||
pkgname=python3-grpcio
|
||||
version=1.35.0
|
||||
revision=1
|
||||
revision=2
|
||||
archs="x86_64* i686* aarch64* armv[67]* ppc64le*"
|
||||
wrksrc="${pkgname#*-}-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools python3-six"
|
||||
makedepends="python3-devel zlib-devel c-ares-devel libressl-devel"
|
||||
makedepends="python3-devel zlib-devel c-ares-devel re2-devel libressl-devel"
|
||||
depends="python3-six"
|
||||
short_desc="HTTP/2-based gRPC framework for Python"
|
||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||
|
@ -25,6 +25,8 @@ fi
|
|||
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_RE2=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
|
||||
|
||||
post_patch() {
|
||||
if [ "${CROSS_BUILD}" ]; then
|
||||
|
@ -33,19 +35,4 @@ post_patch() {
|
|||
vsed -e "s@['\"]cc['\"]@'${CC}'@g" \
|
||||
-i src/python/grpcio/commands.py
|
||||
fi
|
||||
|
||||
# set boringssl asm target
|
||||
local asm_key
|
||||
case "${XBPS_TARGET_MACHINE}" in
|
||||
x86_64*) asm_key=crypto_linux_x86_64;;
|
||||
i686*) asm_key=crypto_linux_x86;;
|
||||
aarch64*) asm_key=crypto_linux_aarch64;;
|
||||
armv6l*|armv7l*) asm_key=crypto_linux_arm;;
|
||||
ppc64le*) asm_key=crypto_linux_ppc64le;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
vsed -i setup.py \
|
||||
-e "s/asm_key = .*/asm_key = '${asm_key}'/" \
|
||||
-e "s/if BUILD_WITH_BORING_SSL_ASM:/if False:/"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue