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