From 8350428740d94327df6b1143917e4bb9b91f2299 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 10 Jul 2025 09:48:54 +0200 Subject: fix pidfile path in /run/redis set unixsocket add missing build requirements --- redis.spec | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/redis.spec b/redis.spec index d13e3cb..423e402 100644 --- a/redis.spec +++ b/redis.spec @@ -22,7 +22,7 @@ Name: redis Version: %{upstream_ver} -Release: 1%{?dist} +Release: 2%{?dist} Summary: A persistent key-value database # redis: RSALv2 or SSPLv1 or AGPLv3 (only AGPLv3 is OSS) # hiredis: BSD-3-Clause @@ -39,6 +39,8 @@ Source3: %{name}.service Source9: macros.%{name} BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: libstdc++-devel %if %{with jemalloc} BuildRequires: jemalloc-devel %else @@ -137,9 +139,14 @@ mv deps/hdr_histogram/COPYING.txt COPYING-hdrhistogram mv deps/fpconv/LICENSE.txt LICENSE-fpconv # Configuration file changes -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 +sed -e 's|^logfile .*$|logfile /var/log/redis/redis.log|g' \ + -e 's|^dir .*$|dir /var/lib/redis|g' \ + -e 's|^pidfile .*$|pidfile /run/redis/redis.pid|g' \ + -e 's|^# unixsocket .*$|unixsocket /run/redis/redis.sock|g' \ + -i redis.conf +sed -e 's|^logfile .*$|logfile /var/log/redis/sentinel.log|g' \ + -e 's|^pidfile .*$|pidfile /run/redis/sentinel.pid|g' \ + -i sentinel.conf # See https://bugzilla.redhat.com/2240293 # See https://src.fedoraproject.org/rpms/jemalloc/blob/rawhide/f/jemalloc.spec#_34 @@ -306,6 +313,11 @@ fi %changelog +* Thu Jul 10 2025 Remi Collet - 8.0.3-2 +- fix pidfile path in /run/redis +- set unixsocket +- add missing build requirements + * Mon Jul 7 2025 Remi Collet - 8.0.3-1 - Redis 8.0.3 Released Sun 6 Jul 2025 12:00:00 IST - Update urgency: SECURITY: CVE-2025-32023 and CVE-2025-48367 -- cgit