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