From dc361d6b754f80872b38fc70caa13683ab465675 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 28 Aug 2017 16:06:15 +1000 Subject: [PATCH 1/4] Switch to systemd service Type=notify for Redis Enable the systemd supervision support in redis configuration files and update the service type in the systemd service file to enable its use. This resolves RHBZ #1172841. --- redis-sentinel.service | 1 + redis.service | 1 + redis.spec | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/redis-sentinel.service b/redis-sentinel.service index 0c87ff7..850cd81 100644 --- a/redis-sentinel.service +++ b/redis-sentinel.service @@ -5,6 +5,7 @@ After=network.target [Service] ExecStart=/usr/bin/redis-sentinel /etc/redis-sentinel.conf --daemonize no ExecStop=/usr/libexec/redis-shutdown redis-sentinel +Type=notify User=redis Group=redis RuntimeDirectory=redis diff --git a/redis.service b/redis.service index 6c19f81..dffde40 100644 --- a/redis.service +++ b/redis.service @@ -5,6 +5,7 @@ After=network.target [Service] ExecStart=/usr/bin/redis-server /etc/redis.conf --daemonize no ExecStop=/usr/libexec/redis-shutdown +Type=notify User=redis Group=redis RuntimeDirectory=redis diff --git a/redis.spec b/redis.spec index ad6d620..a18a635 100644 --- a/redis.spec +++ b/redis.spec @@ -136,6 +136,11 @@ sed -i -e 's|OPTIMIZATION?=-O3|OPTIMIZATION=%{optflags}|g' deps/hiredis/Makefile sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/hiredis/Makefile sed -i -e 's|$(CFLAGS)|%{optflags}|g' deps/linenoise/Makefile sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/linenoise/Makefile +# Configuration file changes and additions +%if 0%{?with_systemd} +sed -i -e 's|^supervised .*$|supervised systemd|g' redis.conf +sed -i -e '$ asupervised systemd|g' sentinel.conf +%endif %build make %{?_smp_mflags} \ From 9f0877ed49baa61e2e336e9930adf3702c4cb66b Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 28 Aug 2017 20:07:21 +1000 Subject: [PATCH 2/4] Refactor some patches out of redis.spec For cases where we have two ways of doing one thing (using a patch or sed-based modification of files), rework these such that we're only using one method. Allows several of the patches to be dropped. Described in https://github.com/antirez/redis/issues/1417 is a method for allowing integration/replication-psync to be reliably run - start using it, and drop the patch that was disabling that test. Other small side-effects of this commit: - the build warning about "jemalloc not found" is fixed; - CFLAGS additions are now consistently handled (for deps as well) - using the upstream-provided mechanism for compiler flag propogation. --- ...or-redis-cli-redis-benchmark-redis-c.patch | 0 0001-redis-3.2.3-redis-conf.patch | 34 ------------ ...eck-rdb-as-a-symlink-instead-of-dupl.patch | 0 ...deps-library-fPIC-performance-tuning.patch | 53 ------------------- 0003-redis-2.8.18-use-system-jemalloc.patch | 27 ---------- ...-disable-test-failed-on-slow-machine.patch | 24 --------- ...8.18-sentinel-configuration-file-fix.patch | 29 ---------- redis.spec | 37 +++++++------ 8 files changed, 18 insertions(+), 186 deletions(-) rename 0006-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch => 0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch (100%) delete mode 100644 0001-redis-3.2.3-redis-conf.patch rename 0007-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch => 0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch (100%) delete mode 100644 0002-redis-3.2.3-deps-library-fPIC-performance-tuning.patch delete mode 100644 0003-redis-2.8.18-use-system-jemalloc.patch delete mode 100644 0004-redis-2.8.18-disable-test-failed-on-slow-machine.patch delete mode 100644 0005-redis-2.8.18-sentinel-configuration-file-fix.patch diff --git a/0006-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch b/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch similarity index 100% rename from 0006-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch rename to 0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch diff --git a/0001-redis-3.2.3-redis-conf.patch b/0001-redis-3.2.3-redis-conf.patch deleted file mode 100644 index 267f813..0000000 --- a/0001-redis-3.2.3-redis-conf.patch +++ /dev/null @@ -1,34 +0,0 @@ -From cbd4460b0c1a8614644171904e3522ffbe001b48 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ha=C3=AFkel=20Gu=C3=A9mar?= -Date: Fri, 5 Dec 2014 14:11:15 +0100 -Subject: [PATCH 1/7] redis 3.2.3: redis conf - ---- - redis.conf | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/redis.conf b/redis.conf -index 22e00bc..2bcddb8 100644 ---- a/redis.conf -+++ b/redis.conf -@@ -160,7 +160,7 @@ loglevel notice - # Specify the log file name. Also the empty string can be used to force - # Redis to log on the standard output. Note that if you use standard - # output for logging but daemonize, logs will be sent to /dev/null --logfile "" -+logfile /var/log/redis/redis.log - - # To enable logging to the system logger, just set 'syslog-enabled' to yes, - # and optionally update the other syslog parameters to suit your needs. -@@ -244,7 +244,7 @@ dbfilename dump.rdb - # The Append Only File will also be created inside this directory. - # - # Note that you must specify a directory here, not a file name. --dir ./ -+dir /var/lib/redis - - ################################# REPLICATION ################################# - --- -2.9.3 - diff --git a/0007-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch b/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch similarity index 100% rename from 0007-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch rename to 0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch diff --git a/0002-redis-3.2.3-deps-library-fPIC-performance-tuning.patch b/0002-redis-3.2.3-deps-library-fPIC-performance-tuning.patch deleted file mode 100644 index b774f0a..0000000 --- a/0002-redis-3.2.3-deps-library-fPIC-performance-tuning.patch +++ /dev/null @@ -1,53 +0,0 @@ -From efdb3b41171d335511af511b0a0cdf43cde2144a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ha=C3=AFkel=20Gu=C3=A9mar?= -Date: Mon, 8 Dec 2014 10:02:54 +0100 -Subject: [PATCH 2/7] redis 3.2.3: deps library fPIC performance tuning - ---- - deps/Makefile | 2 +- - deps/geohash-int/Makefile | 2 +- - deps/linenoise/Makefile | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/deps/Makefile b/deps/Makefile -index 1c10bce..14839de 100644 ---- a/deps/Makefile -+++ b/deps/Makefile -@@ -59,7 +59,7 @@ ifeq ($(uname_S),SunOS) - LUA_CFLAGS= -D__C99FEATURES__=1 - endif - --LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' $(CFLAGS) -+LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' $(CFLAGS) -fPIC - LUA_LDFLAGS+= $(LDFLAGS) - # lua's Makefile defines AR="ar rcu", which is unusual, and makes it more - # challenging to cross-compile lua (and redis). These defines make it easier -diff --git a/deps/geohash-int/Makefile b/deps/geohash-int/Makefile -index b7c2595..d8b5b40 100644 ---- a/deps/geohash-int/Makefile -+++ b/deps/geohash-int/Makefile -@@ -2,7 +2,7 @@ STD= - WARN= -Wall - OPT= -O2 - --R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) -+R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) -fPIC - R_LDFLAGS= $(LDFLAGS) - DEBUG= -g - -diff --git a/deps/linenoise/Makefile b/deps/linenoise/Makefile -index 1dd894b..712f2a6 100644 ---- a/deps/linenoise/Makefile -+++ b/deps/linenoise/Makefile -@@ -2,7 +2,7 @@ STD= - WARN= -Wall - OPT= -Os - --R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) -+R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) -fPIC - R_LDFLAGS= $(LDFLAGS) - DEBUG= -g - --- -2.9.3 - diff --git a/0003-redis-2.8.18-use-system-jemalloc.patch b/0003-redis-2.8.18-use-system-jemalloc.patch deleted file mode 100644 index b67c88b..0000000 --- a/0003-redis-2.8.18-use-system-jemalloc.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 028b374759921656cb8a1e46198c8abbb62a4f0d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ha=C3=AFkel=20Gu=C3=A9mar?= -Date: Mon, 8 Dec 2014 10:03:40 +0100 -Subject: [PATCH 3/7] redis 2.8.18: use system jemalloc - ---- - src/Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/Makefile b/src/Makefile -index fdbe36a..6c27dd9 100644 ---- a/src/Makefile -+++ b/src/Makefile -@@ -104,8 +104,8 @@ endif - - ifeq ($(MALLOC),jemalloc) - DEPENDENCY_TARGETS+= jemalloc -- FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include -- FINAL_LIBS+= ../deps/jemalloc/lib/libjemalloc.a -+ FINAL_CFLAGS+= -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE -I/usr/include/jemalloc -+ FINAL_LIBS+= -ljemalloc -ldl - endif - - REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS) --- -2.9.3 - diff --git a/0004-redis-2.8.18-disable-test-failed-on-slow-machine.patch b/0004-redis-2.8.18-disable-test-failed-on-slow-machine.patch deleted file mode 100644 index 888d293..0000000 --- a/0004-redis-2.8.18-disable-test-failed-on-slow-machine.patch +++ /dev/null @@ -1,24 +0,0 @@ -From a39e81c428eac6745a1aa7d87ca64d78e335b2c3 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ha=C3=AFkel=20Gu=C3=A9mar?= -Date: Mon, 8 Dec 2014 10:04:18 +0100 -Subject: [PATCH 4/7] redis 2.8.18: disable test failed on slow machine - ---- - tests/test_helper.tcl | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl -index 9a6e673..0891619 100644 ---- a/tests/test_helper.tcl -+++ b/tests/test_helper.tcl -@@ -36,7 +36,6 @@ set ::all_tests { - integration/replication-2 - integration/replication-3 - integration/replication-4 -- integration/replication-psync - integration/aof - integration/rdb - integration/convert-zipmap-hash-on-load --- -2.9.3 - diff --git a/0005-redis-2.8.18-sentinel-configuration-file-fix.patch b/0005-redis-2.8.18-sentinel-configuration-file-fix.patch deleted file mode 100644 index 0a098e1..0000000 --- a/0005-redis-2.8.18-sentinel-configuration-file-fix.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 8aa7a039b6b23f7e9fdb9a459e975f216dd8fdba Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ha=C3=AFkel=20Gu=C3=A9mar?= -Date: Sat, 13 Sep 2014 14:03:04 +0200 -Subject: [PATCH 5/7] redis 2.8.18: sentinel configuration file fix - ---- - sentinel.conf | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/sentinel.conf b/sentinel.conf -index 0e1b266..428e7b6 100644 ---- a/sentinel.conf -+++ b/sentinel.conf -@@ -130,6 +130,12 @@ sentinel parallel-syncs mymaster 1 - # Default is 3 minutes. - sentinel failover-timeout mymaster 180000 - -+# -+# Specify the log file name. Also the empty string can be used to force -+# Redis to log on the standard output. Note that if you use standard -+# output for logging but daemonize, logs will be sent to /dev/null -+logfile /var/log/redis/sentinel.log -+ - # SCRIPTS EXECUTION - # - # sentinel notification-script and sentinel reconfig-script are used in order --- -2.9.3 - diff --git a/redis.spec b/redis.spec index a18a635..cb0728d 100644 --- a/redis.spec +++ b/redis.spec @@ -18,7 +18,7 @@ Name: redis Version: 3.2.10 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A persistent key-value database License: BSD URL: http://redis.io @@ -37,17 +37,10 @@ Source8: %{name}-limit-init # Then refresh your patches # git format-patch HEAD~ # Update configuration for Fedora -Patch0001: 0001-redis-3.2.3-redis-conf.patch -Patch0002: 0002-redis-3.2.3-deps-library-fPIC-performance-tuning.patch -Patch0003: 0003-redis-2.8.18-use-system-jemalloc.patch -# tests/integration/replication-psync.tcl failed on slow machines(GITHUB #1417) -Patch0004: 0004-redis-2.8.18-disable-test-failed-on-slow-machine.patch -# Fix sentinel configuration to use a different log file than redis -Patch0005: 0005-redis-2.8.18-sentinel-configuration-file-fix.patch # https://github.com/antirez/redis/pull/3491 - man pages -Patch0006: 0006-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch +Patch0001: 0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch # https://github.com/antirez/redis/pull/3494 - symlink -Patch0007: 0007-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch +Patch0002: 0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch %if 0%{?with_perftools} BuildRequires: gperftools-devel %else @@ -119,24 +112,26 @@ and removal, status checks, resharding, rebalancing, and other operations. rm -frv deps/jemalloc %patch0001 -p1 %patch0002 -p1 -%patch0003 -p1 -%patch0004 -p1 -%patch0005 -p1 -%patch0006 -p1 -%patch0007 -p1 # No hidden build. sed -i -e 's|\t@|\t|g' deps/lua/src/Makefile sed -i -e 's|$(QUIET_CC)||g' src/Makefile sed -i -e 's|$(QUIET_LINK)||g' src/Makefile sed -i -e 's|$(QUIET_INSTALL)||g' src/Makefile +# Use system jemalloc library +sed -i -e '/cd jemalloc && /d' deps/Makefile +sed -i -e 's|../deps/jemalloc/lib/libjemalloc.a|-ljemalloc -ldl|g' src/Makefile +sed -i -e 's|-I../deps/jemalloc.*|-DJEMALLOC_NO_DEMANGLE -I/usr/include/jemalloc|g' src/Makefile # Ensure deps are built with proper flags -sed -i -e 's|$(CFLAGS)|%{optflags}|g' deps/Makefile +sed -i -e 's|$(CFLAGS)|%{optflags} -fPIC|g' deps/Makefile sed -i -e 's|OPTIMIZATION?=-O3|OPTIMIZATION=%{optflags}|g' deps/hiredis/Makefile sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/hiredis/Makefile -sed -i -e 's|$(CFLAGS)|%{optflags}|g' deps/linenoise/Makefile +sed -i -e 's|$(CFLAGS)|%{optflags} -fPIC|g' deps/linenoise/Makefile sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/linenoise/Makefile # Configuration file changes and additions +sed -i -e 's|^logfile .*$|logfile /var/log/redis/redis.log|g' redis.conf +sed -i -e '$ alogfile /var/log/redis/sentinel.log' sentinel.conf +sed -i -e 's|^dir .*$|dir /var/lib/redis|g' redis.conf %if 0%{?with_systemd} sed -i -e 's|^supervised .*$|supervised systemd|g' redis.conf sed -i -e '$ asupervised systemd|g' sentinel.conf @@ -146,7 +141,7 @@ sed -i -e '$ asupervised systemd|g' sentinel.conf make %{?_smp_mflags} \ DEBUG="" \ LDFLAGS="%{?__global_ldflags}" \ - CFLAGS+="%{optflags}" \ + CFLAGS+="%{optflags} -fPIC" \ LUA_LDFLAGS+="%{?__global_ldflags}" \ %if 0%{?with_perftools} MALLOC=tcmalloc \ @@ -206,7 +201,8 @@ ln -s redis.conf.5 %{buildroot}%{_mandir}/man5/redis-sentinel.conf.5 %check %if 0%{?with_tests} -make test ||: +# https://github.com/antirez/redis/issues/1417 (for "taskset -c 1") +taskset -c 1 make test ||: make test-sentinel ||: %endif @@ -289,6 +285,9 @@ fi %changelog +* Mon Aug 28 2017 Nathan Scott - 3.2.10-3 +- Switch to using Type=notify for Redis systemd services (RHBZ #1172841) + * Mon Aug 14 2017 Nathan Scott - 3.2.10-2 - Add redis-trib based on patch from Sebastian Saletnik. (RHBZ #1215654) From c374de363715f4a10e09ba157065385a1030652a Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Thu, 7 Sep 2017 16:09:03 +1000 Subject: [PATCH 3/4] Incorporate recent feedback from Haikel and Remi Add "--supervised systemd" to the command line, and drop the "--daemonize" option as Redis already does this internally in supervised mode. Add Provides:bundled spec file lines for linenoise, lua-libs and hiredis. --- ...man-pageis-for-redis-cli-redis-benchmark-redis-c.patch | 2 +- ...all-redis-check-rdb-as-a-symlink-instead-of-dupl.patch | 2 +- redis-sentinel.service | 2 +- redis.service | 2 +- redis.spec | 8 ++++++-- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch b/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch index 7eaab5e..843dfb4 100644 --- a/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch +++ b/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch @@ -1,7 +1,7 @@ From e1ded77b1f80a5241f2f9b5088b9063ecbeb72c9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 8 Sep 2016 14:51:15 +0200 -Subject: [PATCH 6/7] 1st man pageis for - redis-cli - redis-benchmark - +Subject: [PATCH 1/2] 1st man pageis for - redis-cli - redis-benchmark - redis-check-aof - redis-check-rdb - redis-server - redis.conf as redis-sentinel is a symlink to redis-server, same page can be used (also symlinked) diff --git a/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch b/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch index 2675435..4c4181a 100644 --- a/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch +++ b/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch @@ -1,7 +1,7 @@ From bcd509def0d4a75f56d9d6a53eea280127803eb4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 9 Sep 2016 17:23:27 +0200 -Subject: [PATCH 7/7] install redis-check-rdb as a symlink instead of +Subject: [PATCH 2/2] install redis-check-rdb as a symlink instead of duplicating the binary --- diff --git a/redis-sentinel.service b/redis-sentinel.service index 850cd81..15463cf 100644 --- a/redis-sentinel.service +++ b/redis-sentinel.service @@ -3,7 +3,7 @@ Description=Redis Sentinel After=network.target [Service] -ExecStart=/usr/bin/redis-sentinel /etc/redis-sentinel.conf --daemonize no +ExecStart=/usr/bin/redis-sentinel /etc/redis-sentinel.conf --supervised systemd ExecStop=/usr/libexec/redis-shutdown redis-sentinel Type=notify User=redis diff --git a/redis.service b/redis.service index dffde40..88e9edc 100644 --- a/redis.service +++ b/redis.service @@ -3,7 +3,7 @@ Description=Redis persistent key-value database After=network.target [Service] -ExecStart=/usr/bin/redis-server /etc/redis.conf --daemonize no +ExecStart=/usr/bin/redis-server /etc/redis.conf --supervised systemd ExecStop=/usr/libexec/redis-shutdown Type=notify User=redis diff --git a/redis.spec b/redis.spec index cb0728d..3687968 100644 --- a/redis.spec +++ b/redis.spec @@ -69,6 +69,9 @@ Requires(preun): chkconfig Requires(preun): initscripts Requires(postun): initscripts %endif +Provides: bundled(hiredis) +Provides: bundled(lua-libs) +Provides: bundled(linenoise) %description Redis is an advanced key-value store. It is often referred to as a data @@ -165,7 +168,7 @@ install -pDm644 %{S:1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install -pDm640 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf install -pDm640 sentinel.conf %{buildroot}%{_sysconfdir}/%{name}-sentinel.conf -# Install Systemd unit files. +# Install systemd unit files. %if 0%{?with_systemd} mkdir -p %{buildroot}%{_unitdir} install -pm644 %{S:3} %{buildroot}%{_unitdir} @@ -285,8 +288,9 @@ fi %changelog -* Mon Aug 28 2017 Nathan Scott - 3.2.10-3 +* Wed Sep 06 2017 Nathan Scott - 3.2.10-3 - Switch to using Type=notify for Redis systemd services (RHBZ #1172841) +- Add Provides:bundled hiredis, linenoise, lua-libs clauses (RHBZ #788500) * Mon Aug 14 2017 Nathan Scott - 3.2.10-2 - Add redis-trib based on patch from Sebastian Saletnik. (RHBZ #1215654) From df786883ffe7639c721f15af92a83439bc34ac3f Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 26 Sep 2017 14:58:36 +1000 Subject: [PATCH 4/4] Latest upstream bugfix release and some packaging BZ fixes --- .gitignore | 1 + ...-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch | 4 ++-- ...tall-redis-check-rdb-as-a-symlink-instead-of-dupl.patch | 6 +++--- redis.spec | 7 ++++--- sources | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index f2122e6..2a09209 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ clog /redis-3.2.8.tar.gz /redis-3.2.9.tar.gz /redis-3.2.10.tar.gz +/redis-3.2.11.tar.gz diff --git a/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch b/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch index 843dfb4..ab62c0c 100644 --- a/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch +++ b/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch @@ -1,4 +1,4 @@ -From e1ded77b1f80a5241f2f9b5088b9063ecbeb72c9 Mon Sep 17 00:00:00 2001 +From c7958ad1c0d615b81276ec2d4dbc1bf6a67dcc4d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 8 Sep 2016 14:51:15 +0200 Subject: [PATCH 1/2] 1st man pageis for - redis-cli - redis-benchmark - @@ -648,5 +648,5 @@ index 0000000..1e0c9c9 +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -2.9.3 +2.13.5 diff --git a/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch b/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch index 4c4181a..75448ba 100644 --- a/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch +++ b/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch @@ -1,4 +1,4 @@ -From bcd509def0d4a75f56d9d6a53eea280127803eb4 Mon Sep 17 00:00:00 2001 +From 992c773e70462a6fbe1536e18e673c9ab55d5901 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 9 Sep 2016 17:23:27 +0200 Subject: [PATCH 2/2] install redis-check-rdb as a symlink instead of @@ -9,7 +9,7 @@ Subject: [PATCH 2/2] install redis-check-rdb as a symlink instead of 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile -index 6c27dd9..2de5e3f 100644 +index fdbe36a..c3083f8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -267,6 +267,6 @@ install: all @@ -21,5 +21,5 @@ index 6c27dd9..2de5e3f 100644 @ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_SENTINEL_NAME) + @ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_CHECK_RDB_NAME) -- -2.9.3 +2.13.5 diff --git a/redis.spec b/redis.spec index 3687968..f223225 100644 --- a/redis.spec +++ b/redis.spec @@ -17,8 +17,8 @@ %global with_tests %{?_with_tests:1}%{!?_with_tests:0} Name: redis -Version: 3.2.10 -Release: 3%{?dist} +Version: 3.2.11 +Release: 1%{?dist} Summary: A persistent key-value database License: BSD URL: http://redis.io @@ -288,7 +288,8 @@ fi %changelog -* Wed Sep 06 2017 Nathan Scott - 3.2.10-3 +* Tue Sep 26 2017 Nathan Scott - 3.2.11-1 +- Upstream 3.2.11 bug-fix-only release - Switch to using Type=notify for Redis systemd services (RHBZ #1172841) - Add Provides:bundled hiredis, linenoise, lua-libs clauses (RHBZ #788500) diff --git a/sources b/sources index 40c7ebf..9d2d41c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (redis-3.2.10.tar.gz) = 32fd27fac8ba559ea38e3a1006b90c4117c74a8ca15399ade19834c4221521e7e3669e4e1f24d214a53bb7cde896839438dd4a273d6be6def587841dd9954aa1 +SHA512 (redis-3.2.11.tar.gz) = 3eab216350828ef78e7e9e28ac2fff3ea89d9eb7f86a66c4788667cde7c966bce7dda03470c2baacf2dce63496685e11ca2ef0a82b5fbbd20fb8e449146a20ee