diff options
author | Remi Collet <remi@remirepo.net> | 2023-09-25 14:08:14 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-09-25 14:08:14 +0200 |
commit | 87ac355e90bd3c6fb29454846276e1b8d496a902 (patch) | |
tree | 312f9d9e72df3660db4c16b3f6129a8fa702db66 | |
parent | ec094ef0bf79bb6ccd5f53b2805f184b79707a70 (diff) |
set jemalloc page size #2240293
-rw-r--r-- | redis.spec | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -40,7 +40,7 @@ Name: redis Version: %{upstream_ver}%{?upstream_pre:~%{upstream_pre}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: A persistent key-value database # redis, hiredis: BSD-3-Clause # hdrhistogram, jemalloc, lzf, linenoise: BSD-2-Clause @@ -193,6 +193,15 @@ sed -i -e 's|^logfile .*$|logfile /var/log/redis/redis.log|g' redis.conf sed -i -e 's|^logfile .*$|logfile /var/log/redis/sentinel.log|g' sentinel.conf sed -i -e 's|^dir .*$|dir /var/lib/redis|g' redis.conf +# See https://bugzilla.redhat.com/2240293 +# See https://src.fedoraproject.org/rpms/jemalloc/blob/rawhide/f/jemalloc.spec#_34 +%ifarch %ix86 %arm x86_64 s390x x86_64 +sed -e 's/--with-lg-quantum/--with-lg-page=12 --with-lg-quantum/' -i deps/Makefile +%endif +%ifarch ppc64 ppc64le aarch64 +sed -e 's/--with-lg-quantum/--with-lg-page=16 --with-lg-quantum/' -i deps/Makefile +%endif + # Module API version safety check api=`sed -n -e 's/#define REDISMODULE_APIVER_[0-9][0-9]* //p' src/redismodule.h` if test "$api" != "%{redis_modules_abi}"; then @@ -400,6 +409,9 @@ fi %changelog +* Mon Sep 25 2023 Remi Collet <remi@remirepo.net> - 7.2.1-2 +- set jemalloc page size #2240293 + * Thu Sep 7 2023 Remi Collet <remi@remirepo.net> - 7.2.1-1 - Redis 7.2.1 Released Wed 06 Sep 2023 15:00:00 IDT - Upgrade urgency SECURITY: CVE-2023-41053 |