From 3b6782417aea20c95f7d30d12982305c78b5b147099fbe8569170a12d5a4ceb7 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Thu, 6 Jun 2019 20:59:06 +0000 Subject: [PATCH] - update to 5.0.5 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=125 --- redis-4.0.11.tar.gz | 3 - redis-5.0.5.tar.gz | 3 + redis-conf.patch | 5 -- ...-bactrace-on-x86-ia64-and_arm32_only.patch | 8 +-- redis.changes | 68 +++++++++++++++++++ redis.spec | 4 +- reproducible.patch | 38 ++--------- 7 files changed, 84 insertions(+), 45 deletions(-) delete mode 100644 redis-4.0.11.tar.gz create mode 100644 redis-5.0.5.tar.gz diff --git a/redis-4.0.11.tar.gz b/redis-4.0.11.tar.gz deleted file mode 100644 index f67a8b0..0000000 --- a/redis-4.0.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc53e73ae7586bcdacb4b63875d1ff04f68c5474c1ddeda78f00e5ae2eed1bbb -size 1739656 diff --git a/redis-5.0.5.tar.gz b/redis-5.0.5.tar.gz new file mode 100644 index 0000000..4d86bf9 --- /dev/null +++ b/redis-5.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2139009799d21d8ff94fc40b7f36ac46699b9e1254086299f8d3b223ca54a375 +size 1975750 diff --git a/redis-conf.patch b/redis-conf.patch index ef060ea..c74ff47 100644 --- a/redis-conf.patch +++ b/redis-conf.patch @@ -61,8 +61,3 @@ Index: sentinel.conf # *** IMPORTANT *** # -@@ -202,4 +206,3 @@ sentinel failover-timeout mymaster 18000 - # to get the program executed. - - sentinel deny-scripts-reconfig yes -- diff --git a/redis-enable-bactrace-on-x86-ia64-and_arm32_only.patch b/redis-enable-bactrace-on-x86-ia64-and_arm32_only.patch index 88ee7e1..d122b80 100644 --- a/redis-enable-bactrace-on-x86-ia64-and_arm32_only.patch +++ b/redis-enable-bactrace-on-x86-ia64-and_arm32_only.patch @@ -2,10 +2,10 @@ Index: src/config.h =================================================================== --- src/config.h.orig +++ src/config.h -@@ -63,8 +63,10 @@ - - /* Test for backtrace() */ - #if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) +@@ -65,8 +65,10 @@ + #if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || \ + defined(__FreeBSD__) || (defined(__OpenBSD__) && defined(USE_BACKTRACE))\ + || defined(__DragonFly__) +#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__) || defined (__arm__) #define HAVE_BACKTRACE 1 #endif diff --git a/redis.changes b/redis.changes index 766e5c9..04166e9 100644 --- a/redis.changes +++ b/redis.changes @@ -1,3 +1,71 @@ +------------------------------------------------------------------- +Thu Jun 6 20:43:34 UTC 2019 - Marcus Rueckert + +- update to 5.0.5 + Major changes from the Redis 5 series: + + 1. The new Stream data type. + https://redis.io/topics/streams-intro + 2. New Redis modules APIs: Timers, Cluster and Dictionary APIs. + 3. RDB now store LFU and LRU information. + 4. The cluster manager was ported from Ruby (redis-trib.rb) to C + code inside redis-cli. Check `redis-cli --cluster help` for + more info. + 5. New sorted set commands: ZPOPMIN/MAX and blocking variants. + 6. Active defragmentation version 2. + 7. Improvemenets in HyperLogLog implementations. + 8. Better memory reporting capabilities. + 9. Many commands with sub-commands now have an HELP subcommand. + 10. Better performances when clients connect and disconnect + often. + 11. Many bug fixes and other random improvements. + 12. Jemalloc was upgraded to version 5.1 + 13. CLIENT UNBLOCK and CLIENT ID. + 14. The LOLWUT command was added. http://antirez.com/news/123 + 15. We no longer use the "slave" word if not for API backward + compatibility. + 16. Differnet optimizations in the networking layer. + 17. Lua improvements: + - Better propagation of Lua scripts to replicas / AOF. + - Lua scripts can now timeout and get in -BUSY state in the + replica as well. + 18. Dynamic HZ to balance idle CPU usage with responsiveness. + 19. The Redis core was refactored and improved in many ways. + + However the list above really does not do justice to the changes + of Redis 5 since the core was improved in many ways during the + development of the new version. However certain changes were back + ported into Redis 4 once they were sensed as safe, because many + improvements were hard to distinguish from fixes. + + The most important user facing improvement is without doubts the + introduction of the new general purpose data type after years: + the streams. + + Note that we worked to improve and fix streams till a few hours + ago, so while we are not aware of critical bugs in this release, + surely there is to handle it with some care for the first weeks. + Bug reporting will be highly appreciated and we are ready to work + immediately to release 5.0.1 once there is enough important stuff + to justify a new release (probably soon). + + People not using the streams can have probably a better + production-ready experience with Redis 5, also because many + internals are shared with Redis 4 so the jump is not as big as it + was between 3.2 and 4 in terms of how things internally work. + + Well, many thanks to the Redis community and the developers that + made this release possible, contributing bug reports, patches, + new features, working on the clients, sometimes debugging + problems for days. Also thank to everybody that adopted Redis for + their use cases making things work for users worldwide. + + see installed /usr/share/doc/packages/redis/00-RELEASENOTES +- refreshed patches to apply cleanly again: + redis-conf.patch + redis-enable-bactrace-on-x86-ia64-and_arm32_only.patch + reproducible.patch + ------------------------------------------------------------------- Mon Nov 26 16:27:53 UTC 2018 - Andrey Karepin diff --git a/redis.spec b/redis.spec index 664b0bc..fe12953 100644 --- a/redis.spec +++ b/redis.spec @@ -1,7 +1,7 @@ # # spec file for package redis # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ %define _conf_dir %{_sysconfdir}/%{name} Name: redis -Version: 4.0.11 +Version: 5.0.5 Release: 0 Summary: Persistent key-value database License: BSD-3-Clause diff --git a/reproducible.patch b/reproducible.patch index 858d2a7..2c20698 100644 --- a/reproducible.patch +++ b/reproducible.patch @@ -11,40 +11,16 @@ See https://reproducible-builds.org/ for why this is good. src/mkreleasehdr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/src/mkreleasehdr.sh b/src/mkreleasehdr.sh -index 1ae95886b4a..c48156cf3dd 100755 ---- a/src/mkreleasehdr.sh -+++ b/src/mkreleasehdr.sh +Index: redis-5.0.5/src/mkreleasehdr.sh +=================================================================== +--- redis-5.0.5.orig/src/mkreleasehdr.sh ++++ redis-5.0.5/src/mkreleasehdr.sh @@ -1,7 +1,7 @@ #!/bin/sh GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1` GIT_DIRTY=`git diff --no-ext-diff 2> /dev/null | wc -l` -BUILD_ID=`uname -n`"-"`date +%s` -+BUILD_ID=`uname -n`"-"`date -r ../00-RELEASENOTES +%s` - test -f release.h || touch release.h - (cat release.h | grep SHA1 | grep $GIT_SHA1) && \ - (cat release.h | grep DIRTY | grep $GIT_DIRTY) && exit 0 # Already up-to-date - -From 96c1ddd8ad5b6f0f437011efef090e837a41f8e8 Mon Sep 17 00:00:00 2001 -From: "Bernhard M. Wiedemann" -Date: Wed, 11 Jul 2018 18:52:06 +0200 -Subject: [PATCH 2/2] Allow to override hostname - -to make builds reproducible. ---- - src/mkreleasehdr.sh | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/mkreleasehdr.sh b/src/mkreleasehdr.sh -index c48156cf3dd..39cf37d3378 100755 ---- a/src/mkreleasehdr.sh -+++ b/src/mkreleasehdr.sh -@@ -1,7 +1,7 @@ - #!/bin/sh - GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1` - GIT_DIRTY=`git diff --no-ext-diff 2> /dev/null | wc -l` --BUILD_ID=`uname -n`"-"`date -r ../00-RELEASENOTES +%s` +BUILD_ID=${HOST:-`uname -n`}"-"`date -r ../00-RELEASENOTES +%s` - test -f release.h || touch release.h - (cat release.h | grep SHA1 | grep $GIT_SHA1) && \ - (cat release.h | grep DIRTY | grep $GIT_DIRTY) && exit 0 # Already up-to-date + if [ -n "$SOURCE_DATE_EPOCH" ]; then + BUILD_ID=$(date -u -d "@$SOURCE_DATE_EPOCH" +%s 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" +%s 2>/dev/null || date -u %s) + fi