From 4619bce33e7b492128ae986149bd49fe624c523296574005521dedf7ed4c274a Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Sat, 25 Mar 2023 08:21:13 +0000 Subject: [PATCH] Accepting request 1074303 from home:AndreasStieger:branches:server:database - Disable usage of jemalloc for gh#jemalloc/jemalloc#1237 to avoid "TLS error: cannot allocate memory in static TLS block" OBS-URL: https://build.opensuse.org/request/show/1074303 OBS-URL: https://build.opensuse.org/package/show/server:database/rocksdb?expand=0&rev=10 --- rocksdb.changes | 6 ++++++ rocksdb.spec | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/rocksdb.changes b/rocksdb.changes index ec2dc59..3879fa0 100644 --- a/rocksdb.changes +++ b/rocksdb.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Mar 25 07:37:14 UTC 2023 - Andreas Stieger + +- Disable usage of jemalloc for gh#jemalloc/jemalloc#1237 to avoid + "TLS error: cannot allocate memory in static TLS block" + ------------------------------------------------------------------- Wed Mar 22 21:56:01 UTC 2023 - Andreas Stieger diff --git a/rocksdb.spec b/rocksdb.spec index 458685f..c1835a3 100644 --- a/rocksdb.spec +++ b/rocksdb.spec @@ -18,6 +18,7 @@ %define lib_name librocksdb8 +%bcond_with jemalloc Name: rocksdb Version: 8.0.0 Release: 0 @@ -35,11 +36,13 @@ BuildRequires: pkgconfig BuildRequires: cmake(Snappy) BuildRequires: cmake(gflags) BuildRequires: pkgconfig(bzip2) -BuildRequires: pkgconfig(jemalloc) BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(liburing) BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(zlib) +%if %{with jemalloc} +BuildRequires: pkgconfig(jemalloc) +%endif %description RocksDB is a high performance embedded database for key-value data. @@ -96,7 +99,9 @@ the RocksDB library. %cmake \ -DPORTABLE=ON \ -DFAIL_ON_WARNINGS=OFF \ - -DWITH_JEMALLOC=ON \ +%if !%{with jemalloc} + -DWITH_JEMALLOC=0 \ +%endif -DWITH_SNAPPY=ON \ -DWITH_LZ4=ON \ -DWITH_ZLIB=ON \