Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/redis/
Date: Mon, 04 Jul 2022 20:07:54
Message-Id: 1656965230.0a16aa4ac35c28c32e25b440d4cc94f5b38f0bd7.ajak@gentoo
1 commit: 0a16aa4ac35c28c32e25b440d4cc94f5b38f0bd7
2 Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz>
3 AuthorDate: Mon Jul 4 10:56:45 2022 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 4 20:07:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a16aa4a
7
8 dev-db/redis: drop 7.0.0, 7.0.0-r2
9
10 Removal due to a CVE-2022-33105.
11
12 Bug: https://bugs.gentoo.org/856040
13 Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
14 Closes: https://github.com/gentoo/gentoo/pull/26218
15 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
16
17 dev-db/redis/Manifest | 1 -
18 dev-db/redis/redis-7.0.0-r2.ebuild | 183 ---------------------------------
19 dev-db/redis/redis-7.0.0.ebuild | 201 -------------------------------------
20 3 files changed, 385 deletions(-)
21
22 diff --git a/dev-db/redis/Manifest b/dev-db/redis/Manifest
23 index 5a0a29325c64..2941f463918f 100644
24 --- a/dev-db/redis/Manifest
25 +++ b/dev-db/redis/Manifest
26 @@ -2,6 +2,5 @@ DIST redis-5.0.14.tar.gz 2000179 BLAKE2B 77d3ed09a81450dbf806edd017785b82c50bb05
27 DIST redis-6.0.16.tar.gz 2288647 BLAKE2B f3552cc0d27cbc5cf6556792da9a75d01ff70d372484c95d2af8b24ec902a8086b9c3f4e53513df982fe135963432bfb527334926dd494e50d2cc618ab813f39 SHA512 83bb72448f9943e3d015cb4d961eb2eae21602ef1f90ca52ca8ab7c6918b0ab979db9f61f3981df27b2286894f4864f4588c3a52fa988e30e9419b0967998845
28 DIST redis-6.2.6.tar.gz 2476542 BLAKE2B d139479432171294911d99e7e8c2327dbbc6682ea49de761c4bb4089a2efd814926f2f8823dca1826b4a61dd9ccf79abb22878c9463ac92870481b43d8a7fff7 SHA512 9b947d26fd9e208627ed22d318ab3d0775ab0be46d98db1c1d158feac671b984e75ce33e647d196face9643f80768af47e678be1b4e1ddd3eb56dff467c46022
29 DIST redis-6.2.7.tar.gz 2487287 BLAKE2B 06f1b1e16cdf06c38b67c1f1dcccc025da50cc3719688b8c2bf23077d77dd97ea546909043fb65e60478ac3661cc033fa6e8d7a38e361e69eb93ba3db07b7c66 SHA512 d113094b8e31754915db7f0317d9b7969e034af3a7bac2ae0cbfad6cc61ba3aae35e9709c435abc1024a96f914df7a760b3cd18d06c375b541cfa837d1c5b953
30 -DIST redis-7.0.0.tar.gz 2943054 BLAKE2B 561cf591bacac51fddc375a1c725c385f9b0b4b4bb7fca7d889ee1b7760cf5ea986e26613a0f69fda9b6f8a02d02e055514d374be7913e26724e3857967fea22 SHA512 12ac925708c54b00b34c365dee39cb207fbe3cb3c99e8daad965e122b6e3a6543e3ca80e23e6a56f5dff6371d4f2b9c149ee51800ed540e1f1b9154a118ea07b
31 DIST redis-7.0.1.tar.gz 2955839 BLAKE2B 67ff36e5e78ab9a90d4404d0f0bddbe9b539166c826d8a1b314bb32cdece7d40caf5eff57302cd641548ed3b1e19aff1b657ed31a20233550636708b6386c2db SHA512 e61d27695fd2d439f204612b97a3ea245ebf92d418949460f7144026191ade4fac1647717bbb48a2b3e238856f0392af08b4fdb4358d04f2ccd1088ff9d3dac4
32 DIST redis-7.0.2.tar.gz 2956784 BLAKE2B 418f6114662c9b9b67dc7f28f89f58fefee3eb5fec84a6193ca50034366c963986a56d1c96dadfdd88a88ea1ddd4542ed910b89c8a81c95b38aa4f7bdc5ae571 SHA512 bc8d679ecaad0220318b87be70476653f42b76815af61ff6f4e8885f5a5d17d41cea754fbf448f9e18e9a9f90227c5ac198fa9bc523370752f590ba01418a1b0
33
34 diff --git a/dev-db/redis/redis-7.0.0-r2.ebuild b/dev-db/redis/redis-7.0.0-r2.ebuild
35 deleted file mode 100644
36 index c8c1359e41d5..000000000000
37 --- a/dev-db/redis/redis-7.0.0-r2.ebuild
38 +++ /dev/null
39 @@ -1,183 +0,0 @@
40 -# Copyright 1999-2022 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=8
44 -
45 -# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
46 -# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
47 -
48 -inherit autotools edo flag-o-matic multiprocessing systemd tmpfiles toolchain-funcs
49 -
50 -DESCRIPTION="A persistent caching system, key-value, and data structures database"
51 -HOMEPAGE="https://redis.io"
52 -SRC_URI="https://download.redis.io/releases/${P}.tar.gz"
53 -
54 -LICENSE="BSD"
55 -SLOT="0"
56 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
57 -IUSE="+jemalloc ssl systemd tcmalloc test"
58 -RESTRICT="!test? ( test )"
59 -
60 -COMMON_DEPEND="
61 - jemalloc? ( >=dev-libs/jemalloc-5.1:= )
62 - ssl? ( dev-libs/openssl:0= )
63 - systemd? ( sys-apps/systemd:= )
64 - tcmalloc? ( dev-util/google-perftools )
65 -"
66 -
67 -RDEPEND="
68 - ${COMMON_DEPEND}
69 - acct-group/redis
70 - acct-user/redis
71 -"
72 -
73 -BDEPEND="
74 - ${COMMON_DEPEND}
75 - virtual/pkgconfig
76 -"
77 -
78 -# Tcl is only needed in the CHOST test env
79 -DEPEND="
80 - ${COMMON_DEPEND}
81 - test? (
82 - dev-lang/tcl:0=
83 - ssl? ( dev-tcltk/tls )
84 - )"
85 -
86 -REQUIRED_USE="?? ( jemalloc tcmalloc )"
87 -
88 -PATCHES=(
89 - "${FILESDIR}"/${PN}-6.2.1-config.patch
90 - "${FILESDIR}"/${PN}-5.0-shared.patch
91 - "${FILESDIR}"/${PN}-6.2.3-ppc-atomic.patch
92 - "${FILESDIR}"/${PN}-sentinel-5.0-config.patch
93 -)
94 -
95 -src_prepare() {
96 - default
97 -
98 - # Append cflag for lua_cjson
99 - # https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
100 - append-cflags "-DENABLE_CJSON_GLOBAL"
101 -
102 - # now we will rewrite present Makefiles
103 - local makefiles="" MKF
104 - for MKF in $(find -name 'Makefile' | cut -b 3-); do
105 - mv "${MKF}" "${MKF}.in"
106 - sed -i -e 's:$(CC):@CC@:g' \
107 - -e 's:$(CFLAGS):@AM_CFLAGS@:g' \
108 - -e 's: $(DEBUG)::g' \
109 - -e 's:$(OBJARCH)::g' \
110 - -e 's:ARCH:TARCH:g' \
111 - -e '/^CCOPT=/s:$: $(LDFLAGS):g' \
112 - "${MKF}.in" \
113 - || die "Sed failed for ${MKF}"
114 - makefiles+=" ${MKF}"
115 - done
116 - # autodetection of compiler and settings; generates the modified Makefiles
117 - cp "${FILESDIR}"/configure.ac-7.0 configure.ac || die
118 -
119 - sed -i \
120 - -e "/^AC_INIT/s|, __PV__, |, $PV, |" \
121 - -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
122 - configure.ac || die "Sed failed for configure.ac"
123 - eautoreconf
124 -}
125 -
126 -src_configure() {
127 - econf
128 -
129 - # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
130 - # also, don't define ANSI/c99 for lua twice
131 - sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
132 -}
133 -
134 -src_compile() {
135 - local myconf=""
136 -
137 - if use jemalloc; then
138 - myconf+="MALLOC=jemalloc"
139 - elif use tcmalloc; then
140 - myconf+="MALLOC=tcmalloc"
141 - else
142 - myconf+="MALLOC=libc"
143 - fi
144 -
145 - if use ssl; then
146 - myconf+=" BUILD_TLS=yes"
147 - fi
148 -
149 - export USE_SYSTEMD=$(usex systemd)
150 -
151 - tc-export AR CC RANLIB
152 - emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
153 -}
154 -
155 -src_test() {
156 - local runtestargs=(
157 - --clients "$(makeopts_jobs)" # see bug #649868
158 - )
159 -
160 - if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
161 - ewarn "oom-score-adj related tests will be skipped." \
162 - "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
163 -
164 - runtestargs+=(
165 - # unit/oom-score-adj was introduced in version 6.2.0
166 - --skipunit unit/oom-score-adj # see bug #756382
167 -
168 - # Following test was added in version 7.0.0 to unit/introspection.
169 - # It also tries to adjust OOM score.
170 - --skiptest "CONFIG SET rollback on apply error"
171 - )
172 - fi
173 -
174 - if use ssl; then
175 - edo ./utils/gen-test-certs.sh
176 - runtestargs+=( --tls )
177 - fi
178 -
179 - edo ./runtest "${runtestargs[@]}"
180 -}
181 -
182 -src_install() {
183 - insinto /etc/redis
184 - doins redis.conf sentinel.conf
185 - use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf
186 - fperms 0750 /etc/redis
187 - fperms 0644 /etc/redis/{redis,sentinel}.conf
188 -
189 - newconfd "${FILESDIR}/redis.confd-r2" redis
190 - newinitd "${FILESDIR}/redis.initd-6" redis
191 -
192 - systemd_newunit "${FILESDIR}/redis.service-4" redis.service
193 - newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf
194 -
195 - newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel
196 - newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel
197 -
198 - insinto /etc/logrotate.d/
199 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
200 -
201 - dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
202 -
203 - dobin src/redis-cli
204 - dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
205 - fperms 0750 /usr/sbin/redis-benchmark
206 - dosym redis-server /usr/sbin/redis-sentinel
207 -
208 - if use prefix; then
209 - diropts -m0750
210 - else
211 - diropts -m0750 -o redis -g redis
212 - fi
213 - keepdir /var/{log,lib}/redis
214 -}
215 -
216 -pkg_postinst() {
217 - tmpfiles_process redis.conf
218 -
219 - ewarn "The default redis configuration file location changed to:"
220 - ewarn " /etc/redis/{redis,sentinel}.conf"
221 - ewarn "Please apply your changes to the new configuration files."
222 -}
223
224 diff --git a/dev-db/redis/redis-7.0.0.ebuild b/dev-db/redis/redis-7.0.0.ebuild
225 deleted file mode 100644
226 index 617c6726205d..000000000000
227 --- a/dev-db/redis/redis-7.0.0.ebuild
228 +++ /dev/null
229 @@ -1,201 +0,0 @@
230 -# Copyright 1999-2022 Gentoo Authors
231 -# Distributed under the terms of the GNU General Public License v2
232 -
233 -EAPI=8
234 -
235 -# Redis does NOT build with Lua 5.2 or newer at this time:
236 -# - 5.3 and 5.4 give:
237 -# lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h"
238 -# - 5.2 fails with:
239 -# scripting.c:(.text+0x1f9b): undefined reference to `lua_open'
240 -# because lua_open became lua_newstate in 5.2
241 -LUA_COMPAT=( lua5-1 luajit )
242 -
243 -# Upstream have deviated too far from vanilla Lua, adding their own APIs
244 -# like lua_enablereadonlytable, but we still need the eclass and such
245 -# for bug #841422.
246 -inherit autotools edo flag-o-matic lua-single multiprocessing systemd tmpfiles toolchain-funcs
247 -
248 -DESCRIPTION="A persistent caching system, key-value, and data structures database"
249 -HOMEPAGE="https://redis.io"
250 -SRC_URI="https://download.redis.io/releases/${P}.tar.gz"
251 -
252 -LICENSE="BSD"
253 -SLOT="0"
254 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
255 -IUSE="+jemalloc selinux ssl systemd tcmalloc test"
256 -RESTRICT="!test? ( test )"
257 -
258 -COMMON_DEPEND="
259 - ${LUA_DEPS}
260 - jemalloc? ( >=dev-libs/jemalloc-5.1:= )
261 - ssl? ( dev-libs/openssl:0= )
262 - systemd? ( sys-apps/systemd:= )
263 - tcmalloc? ( dev-util/google-perftools )
264 -"
265 -
266 -RDEPEND="
267 - ${COMMON_DEPEND}
268 - acct-group/redis
269 - acct-user/redis
270 - selinux? ( sec-policy/selinux-redis )
271 -"
272 -
273 -BDEPEND="
274 - ${COMMON_DEPEND}
275 - virtual/pkgconfig
276 -"
277 -
278 -# Tcl is only needed in the CHOST test env
279 -DEPEND="
280 - ${COMMON_DEPEND}
281 - test? (
282 - dev-lang/tcl:0=
283 - ssl? ( dev-tcltk/tls )
284 - )"
285 -
286 -REQUIRED_USE="?? ( jemalloc tcmalloc )
287 - ${LUA_REQUIRED_USE}"
288 -
289 -PATCHES=(
290 - "${FILESDIR}"/${PN}-6.2.1-config.patch
291 - "${FILESDIR}"/${PN}-5.0-shared.patch
292 - "${FILESDIR}"/${PN}-6.2.3-ppc-atomic.patch
293 - "${FILESDIR}"/${PN}-sentinel-5.0-config.patch
294 -)
295 -
296 -src_prepare() {
297 - default
298 -
299 - # Copy lua modules into build dir
300 - #cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
301 - #cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
302 - # Append cflag for lua_cjson
303 - # https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
304 - append-cflags "-DENABLE_CJSON_GLOBAL"
305 -
306 - # now we will rewrite present Makefiles
307 - local makefiles="" MKF
308 - for MKF in $(find -name 'Makefile' | cut -b 3-); do
309 - mv "${MKF}" "${MKF}.in"
310 - sed -i -e 's:$(CC):@CC@:g' \
311 - -e 's:$(CFLAGS):@AM_CFLAGS@:g' \
312 - -e 's: $(DEBUG)::g' \
313 - -e 's:$(OBJARCH)::g' \
314 - -e 's:ARCH:TARCH:g' \
315 - -e '/^CCOPT=/s:$: $(LDFLAGS):g' \
316 - "${MKF}.in" \
317 - || die "Sed failed for ${MKF}"
318 - makefiles+=" ${MKF}"
319 - done
320 - # autodetection of compiler and settings; generates the modified Makefiles
321 - cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die
322 -
323 - # Use the correct pkgconfig name for Lua.
324 - # The upstream configure script handles luajit specially, and is not
325 - # affected by these changes.
326 - sed -i \
327 - -e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
328 - -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
329 - -e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${ELUA},g" \
330 - configure.ac || die "Sed failed for configure.ac"
331 - eautoreconf
332 -}
333 -
334 -src_configure() {
335 - econf #$(use_with lua_single_target_luajit luajit)
336 -
337 - # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
338 - # also, don't define ANSI/c99 for lua twice
339 - sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
340 -}
341 -
342 -src_compile() {
343 - local myconf=""
344 -
345 - if use jemalloc; then
346 - myconf+="MALLOC=jemalloc"
347 - elif use tcmalloc; then
348 - myconf+="MALLOC=tcmalloc"
349 - else
350 - myconf+="MALLOC=libc"
351 - fi
352 -
353 - if use ssl; then
354 - myconf+=" BUILD_TLS=yes"
355 - fi
356 -
357 - export USE_SYSTEMD=$(usex systemd)
358 -
359 - tc-export AR CC RANLIB
360 - emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
361 -}
362 -
363 -src_test() {
364 - local runtestargs=(
365 - --clients "$(makeopts_jobs)" # see bug #649868
366 - )
367 -
368 - if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
369 - ewarn "oom-score-adj related tests will be skipped." \
370 - "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
371 -
372 - runtestargs+=(
373 - # unit/oom-score-adj was introduced in version 6.2.0
374 - --skipunit unit/oom-score-adj # see bug #756382
375 -
376 - # Following test was added in version 7.0.0 to unit/introspection.
377 - # It also tries to adjust OOM score.
378 - --skiptest "CONFIG SET rollback on apply error"
379 - )
380 - fi
381 -
382 - if use ssl; then
383 - edo ./utils/gen-test-certs.sh
384 - runtestargs+=( --tls )
385 - fi
386 -
387 - edo ./runtest "${runtestargs[@]}"
388 -}
389 -
390 -src_install() {
391 - insinto /etc/redis
392 - doins redis.conf sentinel.conf
393 - use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf
394 - fperms 0750 /etc/redis
395 - fperms 0644 /etc/redis/{redis,sentinel}.conf
396 -
397 - newconfd "${FILESDIR}/redis.confd-r2" redis
398 - newinitd "${FILESDIR}/redis.initd-6" redis
399 -
400 - systemd_newunit "${FILESDIR}/redis.service-4" redis.service
401 - newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf
402 -
403 - newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel
404 - newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel
405 -
406 - insinto /etc/logrotate.d/
407 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
408 -
409 - dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
410 -
411 - dobin src/redis-cli
412 - dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
413 - fperms 0750 /usr/sbin/redis-benchmark
414 - dosym redis-server /usr/sbin/redis-sentinel
415 -
416 - if use prefix; then
417 - diropts -m0750
418 - else
419 - diropts -m0750 -o redis -g redis
420 - fi
421 - keepdir /var/{log,lib}/redis
422 -}
423 -
424 -pkg_postinst() {
425 - tmpfiles_process redis.conf
426 -
427 - ewarn "The default redis configuration file location changed to:"
428 - ewarn " /etc/redis/{redis,sentinel}.conf"
429 - ewarn "Please apply your changes to the new configuration files."
430 -}