1 |
commit: bb357ae44b7e9fbff0d9d9df54370c6796d706cb |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 02:17:47 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 02:17:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb357ae4 |
7 |
|
8 |
dev-db/redis: drop 5.0.14, 6.0.16 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/841404 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-db/redis/Manifest | 2 - |
14 |
dev-db/redis/files/redis-3.2.3-config.patch | 40 ----- |
15 |
dev-db/redis/files/redis-5.0-sharedlua.patch | 60 -------- |
16 |
dev-db/redis/files/redis-5.0.8-ppc-atomic.patch | 19 --- |
17 |
dev-db/redis/files/redis-6.0.12-sharedlua.patch | 60 -------- |
18 |
dev-db/redis/redis-5.0.14.ebuild | 164 -------------------- |
19 |
dev-db/redis/redis-6.0.16.ebuild | 189 ------------------------ |
20 |
7 files changed, 534 deletions(-) |
21 |
|
22 |
diff --git a/dev-db/redis/Manifest b/dev-db/redis/Manifest |
23 |
index 4462f4e2632a..546bd8aa538f 100644 |
24 |
--- a/dev-db/redis/Manifest |
25 |
+++ b/dev-db/redis/Manifest |
26 |
@@ -1,4 +1,2 @@ |
27 |
-DIST redis-5.0.14.tar.gz 2000179 BLAKE2B 77d3ed09a81450dbf806edd017785b82c50bb059aab44c82bc4ab784b7f03d5c58f9372b96c857831f84d278771dcf223f42ca05af790f0dc10ecdde211fd149 SHA512 513299ae8b967a659d54812fab4dfdfaf0081b20136a3d89b6a761e93548583c96436fedb84baa4d23385b42110ef615527efc3690b873f5bec7793403fe7eaf |
28 |
-DIST redis-6.0.16.tar.gz 2288647 BLAKE2B f3552cc0d27cbc5cf6556792da9a75d01ff70d372484c95d2af8b24ec902a8086b9c3f4e53513df982fe135963432bfb527334926dd494e50d2cc618ab813f39 SHA512 83bb72448f9943e3d015cb4d961eb2eae21602ef1f90ca52ca8ab7c6918b0ab979db9f61f3981df27b2286894f4864f4588c3a52fa988e30e9419b0967998845 |
29 |
DIST redis-6.2.6.tar.gz 2476542 BLAKE2B d139479432171294911d99e7e8c2327dbbc6682ea49de761c4bb4089a2efd814926f2f8823dca1826b4a61dd9ccf79abb22878c9463ac92870481b43d8a7fff7 SHA512 9b947d26fd9e208627ed22d318ab3d0775ab0be46d98db1c1d158feac671b984e75ce33e647d196face9643f80768af47e678be1b4e1ddd3eb56dff467c46022 |
30 |
DIST redis-6.2.7.tar.gz 2487287 BLAKE2B 06f1b1e16cdf06c38b67c1f1dcccc025da50cc3719688b8c2bf23077d77dd97ea546909043fb65e60478ac3661cc033fa6e8d7a38e361e69eb93ba3db07b7c66 SHA512 d113094b8e31754915db7f0317d9b7969e034af3a7bac2ae0cbfad6cc61ba3aae35e9709c435abc1024a96f914df7a760b3cd18d06c375b541cfa837d1c5b953 |
31 |
|
32 |
diff --git a/dev-db/redis/files/redis-3.2.3-config.patch b/dev-db/redis/files/redis-3.2.3-config.patch |
33 |
deleted file mode 100644 |
34 |
index bde0ef7cbaf1..000000000000 |
35 |
--- a/dev-db/redis/files/redis-3.2.3-config.patch |
36 |
+++ /dev/null |
37 |
@@ -1,40 +0,0 @@ |
38 |
-diff --git a/redis.conf b/redis.conf |
39 |
-index 22e00bc..b09de57 100644 |
40 |
---- a/redis.conf |
41 |
-+++ b/redis.conf |
42 |
-@@ -147,7 +147,7 @@ supervised no |
43 |
- # |
44 |
- # Creating a pid file is best effort: if Redis is not able to create it |
45 |
- # nothing bad happens, the server will start and run normally. |
46 |
--pidfile /var/run/redis_6379.pid |
47 |
-+pidfile /run/redis/redis.pid |
48 |
- |
49 |
- # Specify the server verbosity level. |
50 |
- # This can be one of: |
51 |
-@@ -160,7 +160,7 @@ loglevel notice |
52 |
- # Specify the log file name. Also the empty string can be used to force |
53 |
- # Redis to log on the standard output. Note that if you use standard |
54 |
- # output for logging but daemonize, logs will be sent to /dev/null |
55 |
--logfile "" |
56 |
-+logfile /var/log/redis/redis.log |
57 |
- |
58 |
- # To enable logging to the system logger, just set 'syslog-enabled' to yes, |
59 |
- # and optionally update the other syslog parameters to suit your needs. |
60 |
-@@ -244,7 +244,7 @@ dbfilename dump.rdb |
61 |
- # The Append Only File will also be created inside this directory. |
62 |
- # |
63 |
- # Note that you must specify a directory here, not a file name. |
64 |
--dir ./ |
65 |
-+dir /var/lib/redis/ |
66 |
- |
67 |
- ################################# REPLICATION ################################# |
68 |
- |
69 |
-@@ -534,7 +534,7 @@ slave-priority 100 |
70 |
- # limit for maxmemory so that there is some free RAM on the system for slave |
71 |
- # output buffers (but this is not needed if the policy is 'noeviction'). |
72 |
- # |
73 |
--# maxmemory <bytes> |
74 |
-+maxmemory 64MB |
75 |
- |
76 |
- # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory |
77 |
- # is reached. You can select among five behaviors: |
78 |
|
79 |
diff --git a/dev-db/redis/files/redis-5.0-sharedlua.patch b/dev-db/redis/files/redis-5.0-sharedlua.patch |
80 |
deleted file mode 100644 |
81 |
index 3e14f41733b0..000000000000 |
82 |
--- a/dev-db/redis/files/redis-5.0-sharedlua.patch |
83 |
+++ /dev/null |
84 |
@@ -1,60 +0,0 @@ |
85 |
-diff --git a/deps/lua/src/lua_cjson.c b/deps/lua/src/lua_cjson.c |
86 |
-index c26c0d7..fa50c41 100644 |
87 |
---- a/deps/lua/src/lua_cjson.c |
88 |
-+++ b/deps/lua/src/lua_cjson.c |
89 |
-@@ -46,7 +46,7 @@ |
90 |
- #include "strbuf.h" |
91 |
- #include "fpconv.h" |
92 |
- |
93 |
--#include "../../../src/solarisfixes.h" |
94 |
-+#include "solarisfixes.h" |
95 |
- |
96 |
- #ifndef CJSON_MODNAME |
97 |
- #define CJSON_MODNAME "cjson" |
98 |
-diff --git a/src/Makefile b/src/Makefile |
99 |
-index 773d3b2..2d120d4 100644 |
100 |
---- a/src/Makefile |
101 |
-+++ b/src/Makefile |
102 |
-@@ -16,7 +16,7 @@ release_hdr := $(shell sh -c './mkreleasehdr.sh') |
103 |
- uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
104 |
- uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') |
105 |
- OPTIMIZATION?=-O2 |
106 |
--DEPENDENCY_TARGETS=hiredis linenoise lua |
107 |
-+DEPENDENCY_TARGETS=hiredis linenoise |
108 |
- NODEPS:=clean distclean |
109 |
- |
110 |
- # Default settings |
111 |
-@@ -66,6 +66,7 @@ endif |
112 |
- FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) |
113 |
- FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) |
114 |
- FINAL_LIBS=-lm |
115 |
-+FINAL_LIBS+=@LUA_LIBS@ |
116 |
- DEBUG=-g -ggdb |
117 |
- |
118 |
- ifeq ($(uname_S),SunOS) |
119 |
-@@ -107,7 +108,7 @@ endif |
120 |
- endif |
121 |
- endif |
122 |
- # Include paths to dependencies |
123 |
--FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src |
124 |
-+FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise @LUA_CFLAGS@ |
125 |
- |
126 |
- ifeq ($(MALLOC),tcmalloc) |
127 |
- FINAL_CFLAGS+= -DUSE_TCMALLOC |
128 |
-@@ -145,6 +146,7 @@ endif |
129 |
- REDIS_SERVER_NAME=redis-server |
130 |
- REDIS_SENTINEL_NAME=redis-sentinel |
131 |
- 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 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 |
132 |
-+REDIS_SERVER_OBJ+=fpconv.o strbuf.o lua_bit.o lua_cjson.o lua_cmsgpack.o lua_struct.o |
133 |
- REDIS_CLI_NAME=redis-cli |
134 |
- REDIS_CLI_OBJ=anet.o adlist.o dict.o redis-cli.o zmalloc.o release.o anet.o ae.o crc64.o siphash.o crc16.o |
135 |
- REDIS_BENCHMARK_NAME=redis-benchmark |
136 |
-@@ -196,7 +198,7 @@ endif |
137 |
- |
138 |
- # redis-server |
139 |
- $(REDIS_SERVER_NAME): $(REDIS_SERVER_OBJ) |
140 |
-- $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a $(FINAL_LIBS) |
141 |
-+ $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a $(FINAL_LIBS) |
142 |
- |
143 |
- # redis-sentinel |
144 |
- $(REDIS_SENTINEL_NAME): $(REDIS_SERVER_NAME) |
145 |
|
146 |
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 |
147 |
deleted file mode 100644 |
148 |
index 61a4cc721eb1..000000000000 |
149 |
--- a/dev-db/redis/files/redis-5.0.8-ppc-atomic.patch |
150 |
+++ /dev/null |
151 |
@@ -1,19 +0,0 @@ |
152 |
-diff --git a/src/Makefile b/src/Makefile |
153 |
-index 4b2a31c..4ef853b 100644 |
154 |
---- a/src/Makefile |
155 |
-+++ b/src/Makefile |
156 |
-@@ -77,6 +77,14 @@ FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) |
157 |
- FINAL_LIBS=-lm |
158 |
- DEBUG=-g -ggdb |
159 |
- |
160 |
-+ifneq (,$(filter powerpc ppc,$(uname_M))) |
161 |
-+ FINAL_LIBS+=-latomic |
162 |
-+else |
163 |
-+ifneq (,$(findstring ppc,$(uname_M))) |
164 |
-+ FINAL_LIBS+=-latomic |
165 |
-+endif |
166 |
-+endif |
167 |
-+ |
168 |
- # Linux ARM needs -latomic at linking time |
169 |
- ifneq (,$(filter aarch64 armv,$(uname_M))) |
170 |
- FINAL_LIBS+=-latomic |
171 |
|
172 |
diff --git a/dev-db/redis/files/redis-6.0.12-sharedlua.patch b/dev-db/redis/files/redis-6.0.12-sharedlua.patch |
173 |
deleted file mode 100644 |
174 |
index 3707bcf30788..000000000000 |
175 |
--- a/dev-db/redis/files/redis-6.0.12-sharedlua.patch |
176 |
+++ /dev/null |
177 |
@@ -1,60 +0,0 @@ |
178 |
-diff --git a/deps/lua/src/lua_cjson.c b/deps/lua/src/lua_cjson.c |
179 |
-index c26c0d7..fa50c41 100644 |
180 |
---- a/deps/lua/src/lua_cjson.c |
181 |
-+++ b/deps/lua/src/lua_cjson.c |
182 |
-@@ -46,7 +46,7 @@ |
183 |
- #include "strbuf.h" |
184 |
- #include "fpconv.h" |
185 |
- |
186 |
--#include "../../../src/solarisfixes.h" |
187 |
-+#include "solarisfixes.h" |
188 |
- |
189 |
- #ifndef CJSON_MODNAME |
190 |
- #define CJSON_MODNAME "cjson" |
191 |
-diff --git a/src/Makefile b/src/Makefile |
192 |
-index cfecbb2..86c3127 100644 |
193 |
---- a/src/Makefile |
194 |
-+++ b/src/Makefile |
195 |
-@@ -16,7 +16,7 @@ release_hdr := $(shell sh -c './mkreleasehdr.sh') |
196 |
- uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
197 |
- uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') |
198 |
- OPTIMIZATION?=-O2 |
199 |
--DEPENDENCY_TARGETS=hiredis linenoise lua |
200 |
-+DEPENDENCY_TARGETS=hiredis linenoise |
201 |
- NODEPS:=clean distclean |
202 |
- |
203 |
- # Default settings |
204 |
-@@ -69,6 +69,7 @@ endif |
205 |
- FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) |
206 |
- FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) |
207 |
- FINAL_LIBS=-lm |
208 |
-+FINAL_LIBS+=@LUA_LIBS@ |
209 |
- DEBUG=-g -ggdb |
210 |
- |
211 |
- # Linux ARM needs -latomic at linking time |
212 |
-@@ -159,7 +160,7 @@ endif |
213 |
- endif |
214 |
- endif |
215 |
- # Include paths to dependencies |
216 |
--FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src |
217 |
-+FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise @LUA_CFLAGS@ |
218 |
- |
219 |
- # Determine systemd support and/or build preference (defaulting to auto-detection) |
220 |
- BUILD_WITH_SYSTEMD=no |
221 |
-@@ -238,6 +239,7 @@ endif |
222 |
- REDIS_SERVER_NAME=redis-server$(PROG_SUFFIX) |
223 |
- REDIS_SENTINEL_NAME=redis-sentinel$(PROG_SUFFIX) |
224 |
- 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 |
225 |
-+REDIS_SERVER_OBJ+=fpconv.o strbuf.o lua_bit.o lua_cjson.o lua_cmsgpack.o lua_struct.o |
226 |
- REDIS_CLI_NAME=redis-cli$(PROG_SUFFIX) |
227 |
- 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 |
228 |
- REDIS_BENCHMARK_NAME=redis-benchmark$(PROG_SUFFIX) |
229 |
-@@ -291,7 +293,7 @@ endif |
230 |
- |
231 |
- # redis-server |
232 |
- $(REDIS_SERVER_NAME): $(REDIS_SERVER_OBJ) |
233 |
-- $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a $(FINAL_LIBS) |
234 |
-+ $(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a $(FINAL_LIBS) |
235 |
- |
236 |
- # redis-sentinel |
237 |
- $(REDIS_SENTINEL_NAME): $(REDIS_SERVER_NAME) |
238 |
|
239 |
diff --git a/dev-db/redis/redis-5.0.14.ebuild b/dev-db/redis/redis-5.0.14.ebuild |
240 |
deleted file mode 100644 |
241 |
index a8ec106eeb4d..000000000000 |
242 |
--- a/dev-db/redis/redis-5.0.14.ebuild |
243 |
+++ /dev/null |
244 |
@@ -1,164 +0,0 @@ |
245 |
-# Copyright 1999-2021 Gentoo Authors |
246 |
-# Distributed under the terms of the GNU General Public License v2 |
247 |
- |
248 |
-EAPI=7 |
249 |
- |
250 |
-inherit autotools flag-o-matic systemd toolchain-funcs tmpfiles |
251 |
- |
252 |
-DESCRIPTION="A persistent caching system, key-value and data structures database" |
253 |
-HOMEPAGE="https://redis.io" |
254 |
-SRC_URI="http://download.redis.io/releases/${P}.tar.gz" |
255 |
- |
256 |
-LICENSE="BSD" |
257 |
-SLOT="0" |
258 |
-KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris" |
259 |
-IUSE="+jemalloc tcmalloc luajit test" |
260 |
-RESTRICT="!test? ( test )" |
261 |
- |
262 |
-# Redis does NOT build with Lua 5.2 or newer at this time. |
263 |
-COMMON_DEPEND=" |
264 |
- luajit? ( dev-lang/luajit:2 ) |
265 |
- !luajit? ( dev-lang/lua:5.1 ) |
266 |
- tcmalloc? ( dev-util/google-perftools ) |
267 |
- jemalloc? ( >=dev-libs/jemalloc-5.1:= )" |
268 |
- |
269 |
-RDEPEND=" |
270 |
- ${COMMON_DEPEND} |
271 |
- acct-group/redis |
272 |
- acct-user/redis" |
273 |
- |
274 |
-BDEPEND=" |
275 |
- ${COMMON_DEPEND} |
276 |
- virtual/pkgconfig" |
277 |
- |
278 |
-# Tcl is only needed in the CHOST test env |
279 |
-DEPEND=" |
280 |
- ${COMMON_DEPEND} |
281 |
- test? ( dev-lang/tcl:0= )" |
282 |
- |
283 |
-REQUIRED_USE="?? ( tcmalloc jemalloc )" |
284 |
- |
285 |
-PATCHES=( |
286 |
- "${FILESDIR}"/${PN}-3.2.3-config.patch |
287 |
- "${FILESDIR}"/${PN}-5.0-shared.patch |
288 |
- "${FILESDIR}"/${PN}-5.0-sharedlua.patch |
289 |
- "${FILESDIR}"/${PN}-5.0.8-ppc-atomic.patch |
290 |
- "${FILESDIR}"/${PN}-sentinel-5.0-config.patch |
291 |
-) |
292 |
- |
293 |
-src_prepare() { |
294 |
- default |
295 |
- |
296 |
- # don't call ar directly |
297 |
- sed -e '/^STLIB_MAKE_CMD/s/ar/$(AR)/g' \ |
298 |
- -i deps/hiredis/Makefile || die |
299 |
- |
300 |
- # Copy lua modules into build dir |
301 |
- cp deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c src/ || die |
302 |
- cp deps/lua/src/{fpconv,strbuf}.h src/ || die |
303 |
- # Append cflag for lua_cjson |
304 |
- # https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61 |
305 |
- append-cflags "-DENABLE_CJSON_GLOBAL" |
306 |
- |
307 |
- # now we will rewrite present Makefiles |
308 |
- local makefiles="" MKF |
309 |
- for MKF in $(find -name 'Makefile' | cut -b 3-); do |
310 |
- mv "${MKF}" "${MKF}.in" |
311 |
- sed -i -e 's:$(CC):@CC@:g' \ |
312 |
- -e 's:$(CFLAGS):@AM_CFLAGS@:g' \ |
313 |
- -e 's: $(DEBUG)::g' \ |
314 |
- -e 's:$(OBJARCH)::g' \ |
315 |
- -e 's:ARCH:TARCH:g' \ |
316 |
- -e '/^CCOPT=/s:$: $(LDFLAGS):g' \ |
317 |
- "${MKF}.in" \ |
318 |
- || die "Sed failed for ${MKF}" |
319 |
- makefiles+=" ${MKF}" |
320 |
- done |
321 |
- # autodetection of compiler and settings; generates the modified Makefiles |
322 |
- cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die |
323 |
- |
324 |
- # Use the correct pkgconfig name for Lua |
325 |
- if false && has_version 'dev-lang/lua:5.3'; then |
326 |
- # Lua5.3 gives: |
327 |
- #lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h" |
328 |
- LUAPKGCONFIG=lua5.3 |
329 |
- elif false && has_version 'dev-lang/lua:5.2'; then |
330 |
- # Lua5.2 fails with: |
331 |
- # scripting.c:(.text+0x1f9b): undefined reference to `lua_open' |
332 |
- # Because lua_open because lua_newstate in 5.2 |
333 |
- LUAPKGCONFIG=lua5.2 |
334 |
- elif has_version 'dev-lang/lua:5.1'; then |
335 |
- LUAPKGCONFIG=lua5.1 |
336 |
- else |
337 |
- LUAPKGCONFIG=lua |
338 |
- fi |
339 |
- # The upstream configure script handles luajit specially, and is not |
340 |
- # effected by these changes. |
341 |
- einfo "Selected LUAPKGCONFIG=${LUAPKGCONFIG}" |
342 |
- sed -i \ |
343 |
- -e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \ |
344 |
- -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \ |
345 |
- -e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${LUAPKGCONFIG},g" \ |
346 |
- configure.ac || die "Sed failed for configure.ac" |
347 |
- eautoreconf |
348 |
-} |
349 |
- |
350 |
-src_configure() { |
351 |
- econf $(use_with luajit) |
352 |
- |
353 |
- # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164 |
354 |
- # also, don't define ANSI/c99 for lua twice |
355 |
- sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die |
356 |
-} |
357 |
- |
358 |
-src_compile() { |
359 |
- local myconf="" |
360 |
- |
361 |
- if use tcmalloc; then |
362 |
- myconf="${myconf} USE_TCMALLOC=yes" |
363 |
- elif use jemalloc; then |
364 |
- myconf="${myconf} JEMALLOC_SHARED=yes" |
365 |
- else |
366 |
- myconf="${myconf} MALLOC=yes" |
367 |
- fi |
368 |
- |
369 |
- tc-export AR CC RANLIB |
370 |
- emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}" |
371 |
-} |
372 |
- |
373 |
-src_install() { |
374 |
- insinto /etc/ |
375 |
- doins redis.conf sentinel.conf |
376 |
- use prefix || fowners redis:redis /etc/{redis,sentinel}.conf |
377 |
- fperms 0644 /etc/{redis,sentinel}.conf |
378 |
- |
379 |
- newconfd "${FILESDIR}/redis.confd-r1" redis |
380 |
- newinitd "${FILESDIR}/redis.initd-5" redis |
381 |
- |
382 |
- systemd_newunit "${FILESDIR}/redis.service-3" redis.service |
383 |
- newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf |
384 |
- |
385 |
- newconfd "${FILESDIR}/redis-sentinel.confd" redis-sentinel |
386 |
- newinitd "${FILESDIR}/redis-sentinel.initd" redis-sentinel |
387 |
- |
388 |
- insinto /etc/logrotate.d/ |
389 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
390 |
- |
391 |
- dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md |
392 |
- |
393 |
- dobin src/redis-cli |
394 |
- dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb |
395 |
- fperms 0750 /usr/sbin/redis-benchmark |
396 |
- dosym redis-server /usr/sbin/redis-sentinel |
397 |
- |
398 |
- if use prefix; then |
399 |
- diropts -m0750 |
400 |
- else |
401 |
- diropts -m0750 -o redis -g redis |
402 |
- fi |
403 |
- keepdir /var/{log,lib}/redis |
404 |
-} |
405 |
- |
406 |
-pkg_postinst() { |
407 |
- tmpfiles_process redis.conf |
408 |
-} |
409 |
|
410 |
diff --git a/dev-db/redis/redis-6.0.16.ebuild b/dev-db/redis/redis-6.0.16.ebuild |
411 |
deleted file mode 100644 |
412 |
index 347c229d7386..000000000000 |
413 |
--- a/dev-db/redis/redis-6.0.16.ebuild |
414 |
+++ /dev/null |
415 |
@@ -1,189 +0,0 @@ |
416 |
-# Copyright 1999-2021 Gentoo Authors |
417 |
-# Distributed under the terms of the GNU General Public License v2 |
418 |
- |
419 |
-EAPI=7 |
420 |
- |
421 |
-# Redis does NOT build with Lua 5.2 or newer at this time: |
422 |
-# - 5.3 and 5.4 give: |
423 |
-# lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h" |
424 |
-# - 5.2 fails with: |
425 |
-# scripting.c:(.text+0x1f9b): undefined reference to `lua_open' |
426 |
-# because lua_open became lua_newstate in 5.2 |
427 |
-LUA_COMPAT=( lua5-1 luajit ) |
428 |
- |
429 |
-inherit autotools flag-o-matic lua-single systemd toolchain-funcs tmpfiles |
430 |
- |
431 |
-DESCRIPTION="A persistent caching system, key-value and data structures database" |
432 |
-HOMEPAGE="https://redis.io" |
433 |
-SRC_URI="https://download.redis.io/releases/${P}.tar.gz" |
434 |
- |
435 |
-LICENSE="BSD" |
436 |
-SLOT="0" |
437 |
-KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" |
438 |
-IUSE="+jemalloc ssl systemd tcmalloc test" |
439 |
-RESTRICT="!test? ( test )" |
440 |
- |
441 |
-COMMON_DEPEND=" |
442 |
- ${LUA_DEPS} |
443 |
- jemalloc? ( >=dev-libs/jemalloc-5.1:= ) |
444 |
- ssl? ( dev-libs/openssl:0= ) |
445 |
- systemd? ( sys-apps/systemd:= ) |
446 |
- tcmalloc? ( dev-util/google-perftools ) |
447 |
-" |
448 |
- |
449 |
-RDEPEND=" |
450 |
- ${COMMON_DEPEND} |
451 |
- acct-group/redis |
452 |
- acct-user/redis |
453 |
-" |
454 |
- |
455 |
-BDEPEND=" |
456 |
- ${COMMON_DEPEND} |
457 |
- virtual/pkgconfig |
458 |
-" |
459 |
- |
460 |
-# Tcl is only needed in the CHOST test env |
461 |
-DEPEND=" |
462 |
- ${COMMON_DEPEND} |
463 |
- test? ( |
464 |
- dev-lang/tcl:0= |
465 |
- ssl? ( dev-tcltk/tls ) |
466 |
- )" |
467 |
- |
468 |
-REQUIRED_USE="?? ( jemalloc tcmalloc ) |
469 |
- ${LUA_REQUIRED_USE}" |
470 |
- |
471 |
-PATCHES=( |
472 |
- "${FILESDIR}"/${PN}-3.2.3-config.patch |
473 |
- "${FILESDIR}"/${PN}-5.0-shared.patch |
474 |
- "${FILESDIR}"/${PN}-6.0.12-sharedlua.patch |
475 |
- "${FILESDIR}"/${PN}-5.0.8-ppc-atomic.patch |
476 |
- "${FILESDIR}"/${PN}-sentinel-5.0-config.patch |
477 |
-) |
478 |
- |
479 |
-src_prepare() { |
480 |
- default |
481 |
- |
482 |
- # unstable on jemalloc |
483 |
- > tests/unit/memefficiency.tcl || die |
484 |
- |
485 |
- # Copy lua modules into build dir |
486 |
- cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die |
487 |
- cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die |
488 |
- # Append cflag for lua_cjson |
489 |
- # https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61 |
490 |
- append-cflags "-DENABLE_CJSON_GLOBAL" |
491 |
- |
492 |
- # now we will rewrite present Makefiles |
493 |
- local makefiles="" MKF |
494 |
- for MKF in $(find -name 'Makefile' | cut -b 3-); do |
495 |
- mv "${MKF}" "${MKF}.in" |
496 |
- sed -i -e 's:$(CC):@CC@:g' \ |
497 |
- -e 's:$(CFLAGS):@AM_CFLAGS@:g' \ |
498 |
- -e 's: $(DEBUG)::g' \ |
499 |
- -e 's:$(OBJARCH)::g' \ |
500 |
- -e 's:ARCH:TARCH:g' \ |
501 |
- -e '/^CCOPT=/s:$: $(LDFLAGS):g' \ |
502 |
- "${MKF}.in" \ |
503 |
- || die "Sed failed for ${MKF}" |
504 |
- makefiles+=" ${MKF}" |
505 |
- done |
506 |
- # autodetection of compiler and settings; generates the modified Makefiles |
507 |
- cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die |
508 |
- |
509 |
- # Use the correct pkgconfig name for Lua. |
510 |
- # The upstream configure script handles luajit specially, and is not |
511 |
- # effected by these changes. |
512 |
- sed -i \ |
513 |
- -e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \ |
514 |
- -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \ |
515 |
- -e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${ELUA},g" \ |
516 |
- configure.ac || die "Sed failed for configure.ac" |
517 |
- eautoreconf |
518 |
-} |
519 |
- |
520 |
-src_configure() { |
521 |
- econf $(use_with lua_single_target_luajit luajit) |
522 |
- |
523 |
- # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164 |
524 |
- # also, don't define ANSI/c99 for lua twice |
525 |
- sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die |
526 |
-} |
527 |
- |
528 |
-src_compile() { |
529 |
- local myconf="" |
530 |
- |
531 |
- if use jemalloc; then |
532 |
- myconf+="MALLOC=jemalloc" |
533 |
- elif use tcmalloc; then |
534 |
- myconf+="MALLOC=tcmalloc" |
535 |
- else |
536 |
- myconf+="MALLOC=libc" |
537 |
- fi |
538 |
- |
539 |
- if use ssl; then |
540 |
- myconf+=" BUILD_TLS=yes" |
541 |
- fi |
542 |
- |
543 |
- export USE_SYSTEMD=$(usex systemd) |
544 |
- |
545 |
- tc-export AR CC RANLIB |
546 |
- emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}" |
547 |
-} |
548 |
- |
549 |
-src_test() { |
550 |
- # Known to fail with FEATURES=usersandbox |
551 |
- if has usersandbox ${FEATURES}; then |
552 |
- ewarn "You are emerging ${P} with 'usersandbox' enabled." \ |
553 |
- "Expect some test failures or emerge with 'FEATURES=-usersandbox'!" |
554 |
- fi |
555 |
- |
556 |
- if use ssl; then |
557 |
- ./utils/gen-test-certs.sh |
558 |
- ./runtest --tls |
559 |
- else |
560 |
- ./runtest |
561 |
- fi |
562 |
-} |
563 |
- |
564 |
-src_install() { |
565 |
- insinto /etc/redis |
566 |
- doins redis.conf sentinel.conf |
567 |
- use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf |
568 |
- fperms 0750 /etc/redis |
569 |
- fperms 0644 /etc/redis/{redis,sentinel}.conf |
570 |
- |
571 |
- newconfd "${FILESDIR}/redis.confd-r2" redis |
572 |
- newinitd "${FILESDIR}/redis.initd-6" redis |
573 |
- |
574 |
- systemd_newunit "${FILESDIR}/redis.service-4" redis.service |
575 |
- newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf |
576 |
- |
577 |
- newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel |
578 |
- newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel |
579 |
- |
580 |
- insinto /etc/logrotate.d/ |
581 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
582 |
- |
583 |
- dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md |
584 |
- |
585 |
- dobin src/redis-cli |
586 |
- dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb |
587 |
- fperms 0750 /usr/sbin/redis-benchmark |
588 |
- dosym redis-server /usr/sbin/redis-sentinel |
589 |
- |
590 |
- if use prefix; then |
591 |
- diropts -m0750 |
592 |
- else |
593 |
- diropts -m0750 -o redis -g redis |
594 |
- fi |
595 |
- keepdir /var/{log,lib}/redis |
596 |
-} |
597 |
- |
598 |
-pkg_postinst() { |
599 |
- tmpfiles_process redis.conf |
600 |
- |
601 |
- ewarn "The default redis configuration file location changed to:" |
602 |
- ewarn " /etc/redis/{redis,sentinel}.conf" |
603 |
- ewarn "Please apply your changes to the new configuration files." |
604 |
-} |