1 |
commit: 8f1f88154c6ed0311dacb5433296d5b424e8af78 |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Sun Sep 25 06:06:46 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 26 14:58:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f1f8815 |
7 |
|
8 |
dev-db/redis: drop 6.0.16 |
9 |
|
10 |
The 6.0 line did not receive any fix in last 12 months, 6.0.16 |
11 |
potentially suffers with security issues and 6.2.7 should be |
12 |
sufficient replacement for those needing <dev-db/redis-7. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/841404 |
15 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/27470 |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
dev-db/redis/Manifest | 1 - |
20 |
dev-db/redis/files/redis-3.2.3-config.patch | 40 ----- |
21 |
dev-db/redis/files/redis-5.0-luajit-2.1-fix.patch | 47 ----- |
22 |
dev-db/redis/files/redis-5.0.8-ppc-atomic.patch | 19 -- |
23 |
dev-db/redis/files/redis-6.0.12-sharedlua.patch | 60 ------- |
24 |
dev-db/redis/redis-6.0.16.ebuild | 200 ---------------------- |
25 |
6 files changed, 367 deletions(-) |
26 |
|
27 |
diff --git a/dev-db/redis/Manifest b/dev-db/redis/Manifest |
28 |
index 6d0144bd033b..75331b184be9 100644 |
29 |
--- a/dev-db/redis/Manifest |
30 |
+++ b/dev-db/redis/Manifest |
31 |
@@ -1,4 +1,3 @@ |
32 |
-DIST redis-6.0.16.tar.gz 2288647 BLAKE2B f3552cc0d27cbc5cf6556792da9a75d01ff70d372484c95d2af8b24ec902a8086b9c3f4e53513df982fe135963432bfb527334926dd494e50d2cc618ab813f39 SHA512 83bb72448f9943e3d015cb4d961eb2eae21602ef1f90ca52ca8ab7c6918b0ab979db9f61f3981df27b2286894f4864f4588c3a52fa988e30e9419b0967998845 |
33 |
DIST redis-6.2.7.tar.gz 2487287 BLAKE2B 06f1b1e16cdf06c38b67c1f1dcccc025da50cc3719688b8c2bf23077d77dd97ea546909043fb65e60478ac3661cc033fa6e8d7a38e361e69eb93ba3db07b7c66 SHA512 d113094b8e31754915db7f0317d9b7969e034af3a7bac2ae0cbfad6cc61ba3aae35e9709c435abc1024a96f914df7a760b3cd18d06c375b541cfa837d1c5b953 |
34 |
DIST redis-7.0.4.tar.gz 2963216 BLAKE2B 95ad18547b4be0b199fccc4b0f534b00d2f442609b604b02ef83f44cef4283048d1f8b89e383a14208a00842eb3d6655649d32169a2a6586ed6fac1792e19d5a SHA512 7edecfa667b30584666be0a2dbcb2ac25a6764fa5b8db49ab421602ad20272eeab99ccff0b7c2f789c30a0425d80b774515b03c849e517451cbe597d37eb0247 |
35 |
DIST redis-7.0.5.tar.gz 2968205 BLAKE2B c319a2f656e4bd26637735ef73e58eecc306e202b57d6da3a38150a02d738a414c6696e261b8ab88033e117aee4f02308aab9ca4a5f382d66ec3a10f3e020580 SHA512 16ff920cb8df4d82e78ef34209285024aa98189be8acbca86b10fb3064dcc70eac60206aadece6af08406860ed01a004ce3aaa86be896ea36c7f486686646753 |
36 |
|
37 |
diff --git a/dev-db/redis/files/redis-3.2.3-config.patch b/dev-db/redis/files/redis-3.2.3-config.patch |
38 |
deleted file mode 100644 |
39 |
index bde0ef7cbaf1..000000000000 |
40 |
--- a/dev-db/redis/files/redis-3.2.3-config.patch |
41 |
+++ /dev/null |
42 |
@@ -1,40 +0,0 @@ |
43 |
-diff --git a/redis.conf b/redis.conf |
44 |
-index 22e00bc..b09de57 100644 |
45 |
---- a/redis.conf |
46 |
-+++ b/redis.conf |
47 |
-@@ -147,7 +147,7 @@ supervised no |
48 |
- # |
49 |
- # Creating a pid file is best effort: if Redis is not able to create it |
50 |
- # nothing bad happens, the server will start and run normally. |
51 |
--pidfile /var/run/redis_6379.pid |
52 |
-+pidfile /run/redis/redis.pid |
53 |
- |
54 |
- # Specify the server verbosity level. |
55 |
- # This can be one of: |
56 |
-@@ -160,7 +160,7 @@ loglevel notice |
57 |
- # Specify the log file name. Also the empty string can be used to force |
58 |
- # Redis to log on the standard output. Note that if you use standard |
59 |
- # output for logging but daemonize, logs will be sent to /dev/null |
60 |
--logfile "" |
61 |
-+logfile /var/log/redis/redis.log |
62 |
- |
63 |
- # To enable logging to the system logger, just set 'syslog-enabled' to yes, |
64 |
- # and optionally update the other syslog parameters to suit your needs. |
65 |
-@@ -244,7 +244,7 @@ dbfilename dump.rdb |
66 |
- # The Append Only File will also be created inside this directory. |
67 |
- # |
68 |
- # Note that you must specify a directory here, not a file name. |
69 |
--dir ./ |
70 |
-+dir /var/lib/redis/ |
71 |
- |
72 |
- ################################# REPLICATION ################################# |
73 |
- |
74 |
-@@ -534,7 +534,7 @@ slave-priority 100 |
75 |
- # limit for maxmemory so that there is some free RAM on the system for slave |
76 |
- # output buffers (but this is not needed if the policy is 'noeviction'). |
77 |
- # |
78 |
--# maxmemory <bytes> |
79 |
-+maxmemory 64MB |
80 |
- |
81 |
- # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory |
82 |
- # is reached. You can select among five behaviors: |
83 |
|
84 |
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 |
85 |
deleted file mode 100644 |
86 |
index 968fc865da86..000000000000 |
87 |
--- a/dev-db/redis/files/redis-5.0-luajit-2.1-fix.patch |
88 |
+++ /dev/null |
89 |
@@ -1,47 +0,0 @@ |
90 |
-Backported from https://github.com/openresty/lua-cjson |
91 |
- |
92 |
-Upstream-commit: 638ac2741a7f ("optimize: improved forward-compatibility with older versions of Lua/LuaJIT.") |
93 |
-Link: https://github.com/openresty/lua-cjson/commit/638ac2741a7f274979ac3fe2e1ea5fd6487702fe |
94 |
-Upstream-PR: https://github.com/openresty/lua-cjson/pull/32 |
95 |
-See-also: https://www.freelists.org/post/luajit/ANN-LuaJIT210beta3,3 |
96 |
- |
97 |
-diff --git a/deps/lua/src/lua_cjson.c b/deps/lua/src/lua_cjson.c |
98 |
-index c26c0d7b8..af9e4ca54 100644 |
99 |
---- a/deps/lua/src/lua_cjson.c |
100 |
-+++ b/deps/lua/src/lua_cjson.c |
101 |
-@@ -1293,11 +1293,13 @@ static int json_decode(lua_State *l) |
102 |
- /* ===== INITIALISATION ===== */ |
103 |
- |
104 |
- #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 |
105 |
--/* Compatibility for Lua 5.1. |
106 |
-+/* Compatibility for Lua 5.1 and older LuaJIT. |
107 |
- * |
108 |
-- * luaL_setfuncs() is used to create a module table where the functions have |
109 |
-- * json_config_t as their first upvalue. Code borrowed from Lua 5.2 source. */ |
110 |
--static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup) |
111 |
-+ * compat_luaL_setfuncs() is used to create a module table where the functions |
112 |
-+ * have json_config_t as their first upvalue. Code borrowed from Lua 5.2 |
113 |
-+ * source's luaL_setfuncs(). |
114 |
-+ */ |
115 |
-+static void compat_luaL_setfuncs(lua_State *l, const luaL_Reg *reg, int nup) |
116 |
- { |
117 |
- int i; |
118 |
- |
119 |
-@@ -1310,6 +1312,8 @@ static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup) |
120 |
- } |
121 |
- lua_pop(l, nup); /* remove upvalues */ |
122 |
- } |
123 |
-+#else |
124 |
-+#define compat_luaL_setfuncs(L, reg, nup) luaL_setfuncs(L, reg, nup) |
125 |
- #endif |
126 |
- |
127 |
- /* Call target function in protected mode with all supplied args. |
128 |
-@@ -1365,7 +1369,7 @@ static int lua_cjson_new(lua_State *l) |
129 |
- |
130 |
- /* Register functions with config data as upvalue */ |
131 |
- json_create_config(l); |
132 |
-- luaL_setfuncs(l, reg, 1); |
133 |
-+ compat_luaL_setfuncs(l, reg, 1); |
134 |
- |
135 |
- /* Set cjson.null */ |
136 |
- lua_pushlightuserdata(l, NULL); |
137 |
|
138 |
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 |
139 |
deleted file mode 100644 |
140 |
index 61a4cc721eb1..000000000000 |
141 |
--- a/dev-db/redis/files/redis-5.0.8-ppc-atomic.patch |
142 |
+++ /dev/null |
143 |
@@ -1,19 +0,0 @@ |
144 |
-diff --git a/src/Makefile b/src/Makefile |
145 |
-index 4b2a31c..4ef853b 100644 |
146 |
---- a/src/Makefile |
147 |
-+++ b/src/Makefile |
148 |
-@@ -77,6 +77,14 @@ FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) |
149 |
- FINAL_LIBS=-lm |
150 |
- DEBUG=-g -ggdb |
151 |
- |
152 |
-+ifneq (,$(filter powerpc ppc,$(uname_M))) |
153 |
-+ FINAL_LIBS+=-latomic |
154 |
-+else |
155 |
-+ifneq (,$(findstring ppc,$(uname_M))) |
156 |
-+ FINAL_LIBS+=-latomic |
157 |
-+endif |
158 |
-+endif |
159 |
-+ |
160 |
- # Linux ARM needs -latomic at linking time |
161 |
- ifneq (,$(filter aarch64 armv,$(uname_M))) |
162 |
- FINAL_LIBS+=-latomic |
163 |
|
164 |
diff --git a/dev-db/redis/files/redis-6.0.12-sharedlua.patch b/dev-db/redis/files/redis-6.0.12-sharedlua.patch |
165 |
deleted file mode 100644 |
166 |
index 3707bcf30788..000000000000 |
167 |
--- a/dev-db/redis/files/redis-6.0.12-sharedlua.patch |
168 |
+++ /dev/null |
169 |
@@ -1,60 +0,0 @@ |
170 |
-diff --git a/deps/lua/src/lua_cjson.c b/deps/lua/src/lua_cjson.c |
171 |
-index c26c0d7..fa50c41 100644 |
172 |
---- a/deps/lua/src/lua_cjson.c |
173 |
-+++ b/deps/lua/src/lua_cjson.c |
174 |
-@@ -46,7 +46,7 @@ |
175 |
- #include "strbuf.h" |
176 |
- #include "fpconv.h" |
177 |
- |
178 |
--#include "../../../src/solarisfixes.h" |
179 |
-+#include "solarisfixes.h" |
180 |
- |
181 |
- #ifndef CJSON_MODNAME |
182 |
- #define CJSON_MODNAME "cjson" |
183 |
-diff --git a/src/Makefile b/src/Makefile |
184 |
-index cfecbb2..86c3127 100644 |
185 |
---- a/src/Makefile |
186 |
-+++ b/src/Makefile |
187 |
-@@ -16,7 +16,7 @@ release_hdr := $(shell sh -c './mkreleasehdr.sh') |
188 |
- uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
189 |
- uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') |
190 |
- OPTIMIZATION?=-O2 |
191 |
--DEPENDENCY_TARGETS=hiredis linenoise lua |
192 |
-+DEPENDENCY_TARGETS=hiredis linenoise |
193 |
- NODEPS:=clean distclean |
194 |
- |
195 |
- # Default settings |
196 |
-@@ -69,6 +69,7 @@ endif |
197 |
- FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) |
198 |
- FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) |
199 |
- FINAL_LIBS=-lm |
200 |
-+FINAL_LIBS+=@LUA_LIBS@ |
201 |
- DEBUG=-g -ggdb |
202 |
- |
203 |
- # Linux ARM needs -latomic at linking time |
204 |
-@@ -159,7 +160,7 @@ endif |
205 |
- endif |
206 |
- endif |
207 |
- # Include paths to dependencies |
208 |
--FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src |
209 |
-+FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise @LUA_CFLAGS@ |
210 |
- |
211 |
- # Determine systemd support and/or build preference (defaulting to auto-detection) |
212 |
- BUILD_WITH_SYSTEMD=no |
213 |
-@@ -238,6 +239,7 @@ endif |
214 |
- REDIS_SERVER_NAME=redis-server$(PROG_SUFFIX) |
215 |
- REDIS_SENTINEL_NAME=redis-sentinel$(PROG_SUFFIX) |
216 |
- 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 |
217 |
-+REDIS_SERVER_OBJ+=fpconv.o strbuf.o lua_bit.o lua_cjson.o lua_cmsgpack.o lua_struct.o |
218 |
- REDIS_CLI_NAME=redis-cli$(PROG_SUFFIX) |
219 |
- 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 |
220 |
- REDIS_BENCHMARK_NAME=redis-benchmark$(PROG_SUFFIX) |
221 |
-@@ -291,7 +293,7 @@ endif |
222 |
- |
223 |
- # redis-server |
224 |
- $(REDIS_SERVER_NAME): $(REDIS_SERVER_OBJ) |
225 |
-- $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a $(FINAL_LIBS) |
226 |
-+ $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a $(FINAL_LIBS) |
227 |
- |
228 |
- # redis-sentinel |
229 |
- $(REDIS_SENTINEL_NAME): $(REDIS_SERVER_NAME) |
230 |
|
231 |
diff --git a/dev-db/redis/redis-6.0.16.ebuild b/dev-db/redis/redis-6.0.16.ebuild |
232 |
deleted file mode 100644 |
233 |
index 9c1f2e88c2da..000000000000 |
234 |
--- a/dev-db/redis/redis-6.0.16.ebuild |
235 |
+++ /dev/null |
236 |
@@ -1,200 +0,0 @@ |
237 |
-# Copyright 1999-2022 Gentoo Authors |
238 |
-# Distributed under the terms of the GNU General Public License v2 |
239 |
- |
240 |
-EAPI=7 |
241 |
- |
242 |
-# Redis does NOT build with Lua 5.2 or newer at this time: |
243 |
-# - 5.3 and 5.4 give: |
244 |
-# lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h" |
245 |
-# - 5.2 fails with: |
246 |
-# scripting.c:(.text+0x1f9b): undefined reference to `lua_open' |
247 |
-# because lua_open became lua_newstate in 5.2 |
248 |
-LUA_COMPAT=( lua5-1 luajit ) |
249 |
- |
250 |
-inherit autotools edo flag-o-matic lua-single multiprocessing systemd tmpfiles toolchain-funcs |
251 |
- |
252 |
-DESCRIPTION="A persistent caching system, key-value and data structures database" |
253 |
-HOMEPAGE="https://redis.io" |
254 |
-SRC_URI="https://download.redis.io/releases/${P}.tar.gz" |
255 |
- |
256 |
-LICENSE="BSD" |
257 |
-SLOT="0" |
258 |
-KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" |
259 |
-IUSE="+jemalloc selinux ssl systemd tcmalloc test" |
260 |
-RESTRICT="!test? ( test )" |
261 |
- |
262 |
-COMMON_DEPEND=" |
263 |
- ${LUA_DEPS} |
264 |
- jemalloc? ( >=dev-libs/jemalloc-5.1:= ) |
265 |
- ssl? ( dev-libs/openssl:0= ) |
266 |
- systemd? ( sys-apps/systemd:= ) |
267 |
- tcmalloc? ( dev-util/google-perftools ) |
268 |
-" |
269 |
- |
270 |
-RDEPEND=" |
271 |
- ${COMMON_DEPEND} |
272 |
- acct-group/redis |
273 |
- acct-user/redis |
274 |
- selinux? ( sec-policy/selinux-redis ) |
275 |
-" |
276 |
- |
277 |
-BDEPEND=" |
278 |
- ${COMMON_DEPEND} |
279 |
- virtual/pkgconfig |
280 |
-" |
281 |
- |
282 |
-# Tcl is only needed in the CHOST test env |
283 |
-DEPEND=" |
284 |
- ${COMMON_DEPEND} |
285 |
- test? ( |
286 |
- dev-lang/tcl:0= |
287 |
- ssl? ( dev-tcltk/tls ) |
288 |
- )" |
289 |
- |
290 |
-REQUIRED_USE="?? ( jemalloc tcmalloc ) |
291 |
- ${LUA_REQUIRED_USE}" |
292 |
- |
293 |
-PATCHES=( |
294 |
- "${FILESDIR}"/${PN}-3.2.3-config.patch |
295 |
- "${FILESDIR}"/${PN}-5.0-shared.patch |
296 |
- "${FILESDIR}"/${PN}-6.0.12-sharedlua.patch |
297 |
- "${FILESDIR}"/${PN}-5.0.8-ppc-atomic.patch |
298 |
- "${FILESDIR}"/${PN}-sentinel-5.0-config.patch |
299 |
- "${FILESDIR}"/${PN}-5.0-luajit-2.1-fix.patch |
300 |
-) |
301 |
- |
302 |
-src_prepare() { |
303 |
- default |
304 |
- |
305 |
- # Copy lua modules into build dir |
306 |
- cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die |
307 |
- cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die |
308 |
- # Append cflag for lua_cjson |
309 |
- # https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61 |
310 |
- append-cflags "-DENABLE_CJSON_GLOBAL" |
311 |
- |
312 |
- # now we will rewrite present Makefiles |
313 |
- local makefiles="" MKF |
314 |
- for MKF in $(find -name 'Makefile' | cut -b 3-); do |
315 |
- mv "${MKF}" "${MKF}.in" |
316 |
- sed -i -e 's:$(CC):@CC@:g' \ |
317 |
- -e 's:$(CFLAGS):@AM_CFLAGS@:g' \ |
318 |
- -e 's: $(DEBUG)::g' \ |
319 |
- -e 's:$(OBJARCH)::g' \ |
320 |
- -e 's:ARCH:TARCH:g' \ |
321 |
- -e '/^CCOPT=/s:$: $(LDFLAGS):g' \ |
322 |
- "${MKF}.in" \ |
323 |
- || die "Sed failed for ${MKF}" |
324 |
- makefiles+=" ${MKF}" |
325 |
- done |
326 |
- # autodetection of compiler and settings; generates the modified Makefiles |
327 |
- cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die |
328 |
- |
329 |
- # Use the correct pkgconfig name for Lua. |
330 |
- # The upstream configure script handles luajit specially, and is not |
331 |
- # affected by these changes. |
332 |
- sed -i \ |
333 |
- -e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \ |
334 |
- -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \ |
335 |
- -e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${ELUA},g" \ |
336 |
- configure.ac || die "Sed failed for configure.ac" |
337 |
- eautoreconf |
338 |
-} |
339 |
- |
340 |
-src_configure() { |
341 |
- econf $(use_with lua_single_target_luajit luajit) |
342 |
- |
343 |
- # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164 |
344 |
- # also, don't define ANSI/c99 for lua twice |
345 |
- sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die |
346 |
-} |
347 |
- |
348 |
-src_compile() { |
349 |
- local myconf="" |
350 |
- |
351 |
- if use jemalloc; then |
352 |
- myconf+="MALLOC=jemalloc" |
353 |
- elif use tcmalloc; then |
354 |
- myconf+="MALLOC=tcmalloc" |
355 |
- else |
356 |
- myconf+="MALLOC=libc" |
357 |
- fi |
358 |
- |
359 |
- if use ssl; then |
360 |
- myconf+=" BUILD_TLS=yes" |
361 |
- fi |
362 |
- |
363 |
- export USE_SYSTEMD=$(usex systemd) |
364 |
- |
365 |
- tc-export AR CC RANLIB |
366 |
- emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}" |
367 |
-} |
368 |
- |
369 |
-src_test() { |
370 |
- local runtestargs=( |
371 |
- --clients "$(makeopts_jobs)" # see bug #649868 |
372 |
- |
373 |
- # unstable on jemalloc, see https://github.com/gentoo/gentoo/pull/15924 |
374 |
- --skiptest "Active defrag" |
375 |
- --skiptest "Active defrag big keys" |
376 |
- --skiptest "Active defrag big list" |
377 |
- --skiptest "Active defrag edge case" |
378 |
- ) |
379 |
- |
380 |
- if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then |
381 |
- ewarn "unit/oom-score-adj test will be skipped." \ |
382 |
- "It is known to fail with FEATURES usersandbox or -userpriv. See bug #756382." |
383 |
- |
384 |
- # unit/oom-score-adj was introduced in version 6.2.0 and it was later backported to 6.0.7 |
385 |
- runtestargs+=( --skipunit unit/oom-score-adj ) # see bug #756382 |
386 |
- fi |
387 |
- |
388 |
- if use ssl; then |
389 |
- edo ./utils/gen-test-certs.sh |
390 |
- runtestargs+=( --tls ) |
391 |
- fi |
392 |
- |
393 |
- edo ./runtest "${runtestargs[@]}" |
394 |
-} |
395 |
- |
396 |
-src_install() { |
397 |
- insinto /etc/redis |
398 |
- doins redis.conf sentinel.conf |
399 |
- use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf |
400 |
- fperms 0750 /etc/redis |
401 |
- fperms 0644 /etc/redis/{redis,sentinel}.conf |
402 |
- |
403 |
- newconfd "${FILESDIR}/redis.confd-r2" redis |
404 |
- newinitd "${FILESDIR}/redis.initd-6" redis |
405 |
- |
406 |
- systemd_newunit "${FILESDIR}/redis.service-4" redis.service |
407 |
- newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf |
408 |
- |
409 |
- newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel |
410 |
- newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel |
411 |
- |
412 |
- insinto /etc/logrotate.d/ |
413 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
414 |
- |
415 |
- dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md |
416 |
- |
417 |
- dobin src/redis-cli |
418 |
- dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb |
419 |
- fperms 0750 /usr/sbin/redis-benchmark |
420 |
- dosym redis-server /usr/sbin/redis-sentinel |
421 |
- |
422 |
- if use prefix; then |
423 |
- diropts -m0750 |
424 |
- else |
425 |
- diropts -m0750 -o redis -g redis |
426 |
- fi |
427 |
- keepdir /var/{log,lib}/redis |
428 |
-} |
429 |
- |
430 |
-pkg_postinst() { |
431 |
- tmpfiles_process redis.conf |
432 |
- |
433 |
- ewarn "The default redis configuration file location changed to:" |
434 |
- ewarn " /etc/redis/{redis,sentinel}.conf" |
435 |
- ewarn "Please apply your changes to the new configuration files." |
436 |
-} |