1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/cassandra-cpp-driver/APKBUILD
Gustavo L F Walbon 9607aed094 community/cassandra-cpp-driver: fix build
The build was emitting an error due to -Werror.

```
/home/devel/aports/community/cassandra-cpp-driver/src/cpp-driver-2.15.2/src/cloud_secure_connection_config.cpp:123:62:
required from here
/home/devel/aports/community/cassandra-cpp-driver/src/cpp-driver-2.15.2/src/third_party/rapidjson/rapidjson/reader.h:1013:53:
error: comparison is always true due to limited range of data type
[-Werror=type-limits]
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/cassandra_static.dir/build.make:238:
src/CMakeFiles/cassandra_static.dir/cloud_secure_connection_config.cpp.o]
Error 1
make[1]: *** [CMakeFiles/Makefile2:258:
src/CMakeFiles/cassandra_static.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
>>> ERROR: cassandra-cpp-driver: build failed
```

Signed-off-by: Gustavo L F Walbon <gwalbon@linux.ibm.com>
2020-12-14 09:56:13 +00:00

35 lines
1.1 KiB
Text

# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=cassandra-cpp-driver
_pkgname=cpp-driver
pkgver=2.15.2
pkgrel=0
pkgdesc="Cassandra CPP Driver"
url="https://datastax.github.io/cpp-driver/"
arch="aarch64 x86_64 x86 ppc64le"
license="Apache-2.0"
options="!check" # FIXME: cassandra_integration_tests won't link
makedepends="cmake make openssl-dev libuv-dev zlib-dev"
subpackages="$pkgname-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/datastax/cpp-driver/archive/$pkgver.tar.gz
"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
mkdir -p "$builddir"/build
cd "$builddir"/build
export CXXFLAGS="$CXXFLAGS -Wno-error=deprecated-copy -Wno-error=type-limits"
cmake \
-DCMAKE_BUILD_TYPE=None \
-DCASS_BUILD_STATIC=ON \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_LIBDIR=lib ..
make
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
}
sha512sums="f35fb7369cfd39fa0c7aed8b4fc6b926d769ef8a5f63af99fd1c8b782efb57e3a6d44378363393f45676a767066b9b967e4fbbc55df16fa5790e56fa6749ba4d cpp-driver-2.15.2.tar.gz"