Warning, /packaging/yocto-meta-kf5/recipes-kf5/tier3/baloo/0001-we-cant-mmap-such-a-large-memory-on-riscv64.patch is written in an unsupported language. File is not indexed.

0001 From 2ee73f50ed04515adc0be525bd17061dcd37c9fc Mon Sep 17 00:00:00 2001
0002 From: Justin Hammond <justin@dynam.ac>
0003 Date: Wed, 7 Jun 2023 04:42:04 +0000
0004 Subject: [PATCH] we cant mmap such a large memory on riscv64
0005 
0006 ---
0007  src/engine/database.cpp | 6 +++---
0008  1 file changed, 3 insertions(+), 3 deletions(-)
0009 
0010 diff --git a/src/engine/database.cpp b/src/engine/database.cpp
0011 index f0e0af1..3db2e6c 100644
0012 --- a/src/engine/database.cpp
0013 +++ b/src/engine/database.cpp
0014 @@ -108,16 +108,16 @@ bool Database::open(OpenMode mode)
0015       * Valgrind by default (without recompiling) limits the mmap size:
0016       * <= 3.9: 32 GByte, 3.9 to 3.12: 64 GByte, 3.13: 128 GByte
0017       */
0018 -    size_t sizeInGByte = 256;
0019 +    size_t sizeInGByte = 16;
0020      if (sizeof(void*) == 4) {
0021          sizeInGByte = 1;
0022          qCWarning(ENGINE) << "Running on 32 bit arch, limiting DB mmap to" << sizeInGByte << "GByte";
0023      } else if (RUNNING_ON_VALGRIND) {
0024          // valgrind lacks a runtime version check, assume valgrind >= 3.9, and allow for some other mmaps
0025 -        sizeInGByte = 40;
0026 +        sizeInGByte = 8;
0027          qCWarning(ENGINE) << "Valgrind detected, limiting DB mmap to" << sizeInGByte << "GByte";
0028      }
0029 -    const size_t maximalSizeInBytes = sizeInGByte * size_t(1024) * size_t(1024) * size_t(1024);
0030 +    const size_t maximalSizeInBytes = sizeInGByte << 30;
0031      mdb_env_set_mapsize(m_env, maximalSizeInBytes);
0032  
0033      // Set MDB environment flags