Skip to content

Commit

Permalink
addpatch: mongo-c-driver 1.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryolitia committed Nov 19, 2024
1 parent 017d9da commit a76edc9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions mongo-c-driver/riscv64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- PKGBUILD
+++ PKGBUILD
@@ -33,6 +33,11 @@ replaces=(
source=("https://github.com/mongodb/mongo-c-driver/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('507414795dfb24ddf1a418b155b57459d8cea1191c7f0fcd8b826acf5400343c')

+prepare() {
+ cd $pkgname-$pkgver
+ sed -i 's/TIMEOUT 45/TIMEOUT 3600/g' build/cmake/LoadTests.cmake
+}
+
build() {
cd $pkgname-$pkgver
# ENABLE_STATIC=ON is required to build tests.
@@ -48,6 +53,7 @@ build() {

check() {
cd $pkgname-$pkgver
+ CFLAGS+=' -mcmodel=medany'
cmake --build build --target check
export MONGOC_TEST_OFFLINE=ON
export MONGOC_TEST_SKIP_LIVE=ON

0 comments on commit a76edc9

Please sign in to comment.