From a76edc99390020278f841c64345ef34643f0582b Mon Sep 17 00:00:00 2001 From: Cryolitia PukNgae Date: Tue, 19 Nov 2024 13:29:31 +0800 Subject: [PATCH] addpatch: mongo-c-driver 1.29.0 --- mongo-c-driver/riscv64.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 mongo-c-driver/riscv64.patch diff --git a/mongo-c-driver/riscv64.patch b/mongo-c-driver/riscv64.patch new file mode 100644 index 000000000..6c09eb18f --- /dev/null +++ b/mongo-c-driver/riscv64.patch @@ -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