Commit c596df7f authored by Sören Tempel's avatar Sören Tempel Committed by Sören Tempel
Browse files

testing/bear: new aport

parent d3e87eb8
Pipeline #52085 passed with stages
in 2 minutes and 54 seconds
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=bear
pkgver=3.0.0
pkgrel=0
pkgdesc="Tool which generates a compilation database for clang tooling"
url="https://github.com/rizsotto/Bear"
# ppc64le armv7 armhf: Limited by grpc
# s390x: Test failure <https://github.com/rizsotto/Bear/issues/309>
arch="all !s390x !ppc64le !armv7 !armhf"
license="GPL-3.0-or-later"
makedepends="cmake grpc grpc-dev fmt-dev spdlog-dev
nlohmann-json protobuf-dev gtest-dev c-ares-dev"
subpackages="$pkgname-doc"
source="https://github.com/rizsotto/Bear/archive/$pkgver/bear-$pkgver.tar.gz
fix-32bit-build.patch"
builddir="$srcdir/Bear-$pkgver"
build() {
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None .
make -C build
}
check() {
cd build
ctest --verbose --output-on-failure
}
package() {
make -C build DESTDIR="$pkgdir" install
}
sha512sums="e95990302dd471ef0c7380d278981656660614d9babbbf94e85b68c299df0a4183059054e69b2b41c39b02bf5c80c2050909ea909ad2c68d99be4c2f40f366d8 bear-3.0.0.tar.gz
1871fa2e95acc4ef39f4e37734baa66760411f1eba4d0248c0671b2d8a1207999428dc5ed0e03a27ec5b63d272d85ac0a43744c4d82cb873b3de4f1032e4cd68 fix-32bit-build.patch"
On 32bit arches size_t may not necessarily be defined as long unsigned int.
diff -upr Bear-3.0.0.orig/source/citnames/source/Configuration.cc Bear-3.0.0/source/citnames/source/Configuration.cc
--- Bear-3.0.0.orig/source/citnames/source/Configuration.cc 2020-10-08 14:18:32.551685952 +0200
+++ Bear-3.0.0/source/citnames/source/Configuration.cc 2020-10-08 14:18:51.952022987 +0200
@@ -207,7 +207,7 @@ namespace cs {
nlohmann::json out = rhs;
os << std::setw(4) << out << std::endl;
- return rust::Ok(1ul);
+ return rust::Ok((size_t)1ul);
} catch (const std::exception &error) {
return rust::Err(std::runtime_error(error.what()));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment