community/grpc: fix

This commit is contained in:
Kevin Mihelich 2021-12-22 16:40:51 +00:00
parent 121795b5e3
commit 227c3b8a42

View file

@ -4,7 +4,6 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - explicitly link v5/v6 with libatomic # - explicitly link v5/v6 with libatomic
# - upstream PR to fix FTBFS
pkgbase='grpc' pkgbase='grpc'
pkgname=('grpc' 'python-grpcio' 'php-grpc' 'php7-grpc' 'grpc-cli') pkgname=('grpc' 'python-grpcio' 'php-grpc' 'php7-grpc' 'grpc-cli')
@ -19,12 +18,10 @@ makedepends=('re2' 're2c' 'protobuf' 'php' 'php7' 'c-ares' 'openssl' 'chrpath' '
'cmake' 'benchmark' 'python-setuptools' 'abseil-cpp' 'ninja') 'cmake' 'benchmark' 'python-setuptools' 'abseil-cpp' 'ninja')
source=("https://github.com/grpc/grpc/archive/v$pkgver/$pkgbase-$pkgver.tar.gz" source=("https://github.com/grpc/grpc/archive/v$pkgver/$pkgbase-$pkgver.tar.gz"
"https://github.com/google/googletest/archive/$_gtestver/googletest-$_gtestver.tar.gz" "https://github.com/google/googletest/archive/$_gtestver/googletest-$_gtestver.tar.gz"
"python-grpcio-use-system-abseil.patch" "python-grpcio-use-system-abseil.patch")
"https://patch-diff.githubusercontent.com/raw/grpc/grpc/pull/28196.patch")
sha256sums=('9647220c699cea4dafa92ec0917c25c7812be51a18143af047e20f3fb05adddc' sha256sums=('9647220c699cea4dafa92ec0917c25c7812be51a18143af047e20f3fb05adddc'
'443d383db648ebb8e391382c0ab63263b7091d03197f304390baac10f178a468' '443d383db648ebb8e391382c0ab63263b7091d03197f304390baac10f178a468'
'3cfb289266f9d2697b917e4400f18a6592f95a99e658e401c1332870b219358b' '3cfb289266f9d2697b917e4400f18a6592f95a99e658e401c1332870b219358b')
'24e23817d5848413add68f1bd60e840c321a5a6ca48b0e9a8f70aaaca83f00bd')
prepare() { prepare() {
cd "$srcdir/$pkgbase-$pkgver" cd "$srcdir/$pkgbase-$pkgver"
@ -38,7 +35,6 @@ prepare() {
if [[ $CARCH == "armv6h" || $CARCH == "arm" ]]; then if [[ $CARCH == "armv6h" || $CARCH == "arm" ]]; then
sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" CMakeLists.txt sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" CMakeLists.txt
fi fi
patch -p1 -i ../28196.patch
cmake -Bbuild \ cmake -Bbuild \
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \