diff options
| author | Petr Vaněk <arkamar@atlas.cz> | 2022-09-25 08:06:46 +0200 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2022-09-26 15:58:16 +0100 |
| commit | 8f1f88154c6ed0311dacb5433296d5b424e8af78 (patch) | |
| tree | efd7806dfff3333625bc65ede01099777d093044 /dev-db/redis/files | |
| parent | 1c1901952345dee2e6c02399139a867e688b8db9 (diff) | |
| download | gentoo-8f1f88154c6ed0311dacb5433296d5b424e8af78.tar.gz gentoo-8f1f88154c6ed0311dacb5433296d5b424e8af78.tar.bz2 gentoo-8f1f88154c6ed0311dacb5433296d5b424e8af78.zip | |
dev-db/redis: drop 6.0.16
The 6.0 line did not receive any fix in last 12 months, 6.0.16
potentially suffers with security issues and 6.2.7 should be
sufficient replacement for those needing <dev-db/redis-7.
Bug: https://bugs.gentoo.org/841404
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/27470
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/redis/files')
| -rw-r--r-- | dev-db/redis/files/redis-3.2.3-config.patch | 40 | ||||
| -rw-r--r-- | dev-db/redis/files/redis-5.0-luajit-2.1-fix.patch | 47 | ||||
| -rw-r--r-- | dev-db/redis/files/redis-5.0.8-ppc-atomic.patch | 19 | ||||
| -rw-r--r-- | dev-db/redis/files/redis-6.0.12-sharedlua.patch | 60 |
4 files changed, 0 insertions, 166 deletions
diff --git a/dev-db/redis/files/redis-3.2.3-config.patch b/dev-db/redis/files/redis-3.2.3-config.patch deleted file mode 100644 index bde0ef7cbaf1..000000000000 --- a/dev-db/redis/files/redis-3.2.3-config.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff --git a/redis.conf b/redis.conf -index 22e00bc..b09de57 100644 ---- a/redis.conf -+++ b/redis.conf -@@ -147,7 +147,7 @@ supervised no - # - # Creating a pid file is best effort: if Redis is not able to create it - # nothing bad happens, the server will start and run normally. --pidfile /var/run/redis_6379.pid -+pidfile /run/redis/redis.pid - - # Specify the server verbosity level. - # This can be one of: -@@ -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 ################################# - -@@ -534,7 +534,7 @@ slave-priority 100 - # limit for maxmemory so that there is some free RAM on the system for slave - # output buffers (but this is not needed if the policy is 'noeviction'). - # --# maxmemory <bytes> -+maxmemory 64MB - - # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory - # is reached. You can select among five behaviors: diff --git a/dev-db/redis/files/redis-5.0-luajit-2.1-fix.patch b/dev-db/redis/files/redis-5.0-luajit-2.1-fix.patch deleted file mode 100644 index 968fc865da86..000000000000 --- a/dev-db/redis/files/redis-5.0-luajit-2.1-fix.patch +++ /dev/null @@ -1,47 +0,0 @@ -Backported from https://github.com/openresty/lua-cjson - -Upstream-commit: 638ac2741a7f ("optimize: improved forward-compatibility with older versions of Lua/LuaJIT.") -Link: https://github.com/openresty/lua-cjson/commit/638ac2741a7f274979ac3fe2e1ea5fd6487702fe -Upstream-PR: https://github.com/openresty/lua-cjson/pull/32 -See-also: https://www.freelists.org/post/luajit/ANN-LuaJIT210beta3,3 - -diff --git a/deps/lua/src/lua_cjson.c b/deps/lua/src/lua_cjson.c -index c26c0d7b8..af9e4ca54 100644 ---- a/deps/lua/src/lua_cjson.c -+++ b/deps/lua/src/lua_cjson.c -@@ -1293,11 +1293,13 @@ static int json_decode(lua_State *l) - /* ===== INITIALISATION ===== */ - - #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 --/* Compatibility for Lua 5.1. -+/* Compatibility for Lua 5.1 and older LuaJIT. - * -- * luaL_setfuncs() is used to create a module table where the functions have -- * json_config_t as their first upvalue. Code borrowed from Lua 5.2 source. */ --static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup) -+ * compat_luaL_setfuncs() is used to create a module table where the functions -+ * have json_config_t as their first upvalue. Code borrowed from Lua 5.2 -+ * source's luaL_setfuncs(). -+ */ -+static void compat_luaL_setfuncs(lua_State *l, const luaL_Reg *reg, int nup) - { - int i; - -@@ -1310,6 +1312,8 @@ static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup) - } - lua_pop(l, nup); /* remove upvalues */ - } -+#else -+#define compat_luaL_setfuncs(L, reg, nup) luaL_setfuncs(L, reg, nup) - #endif - - /* Call target function in protected mode with all supplied args. -@@ -1365,7 +1369,7 @@ static int lua_cjson_new(lua_State *l) - - /* Register functions with config data as upvalue */ - json_create_config(l); -- luaL_setfuncs(l, reg, 1); -+ compat_luaL_setfuncs(l, reg, 1); - - /* Set cjson.null */ - lua_pushlightuserdata(l, NULL); diff --git a/dev-db/redis/files/redis-5.0.8-ppc-atomic.patch b/dev-db/redis/files/redis-5.0.8-ppc-atomic.patch deleted file mode 100644 index 61a4cc721eb1..000000000000 --- a/dev-db/redis/files/redis-5.0.8-ppc-atomic.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/src/Makefile b/src/Makefile -index 4b2a31c..4ef853b 100644 ---- a/src/Makefile -+++ b/src/Makefile -@@ -77,6 +77,14 @@ FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) - FINAL_LIBS=-lm - DEBUG=-g -ggdb - -+ifneq (,$(filter powerpc ppc,$(uname_M))) -+ FINAL_LIBS+=-latomic -+else -+ifneq (,$(findstring ppc,$(uname_M))) -+ FINAL_LIBS+=-latomic -+endif -+endif -+ - # Linux ARM needs -latomic at linking time - ifneq (,$(filter aarch64 armv,$(uname_M))) - FINAL_LIBS+=-latomic diff --git a/dev-db/redis/files/redis-6.0.12-sharedlua.patch b/dev-db/redis/files/redis-6.0.12-sharedlua.patch deleted file mode 100644 index 3707bcf30788..000000000000 --- a/dev-db/redis/files/redis-6.0.12-sharedlua.patch +++ /dev/null @@ -1,60 +0,0 @@ -diff --git a/deps/lua/src/lua_cjson.c b/deps/lua/src/lua_cjson.c -index c26c0d7..fa50c41 100644 ---- a/deps/lua/src/lua_cjson.c -+++ b/deps/lua/src/lua_cjson.c -@@ -46,7 +46,7 @@ - #include "strbuf.h" - #include "fpconv.h" - --#include "../../../src/solarisfixes.h" -+#include "solarisfixes.h" - - #ifndef CJSON_MODNAME - #define CJSON_MODNAME "cjson" -diff --git a/src/Makefile b/src/Makefile -index cfecbb2..86c3127 100644 ---- a/src/Makefile -+++ b/src/Makefile -@@ -16,7 +16,7 @@ release_hdr := $(shell sh -c './mkreleasehdr.sh') - uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') - uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') - OPTIMIZATION?=-O2 --DEPENDENCY_TARGETS=hiredis linenoise lua -+DEPENDENCY_TARGETS=hiredis linenoise - NODEPS:=clean distclean - - # Default settings -@@ -69,6 +69,7 @@ endif - FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) - FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) - FINAL_LIBS=-lm -+FINAL_LIBS+=@LUA_LIBS@ - DEBUG=-g -ggdb - - # Linux ARM needs -latomic at linking time -@@ -159,7 +160,7 @@ endif - endif - endif - # Include paths to dependencies --FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -+FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise @LUA_CFLAGS@ - - # Determine systemd support and/or build preference (defaulting to auto-detection) - BUILD_WITH_SYSTEMD=no -@@ -238,6 +239,7 @@ endif - REDIS_SERVER_NAME=redis-server$(PROG_SUFFIX) - REDIS_SENTINEL_NAME=redis-sentinel$(PROG_SUFFIX) - REDIS_SERVER_OBJ=adlist.o quicklist.o ae.o anet.o dict.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o crc16.o endianconv.o slowlog.o scripting.o bio.o rio.o rand.o memtest.o crcspeed.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o redis-check-rdb.o redis-check-aof.o geo.o lazyfree.o module.o evict.o expire.o geohash.o geohash_helper.o childinfo.o defrag.o siphash.o rax.o t_stream.o listpack.o localtime.o lolwut.o lolwut5.o lolwut6.o acl.o gopher.o tracking.o connection.o tls.o sha256.o timeout.o setcpuaffinity.o mt19937-64.o -+REDIS_SERVER_OBJ+=fpconv.o strbuf.o lua_bit.o lua_cjson.o lua_cmsgpack.o lua_struct.o - REDIS_CLI_NAME=redis-cli$(PROG_SUFFIX) - REDIS_CLI_OBJ=anet.o adlist.o dict.o redis-cli.o zmalloc.o release.o ae.o crcspeed.o crc64.o siphash.o crc16.o mt19937-64.o - REDIS_BENCHMARK_NAME=redis-benchmark$(PROG_SUFFIX) -@@ -291,7 +293,7 @@ endif - - # redis-server - $(REDIS_SERVER_NAME): $(REDIS_SERVER_OBJ) -- $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a $(FINAL_LIBS) -+ $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a $(FINAL_LIBS) - - # redis-sentinel - $(REDIS_SENTINEL_NAME): $(REDIS_SERVER_NAME) |
