diff options
author | Remi Collet <remi@remirepo.net> | 2023-09-25 14:05:27 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-09-25 14:05:27 +0200 |
commit | 0853b20b27590f40d6abdf616b0fb4f9bc49634d (patch) | |
tree | e27ac39f3be45fdb49318b5a5e3cca39706027eb | |
parent | 07e7d7804fd3f0426e982bffc41bcabccb26e813 (diff) |
set jemalloc page size #2240293
-rw-r--r-- | redis.spec | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -43,7 +43,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 @@ -200,6 +200,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 @@ -406,6 +415,9 @@ fi %changelog +* Mon Sep 25 2023 Remi Collet <remi@remirepo.net> - 7.0.13-2 +- set jemalloc page size #2240293 + * Thu Sep 7 2023 Remi Collet <remi@remirepo.net> - 7.0.13-1 - Redis 7.0.13 Released Wed 06 Sep 2023 15:00:00 IDT - Upgrade urgency SECURITY: CVE-2023-41053 |