* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2025-10-08 11:01 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2025-10-08 11:01 UTC (permalink / raw
To: gentoo-commits
commit: 5a71686499c7428cec6d92e3d3c8ca55e8cb6b3e
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Wed Oct 8 09:52:59 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Wed Oct 8 11:01:03 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a716864
dev-db/redict: add 7.3.6, drop 7.3.5 (security)
Fixes CVE-2025-49844, CVE-2025-46817, CVE-2025-46818, CVE-2025-46819
Bug: https://bugs.gentoo.org/963695
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Part-of: https://github.com/gentoo/gentoo/pull/44094
Closes: https://github.com/gentoo/gentoo/pull/44094
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/Manifest | 2 +-
dev-db/redict/{redict-7.3.5.ebuild => redict-7.3.6.ebuild} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index 64923cf1e3ff..59693348ca90 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1 +1 @@
-DIST redict-7.3.5.tar.gz 3416403 BLAKE2B e7c99bb4fa90725b9f648e2834c71482ff79dee627ed26a11d5792c0a803df1b1914482620a4176110a9d2ec856a9611becd66529b966eb9ef15f21706a995cc SHA512 b6250326590a2d20088c90a87aa3144d8083508fc949a91d759f9e150a80e200527763073cdac1ff0af61db1083c403f5380aaaf69686745a5c0bc64383dbeb3
+DIST redict-7.3.6.tar.gz 3418468 BLAKE2B 8e0b6d2e9255abeefcbd8171dba395a31ca94669a5e49f2758f308f044777a6e10d7f08e747759b17f75064844e5d40a5bff6d74efa0a0cc08a3e7b0398d0e3d SHA512 ba795cbe59250dca21d352a657323aa11c87baea1304e0a2c577151966c9dc1d034af5da88d11e2e12555c1825662cce6f602d1895641c5fd7ed20ce4085a13e
diff --git a/dev-db/redict/redict-7.3.5.ebuild b/dev-db/redict/redict-7.3.6.ebuild
similarity index 100%
rename from dev-db/redict/redict-7.3.5.ebuild
rename to dev-db/redict/redict-7.3.6.ebuild
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2025-07-15 7:34 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2025-07-15 7:34 UTC (permalink / raw
To: gentoo-commits
commit: d5f75143acdb22257961541209b665fa0e79cea2
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Mon Jul 14 10:24:38 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue Jul 15 07:33:27 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5f75143
dev-db/redict: drop 7.3.4
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Part-of: https://github.com/gentoo/gentoo/pull/42997
Closes: https://github.com/gentoo/gentoo/pull/42997
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/Manifest | 1 -
dev-db/redict/redict-7.3.4.ebuild | 160 --------------------------------------
2 files changed, 161 deletions(-)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index 16234e853890..64923cf1e3ff 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1,2 +1 @@
-DIST redict-7.3.4.tar.gz 3415845 BLAKE2B e30b62845e371a7f0b21e5070561d27fa1d89f09ec9b462a509176a40c2c46fde598cbc0b58e3f02444f7d68b0c041f2db65893ab08ce7bad619da788b4e1e29 SHA512 6f3bcdc965d6c761874d32bb107854d7375c5bccbee5a71f438b4ec176136b0f55b864bd9448898f92dc0c7e5b6e188139b8456ee88c2293e600fa854f36b621
DIST redict-7.3.5.tar.gz 3416403 BLAKE2B e7c99bb4fa90725b9f648e2834c71482ff79dee627ed26a11d5792c0a803df1b1914482620a4176110a9d2ec856a9611becd66529b966eb9ef15f21706a995cc SHA512 b6250326590a2d20088c90a87aa3144d8083508fc949a91d759f9e150a80e200527763073cdac1ff0af61db1083c403f5380aaaf69686745a5c0bc64383dbeb3
diff --git a/dev-db/redict/redict-7.3.4.ebuild b/dev-db/redict/redict-7.3.4.ebuild
deleted file mode 100644
index 002e106a3641..000000000000
--- a/dev-db/redict/redict-7.3.4.ebuild
+++ /dev/null
@@ -1,160 +0,0 @@
-# Copyright 2024-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
-# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
-
-inherit edo multiprocessing systemd tmpfiles toolchain-funcs
-
-DESCRIPTION="A persistent caching system, key-value, and data structures database"
-HOMEPAGE="https://redict.io"
-
-SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
-
-S=${WORKDIR}/${PN}
-
-LICENSE="BSD Boost-1.0 LGPL-3"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="+jemalloc ssl systemd tcmalloc test"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="?? ( jemalloc tcmalloc )"
-
-RDEPEND="
- acct-group/redict
- acct-user/redict
- dev-libs/hiredict:0=[ssl?]
- jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
- ssl? ( dev-libs/openssl:0= )
- systemd? ( sys-apps/systemd:= )
- tcmalloc? ( dev-util/google-perftools )
-"
-
-DEPEND="${RDEPEND}"
-
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/tcl:0=
- ssl? ( dev-tcltk/tls )
- )
-"
-
-PATCHES=(
- "${FILESDIR}"/redict-7.3.0-config.patch
- "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
- "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
- "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
-)
-
-src_prepare() {
- default
-
- # Respect user CFLAGS in bundled lua
- sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
-}
-
-_build() {
- tc-export AR CC RANLIB
- local myconf=(
- AR="${AR}"
- CC="${CC}"
- RANLIB="${RANLIB}"
- CFLAGS="${CFLAGS}"
- LDFLAGS="${LDFLAGS}"
- V=1 # verbose
- OPTIMIZATION=
- DEBUG=
- DEBUG_FLAGS=
- BUILD_TLS=$(usex ssl)
- USE_SYSTEMD=$(usex systemd)
- USE_SYSTEM_HIREDICT=yes
- )
-
- if use jemalloc; then
- myconf+=(
- MALLOC=jemalloc
- USE_SYSTEM_JEMALLOC=yes
- )
- elif use tcmalloc; then
- myconf+=( MALLOC=tcmalloc )
- else
- myconf+=( MALLOC=libc )
- fi
-
- emake -C src "${myconf[@]}" "$@"
-}
-
-src_compile() {
- _build
-}
-
-src_test() {
- local runtestargs=(
- --clients "$(makeopts_jobs)" # see bug #649868
-
- --skiptest "Active defrag eval scripts" # see bug #851654
- --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump
- )
-
- if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
- ewarn "oom-score-adj related tests will be skipped." \
- "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
-
- runtestargs+=(
- # unit/oom-score-adj was introduced in version 6.2.0
- --skipunit unit/oom-score-adj # see bug #756382
-
- # Following test was added in version 7.0.0 to unit/introspection.
- # It also tries to adjust OOM score.
- --skiptest "CONFIG SET rollback on apply error"
- )
- fi
-
- if use ssl; then
- edo ./utils/gen-test-certs.sh
- runtestargs+=( --tls )
- fi
-
- edo ./runtest "${runtestargs[@]}"
-}
-
-src_install() {
- insinto /etc/redict
- doins redict.conf sentinel.conf
- use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
-
- newconfd "${FILESDIR}/redict.confd" redict
- newinitd "${FILESDIR}/redict.initd" redict
-
- systemd_newunit "${FILESDIR}/redict.service" redict.service
- newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
-
- newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
- newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
-
- insinto /etc/logrotate.d/
- newins "${FILESDIR}/redict.logrotate" "${PN}"
-
- _build DESTDIR="${ED}" PREFIX="/usr" install
-
- if use prefix; then
- diropts -m0750
- else
- diropts -m0750 -o redict -g redict
- fi
- keepdir /var/{log,lib}/redict
-}
-
-pkg_postinst() {
- tmpfiles_process redict.conf
-
- if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
- ewarn "Redict uses different configuration files than redis:"
- ewarn "/etc/redict/{redict,sentinel}.conf"
- ewarn "Please apply your changes to the new configuration files."
- fi
-}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2025-07-15 7:34 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2025-07-15 7:34 UTC (permalink / raw
To: gentoo-commits
commit: 2c6ea33db85b18290d273c865a03a3968f1737a0
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Mon Jul 14 10:21:49 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue Jul 15 07:33:25 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c6ea33d
dev-db/redict: add 7.3.5
Fixes CVE-2025-32023
Bug: https://bugs.gentoo.org/959657
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Part-of: https://github.com/gentoo/gentoo/pull/42997
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/Manifest | 1 +
dev-db/redict/redict-7.3.5.ebuild | 160 ++++++++++++++++++++++++++++++++++++++
2 files changed, 161 insertions(+)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index c4c78762edb8..16234e853890 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1 +1,2 @@
DIST redict-7.3.4.tar.gz 3415845 BLAKE2B e30b62845e371a7f0b21e5070561d27fa1d89f09ec9b462a509176a40c2c46fde598cbc0b58e3f02444f7d68b0c041f2db65893ab08ce7bad619da788b4e1e29 SHA512 6f3bcdc965d6c761874d32bb107854d7375c5bccbee5a71f438b4ec176136b0f55b864bd9448898f92dc0c7e5b6e188139b8456ee88c2293e600fa854f36b621
+DIST redict-7.3.5.tar.gz 3416403 BLAKE2B e7c99bb4fa90725b9f648e2834c71482ff79dee627ed26a11d5792c0a803df1b1914482620a4176110a9d2ec856a9611becd66529b966eb9ef15f21706a995cc SHA512 b6250326590a2d20088c90a87aa3144d8083508fc949a91d759f9e150a80e200527763073cdac1ff0af61db1083c403f5380aaaf69686745a5c0bc64383dbeb3
diff --git a/dev-db/redict/redict-7.3.5.ebuild b/dev-db/redict/redict-7.3.5.ebuild
new file mode 100644
index 000000000000..002e106a3641
--- /dev/null
+++ b/dev-db/redict/redict-7.3.5.ebuild
@@ -0,0 +1,160 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
+# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
+
+inherit edo multiprocessing systemd tmpfiles toolchain-funcs
+
+DESCRIPTION="A persistent caching system, key-value, and data structures database"
+HOMEPAGE="https://redict.io"
+
+SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
+
+S=${WORKDIR}/${PN}
+
+LICENSE="BSD Boost-1.0 LGPL-3"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+IUSE="+jemalloc ssl systemd tcmalloc test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="?? ( jemalloc tcmalloc )"
+
+RDEPEND="
+ acct-group/redict
+ acct-user/redict
+ dev-libs/hiredict:0=[ssl?]
+ jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
+ ssl? ( dev-libs/openssl:0= )
+ systemd? ( sys-apps/systemd:= )
+ tcmalloc? ( dev-util/google-perftools )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-lang/tcl:0=
+ ssl? ( dev-tcltk/tls )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/redict-7.3.0-config.patch
+ "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
+ "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
+ "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
+)
+
+src_prepare() {
+ default
+
+ # Respect user CFLAGS in bundled lua
+ sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
+}
+
+_build() {
+ tc-export AR CC RANLIB
+ local myconf=(
+ AR="${AR}"
+ CC="${CC}"
+ RANLIB="${RANLIB}"
+ CFLAGS="${CFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ V=1 # verbose
+ OPTIMIZATION=
+ DEBUG=
+ DEBUG_FLAGS=
+ BUILD_TLS=$(usex ssl)
+ USE_SYSTEMD=$(usex systemd)
+ USE_SYSTEM_HIREDICT=yes
+ )
+
+ if use jemalloc; then
+ myconf+=(
+ MALLOC=jemalloc
+ USE_SYSTEM_JEMALLOC=yes
+ )
+ elif use tcmalloc; then
+ myconf+=( MALLOC=tcmalloc )
+ else
+ myconf+=( MALLOC=libc )
+ fi
+
+ emake -C src "${myconf[@]}" "$@"
+}
+
+src_compile() {
+ _build
+}
+
+src_test() {
+ local runtestargs=(
+ --clients "$(makeopts_jobs)" # see bug #649868
+
+ --skiptest "Active defrag eval scripts" # see bug #851654
+ --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump
+ )
+
+ if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
+ ewarn "oom-score-adj related tests will be skipped." \
+ "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
+
+ runtestargs+=(
+ # unit/oom-score-adj was introduced in version 6.2.0
+ --skipunit unit/oom-score-adj # see bug #756382
+
+ # Following test was added in version 7.0.0 to unit/introspection.
+ # It also tries to adjust OOM score.
+ --skiptest "CONFIG SET rollback on apply error"
+ )
+ fi
+
+ if use ssl; then
+ edo ./utils/gen-test-certs.sh
+ runtestargs+=( --tls )
+ fi
+
+ edo ./runtest "${runtestargs[@]}"
+}
+
+src_install() {
+ insinto /etc/redict
+ doins redict.conf sentinel.conf
+ use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
+
+ newconfd "${FILESDIR}/redict.confd" redict
+ newinitd "${FILESDIR}/redict.initd" redict
+
+ systemd_newunit "${FILESDIR}/redict.service" redict.service
+ newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
+
+ newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
+ newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
+
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}/redict.logrotate" "${PN}"
+
+ _build DESTDIR="${ED}" PREFIX="/usr" install
+
+ if use prefix; then
+ diropts -m0750
+ else
+ diropts -m0750 -o redict -g redict
+ fi
+ keepdir /var/{log,lib}/redict
+}
+
+pkg_postinst() {
+ tmpfiles_process redict.conf
+
+ if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
+ ewarn "Redict uses different configuration files than redis:"
+ ewarn "/etc/redict/{redict,sentinel}.conf"
+ ewarn "Please apply your changes to the new configuration files."
+ fi
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2025-07-12 5:56 Sam James
0 siblings, 0 replies; 11+ messages in thread
From: Sam James @ 2025-07-12 5:56 UTC (permalink / raw
To: gentoo-commits
commit: 92b78ecef769c21385730ed47570ad1385dfe2cd
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Jul 11 18:19:06 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 12 05:54:58 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92b78ece
dev-db/redict: drop 7.3.3
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Part-of: https://github.com/gentoo/gentoo/pull/42960
Closes: https://github.com/gentoo/gentoo/pull/42960
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-db/redict/Manifest | 1 -
dev-db/redict/redict-7.3.3.ebuild | 160 --------------------------------------
2 files changed, 161 deletions(-)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index 6f8695f2d7f9..c4c78762edb8 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1,2 +1 @@
-DIST redict-7.3.3.tar.gz 3415184 BLAKE2B 848c328725b8c07ba82e040c26edf6ba4902b6b55bc06fa3c0bb7adeb2b8f14e302f126f2759469552712e806b9bc15956d4b11ab49ac1e57223caff05e7925f SHA512 7fbdee54f26d59d74bab2b9fa619cb7c0135aebb38ff891423f4963ca593e20018f9f789288eb3ebc769f02a05da3fe35033f75d42902bb99421cae5689f5e88
DIST redict-7.3.4.tar.gz 3415845 BLAKE2B e30b62845e371a7f0b21e5070561d27fa1d89f09ec9b462a509176a40c2c46fde598cbc0b58e3f02444f7d68b0c041f2db65893ab08ce7bad619da788b4e1e29 SHA512 6f3bcdc965d6c761874d32bb107854d7375c5bccbee5a71f438b4ec176136b0f55b864bd9448898f92dc0c7e5b6e188139b8456ee88c2293e600fa854f36b621
diff --git a/dev-db/redict/redict-7.3.3.ebuild b/dev-db/redict/redict-7.3.3.ebuild
deleted file mode 100644
index 002e106a3641..000000000000
--- a/dev-db/redict/redict-7.3.3.ebuild
+++ /dev/null
@@ -1,160 +0,0 @@
-# Copyright 2024-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
-# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
-
-inherit edo multiprocessing systemd tmpfiles toolchain-funcs
-
-DESCRIPTION="A persistent caching system, key-value, and data structures database"
-HOMEPAGE="https://redict.io"
-
-SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
-
-S=${WORKDIR}/${PN}
-
-LICENSE="BSD Boost-1.0 LGPL-3"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="+jemalloc ssl systemd tcmalloc test"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="?? ( jemalloc tcmalloc )"
-
-RDEPEND="
- acct-group/redict
- acct-user/redict
- dev-libs/hiredict:0=[ssl?]
- jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
- ssl? ( dev-libs/openssl:0= )
- systemd? ( sys-apps/systemd:= )
- tcmalloc? ( dev-util/google-perftools )
-"
-
-DEPEND="${RDEPEND}"
-
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/tcl:0=
- ssl? ( dev-tcltk/tls )
- )
-"
-
-PATCHES=(
- "${FILESDIR}"/redict-7.3.0-config.patch
- "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
- "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
- "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
-)
-
-src_prepare() {
- default
-
- # Respect user CFLAGS in bundled lua
- sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
-}
-
-_build() {
- tc-export AR CC RANLIB
- local myconf=(
- AR="${AR}"
- CC="${CC}"
- RANLIB="${RANLIB}"
- CFLAGS="${CFLAGS}"
- LDFLAGS="${LDFLAGS}"
- V=1 # verbose
- OPTIMIZATION=
- DEBUG=
- DEBUG_FLAGS=
- BUILD_TLS=$(usex ssl)
- USE_SYSTEMD=$(usex systemd)
- USE_SYSTEM_HIREDICT=yes
- )
-
- if use jemalloc; then
- myconf+=(
- MALLOC=jemalloc
- USE_SYSTEM_JEMALLOC=yes
- )
- elif use tcmalloc; then
- myconf+=( MALLOC=tcmalloc )
- else
- myconf+=( MALLOC=libc )
- fi
-
- emake -C src "${myconf[@]}" "$@"
-}
-
-src_compile() {
- _build
-}
-
-src_test() {
- local runtestargs=(
- --clients "$(makeopts_jobs)" # see bug #649868
-
- --skiptest "Active defrag eval scripts" # see bug #851654
- --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump
- )
-
- if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
- ewarn "oom-score-adj related tests will be skipped." \
- "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
-
- runtestargs+=(
- # unit/oom-score-adj was introduced in version 6.2.0
- --skipunit unit/oom-score-adj # see bug #756382
-
- # Following test was added in version 7.0.0 to unit/introspection.
- # It also tries to adjust OOM score.
- --skiptest "CONFIG SET rollback on apply error"
- )
- fi
-
- if use ssl; then
- edo ./utils/gen-test-certs.sh
- runtestargs+=( --tls )
- fi
-
- edo ./runtest "${runtestargs[@]}"
-}
-
-src_install() {
- insinto /etc/redict
- doins redict.conf sentinel.conf
- use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
-
- newconfd "${FILESDIR}/redict.confd" redict
- newinitd "${FILESDIR}/redict.initd" redict
-
- systemd_newunit "${FILESDIR}/redict.service" redict.service
- newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
-
- newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
- newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
-
- insinto /etc/logrotate.d/
- newins "${FILESDIR}/redict.logrotate" "${PN}"
-
- _build DESTDIR="${ED}" PREFIX="/usr" install
-
- if use prefix; then
- diropts -m0750
- else
- diropts -m0750 -o redict -g redict
- fi
- keepdir /var/{log,lib}/redict
-}
-
-pkg_postinst() {
- tmpfiles_process redict.conf
-
- if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
- ewarn "Redict uses different configuration files than redis:"
- ewarn "/etc/redict/{redict,sentinel}.conf"
- ewarn "Please apply your changes to the new configuration files."
- fi
-}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2025-07-12 5:56 Sam James
0 siblings, 0 replies; 11+ messages in thread
From: Sam James @ 2025-07-12 5:56 UTC (permalink / raw
To: gentoo-commits
commit: abeb93758bf6148f497e4fbd592534fb5bf2e762
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Jul 11 18:17:13 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 12 05:54:58 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abeb9375
dev-db/redict: add 7.3.4
Fixes CVE-2025-48367
Bug: https://bugs.gentoo.org/959657
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Part-of: https://github.com/gentoo/gentoo/pull/42960
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-db/redict/Manifest | 1 +
dev-db/redict/redict-7.3.4.ebuild | 160 ++++++++++++++++++++++++++++++++++++++
2 files changed, 161 insertions(+)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index 27cdd6376164..6f8695f2d7f9 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1 +1,2 @@
DIST redict-7.3.3.tar.gz 3415184 BLAKE2B 848c328725b8c07ba82e040c26edf6ba4902b6b55bc06fa3c0bb7adeb2b8f14e302f126f2759469552712e806b9bc15956d4b11ab49ac1e57223caff05e7925f SHA512 7fbdee54f26d59d74bab2b9fa619cb7c0135aebb38ff891423f4963ca593e20018f9f789288eb3ebc769f02a05da3fe35033f75d42902bb99421cae5689f5e88
+DIST redict-7.3.4.tar.gz 3415845 BLAKE2B e30b62845e371a7f0b21e5070561d27fa1d89f09ec9b462a509176a40c2c46fde598cbc0b58e3f02444f7d68b0c041f2db65893ab08ce7bad619da788b4e1e29 SHA512 6f3bcdc965d6c761874d32bb107854d7375c5bccbee5a71f438b4ec176136b0f55b864bd9448898f92dc0c7e5b6e188139b8456ee88c2293e600fa854f36b621
diff --git a/dev-db/redict/redict-7.3.4.ebuild b/dev-db/redict/redict-7.3.4.ebuild
new file mode 100644
index 000000000000..002e106a3641
--- /dev/null
+++ b/dev-db/redict/redict-7.3.4.ebuild
@@ -0,0 +1,160 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
+# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
+
+inherit edo multiprocessing systemd tmpfiles toolchain-funcs
+
+DESCRIPTION="A persistent caching system, key-value, and data structures database"
+HOMEPAGE="https://redict.io"
+
+SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
+
+S=${WORKDIR}/${PN}
+
+LICENSE="BSD Boost-1.0 LGPL-3"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+IUSE="+jemalloc ssl systemd tcmalloc test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="?? ( jemalloc tcmalloc )"
+
+RDEPEND="
+ acct-group/redict
+ acct-user/redict
+ dev-libs/hiredict:0=[ssl?]
+ jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
+ ssl? ( dev-libs/openssl:0= )
+ systemd? ( sys-apps/systemd:= )
+ tcmalloc? ( dev-util/google-perftools )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-lang/tcl:0=
+ ssl? ( dev-tcltk/tls )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/redict-7.3.0-config.patch
+ "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
+ "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
+ "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
+)
+
+src_prepare() {
+ default
+
+ # Respect user CFLAGS in bundled lua
+ sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
+}
+
+_build() {
+ tc-export AR CC RANLIB
+ local myconf=(
+ AR="${AR}"
+ CC="${CC}"
+ RANLIB="${RANLIB}"
+ CFLAGS="${CFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ V=1 # verbose
+ OPTIMIZATION=
+ DEBUG=
+ DEBUG_FLAGS=
+ BUILD_TLS=$(usex ssl)
+ USE_SYSTEMD=$(usex systemd)
+ USE_SYSTEM_HIREDICT=yes
+ )
+
+ if use jemalloc; then
+ myconf+=(
+ MALLOC=jemalloc
+ USE_SYSTEM_JEMALLOC=yes
+ )
+ elif use tcmalloc; then
+ myconf+=( MALLOC=tcmalloc )
+ else
+ myconf+=( MALLOC=libc )
+ fi
+
+ emake -C src "${myconf[@]}" "$@"
+}
+
+src_compile() {
+ _build
+}
+
+src_test() {
+ local runtestargs=(
+ --clients "$(makeopts_jobs)" # see bug #649868
+
+ --skiptest "Active defrag eval scripts" # see bug #851654
+ --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump
+ )
+
+ if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
+ ewarn "oom-score-adj related tests will be skipped." \
+ "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
+
+ runtestargs+=(
+ # unit/oom-score-adj was introduced in version 6.2.0
+ --skipunit unit/oom-score-adj # see bug #756382
+
+ # Following test was added in version 7.0.0 to unit/introspection.
+ # It also tries to adjust OOM score.
+ --skiptest "CONFIG SET rollback on apply error"
+ )
+ fi
+
+ if use ssl; then
+ edo ./utils/gen-test-certs.sh
+ runtestargs+=( --tls )
+ fi
+
+ edo ./runtest "${runtestargs[@]}"
+}
+
+src_install() {
+ insinto /etc/redict
+ doins redict.conf sentinel.conf
+ use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
+
+ newconfd "${FILESDIR}/redict.confd" redict
+ newinitd "${FILESDIR}/redict.initd" redict
+
+ systemd_newunit "${FILESDIR}/redict.service" redict.service
+ newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
+
+ newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
+ newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
+
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}/redict.logrotate" "${PN}"
+
+ _build DESTDIR="${ED}" PREFIX="/usr" install
+
+ if use prefix; then
+ diropts -m0750
+ else
+ diropts -m0750 -o redict -g redict
+ fi
+ keepdir /var/{log,lib}/redict
+}
+
+pkg_postinst() {
+ tmpfiles_process redict.conf
+
+ if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
+ ewarn "Redict uses different configuration files than redis:"
+ ewarn "/etc/redict/{redict,sentinel}.conf"
+ ewarn "Please apply your changes to the new configuration files."
+ fi
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2025-05-29 6:25 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2025-05-29 6:25 UTC (permalink / raw
To: gentoo-commits
commit: 5ab948a0fd8c9da34e9c4da5139a292355d94880
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Thu May 29 01:38:49 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Thu May 29 06:24:09 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ab948a0
dev-db/redict: add 7.3.3
Fixes CVE-2025-21605
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Bug: https://bugs.gentoo.org/954265
Part-of: https://github.com/gentoo/gentoo/pull/42315
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/Manifest | 1 +
dev-db/redict/redict-7.3.3.ebuild | 160 ++++++++++++++++++++++++++++++++++++++
2 files changed, 161 insertions(+)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index b821e86d08b9..8ad4ae42e017 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1 +1,2 @@
DIST redict-7.3.2.tar.gz 3415089 BLAKE2B 3507586d4e752e1f98755e8f0e2291ea37a27af84b7980ecde0342826dd41b46eb2f3a9ca3f0231bc49771829b7584b6f2f529ab11cb5af39ecdb3cde4f6416a SHA512 fb14f9c1bb43e69f5479fd9944b2865d0696330d244b8eb88865370756f580a9e5826f9041cd91478ccfeb22ec1304ab9cdff6736e2a623e71c58e785db9eb4a
+DIST redict-7.3.3.tar.gz 3415184 BLAKE2B 848c328725b8c07ba82e040c26edf6ba4902b6b55bc06fa3c0bb7adeb2b8f14e302f126f2759469552712e806b9bc15956d4b11ab49ac1e57223caff05e7925f SHA512 7fbdee54f26d59d74bab2b9fa619cb7c0135aebb38ff891423f4963ca593e20018f9f789288eb3ebc769f02a05da3fe35033f75d42902bb99421cae5689f5e88
diff --git a/dev-db/redict/redict-7.3.3.ebuild b/dev-db/redict/redict-7.3.3.ebuild
new file mode 100644
index 000000000000..002e106a3641
--- /dev/null
+++ b/dev-db/redict/redict-7.3.3.ebuild
@@ -0,0 +1,160 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
+# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
+
+inherit edo multiprocessing systemd tmpfiles toolchain-funcs
+
+DESCRIPTION="A persistent caching system, key-value, and data structures database"
+HOMEPAGE="https://redict.io"
+
+SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
+
+S=${WORKDIR}/${PN}
+
+LICENSE="BSD Boost-1.0 LGPL-3"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+IUSE="+jemalloc ssl systemd tcmalloc test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="?? ( jemalloc tcmalloc )"
+
+RDEPEND="
+ acct-group/redict
+ acct-user/redict
+ dev-libs/hiredict:0=[ssl?]
+ jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
+ ssl? ( dev-libs/openssl:0= )
+ systemd? ( sys-apps/systemd:= )
+ tcmalloc? ( dev-util/google-perftools )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-lang/tcl:0=
+ ssl? ( dev-tcltk/tls )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/redict-7.3.0-config.patch
+ "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
+ "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
+ "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
+)
+
+src_prepare() {
+ default
+
+ # Respect user CFLAGS in bundled lua
+ sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
+}
+
+_build() {
+ tc-export AR CC RANLIB
+ local myconf=(
+ AR="${AR}"
+ CC="${CC}"
+ RANLIB="${RANLIB}"
+ CFLAGS="${CFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ V=1 # verbose
+ OPTIMIZATION=
+ DEBUG=
+ DEBUG_FLAGS=
+ BUILD_TLS=$(usex ssl)
+ USE_SYSTEMD=$(usex systemd)
+ USE_SYSTEM_HIREDICT=yes
+ )
+
+ if use jemalloc; then
+ myconf+=(
+ MALLOC=jemalloc
+ USE_SYSTEM_JEMALLOC=yes
+ )
+ elif use tcmalloc; then
+ myconf+=( MALLOC=tcmalloc )
+ else
+ myconf+=( MALLOC=libc )
+ fi
+
+ emake -C src "${myconf[@]}" "$@"
+}
+
+src_compile() {
+ _build
+}
+
+src_test() {
+ local runtestargs=(
+ --clients "$(makeopts_jobs)" # see bug #649868
+
+ --skiptest "Active defrag eval scripts" # see bug #851654
+ --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump
+ )
+
+ if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
+ ewarn "oom-score-adj related tests will be skipped." \
+ "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
+
+ runtestargs+=(
+ # unit/oom-score-adj was introduced in version 6.2.0
+ --skipunit unit/oom-score-adj # see bug #756382
+
+ # Following test was added in version 7.0.0 to unit/introspection.
+ # It also tries to adjust OOM score.
+ --skiptest "CONFIG SET rollback on apply error"
+ )
+ fi
+
+ if use ssl; then
+ edo ./utils/gen-test-certs.sh
+ runtestargs+=( --tls )
+ fi
+
+ edo ./runtest "${runtestargs[@]}"
+}
+
+src_install() {
+ insinto /etc/redict
+ doins redict.conf sentinel.conf
+ use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
+
+ newconfd "${FILESDIR}/redict.confd" redict
+ newinitd "${FILESDIR}/redict.initd" redict
+
+ systemd_newunit "${FILESDIR}/redict.service" redict.service
+ newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
+
+ newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
+ newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
+
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}/redict.logrotate" "${PN}"
+
+ _build DESTDIR="${ED}" PREFIX="/usr" install
+
+ if use prefix; then
+ diropts -m0750
+ else
+ diropts -m0750 -o redict -g redict
+ fi
+ keepdir /var/{log,lib}/redict
+}
+
+pkg_postinst() {
+ tmpfiles_process redict.conf
+
+ if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
+ ewarn "Redict uses different configuration files than redis:"
+ ewarn "/etc/redict/{redict,sentinel}.conf"
+ ewarn "Please apply your changes to the new configuration files."
+ fi
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2025-01-09 10:49 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2025-01-09 10:49 UTC (permalink / raw
To: gentoo-commits
commit: c768c330a369a2c1892610f2c59bbb627804fb65
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Wed Jan 8 23:58:27 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Thu Jan 9 10:48:07 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c768c330
dev-db/redict: add 7.3.2
Fixes CVE-2024-51741 and CVE-2024-46981
Bug: https://bugs.gentoo.org/947749
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/Manifest | 1 +
dev-db/redict/redict-7.3.2.ebuild | 160 ++++++++++++++++++++++++++++++++++++++
2 files changed, 161 insertions(+)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index 28d0ef0bccc9..f79226c6bc5a 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1 +1,2 @@
DIST redict-7.3.1.tar.gz 3414766 BLAKE2B ff4a4078683ec6e4f236e605e29711d1033c8632cd6c12035d7fdf1566d75d375daa61383fd8a6c098444e1cf382f5934f961e67a2041351fb4c9aaa6a7635c0 SHA512 79d174c0f58c73a52f3b0225280f69f92790f8d43cdf70a2353cefd06d73030ffb5e3eb30e06dcd9c47161f2d43a09cca6dc815e9dd83b620716c2ae3243d3bc
+DIST redict-7.3.2.tar.gz 3415089 BLAKE2B 3507586d4e752e1f98755e8f0e2291ea37a27af84b7980ecde0342826dd41b46eb2f3a9ca3f0231bc49771829b7584b6f2f529ab11cb5af39ecdb3cde4f6416a SHA512 fb14f9c1bb43e69f5479fd9944b2865d0696330d244b8eb88865370756f580a9e5826f9041cd91478ccfeb22ec1304ab9cdff6736e2a623e71c58e785db9eb4a
diff --git a/dev-db/redict/redict-7.3.2.ebuild b/dev-db/redict/redict-7.3.2.ebuild
new file mode 100644
index 000000000000..002e106a3641
--- /dev/null
+++ b/dev-db/redict/redict-7.3.2.ebuild
@@ -0,0 +1,160 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
+# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
+
+inherit edo multiprocessing systemd tmpfiles toolchain-funcs
+
+DESCRIPTION="A persistent caching system, key-value, and data structures database"
+HOMEPAGE="https://redict.io"
+
+SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
+
+S=${WORKDIR}/${PN}
+
+LICENSE="BSD Boost-1.0 LGPL-3"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+IUSE="+jemalloc ssl systemd tcmalloc test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="?? ( jemalloc tcmalloc )"
+
+RDEPEND="
+ acct-group/redict
+ acct-user/redict
+ dev-libs/hiredict:0=[ssl?]
+ jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
+ ssl? ( dev-libs/openssl:0= )
+ systemd? ( sys-apps/systemd:= )
+ tcmalloc? ( dev-util/google-perftools )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-lang/tcl:0=
+ ssl? ( dev-tcltk/tls )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/redict-7.3.0-config.patch
+ "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
+ "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
+ "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
+)
+
+src_prepare() {
+ default
+
+ # Respect user CFLAGS in bundled lua
+ sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
+}
+
+_build() {
+ tc-export AR CC RANLIB
+ local myconf=(
+ AR="${AR}"
+ CC="${CC}"
+ RANLIB="${RANLIB}"
+ CFLAGS="${CFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ V=1 # verbose
+ OPTIMIZATION=
+ DEBUG=
+ DEBUG_FLAGS=
+ BUILD_TLS=$(usex ssl)
+ USE_SYSTEMD=$(usex systemd)
+ USE_SYSTEM_HIREDICT=yes
+ )
+
+ if use jemalloc; then
+ myconf+=(
+ MALLOC=jemalloc
+ USE_SYSTEM_JEMALLOC=yes
+ )
+ elif use tcmalloc; then
+ myconf+=( MALLOC=tcmalloc )
+ else
+ myconf+=( MALLOC=libc )
+ fi
+
+ emake -C src "${myconf[@]}" "$@"
+}
+
+src_compile() {
+ _build
+}
+
+src_test() {
+ local runtestargs=(
+ --clients "$(makeopts_jobs)" # see bug #649868
+
+ --skiptest "Active defrag eval scripts" # see bug #851654
+ --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump
+ )
+
+ if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
+ ewarn "oom-score-adj related tests will be skipped." \
+ "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
+
+ runtestargs+=(
+ # unit/oom-score-adj was introduced in version 6.2.0
+ --skipunit unit/oom-score-adj # see bug #756382
+
+ # Following test was added in version 7.0.0 to unit/introspection.
+ # It also tries to adjust OOM score.
+ --skiptest "CONFIG SET rollback on apply error"
+ )
+ fi
+
+ if use ssl; then
+ edo ./utils/gen-test-certs.sh
+ runtestargs+=( --tls )
+ fi
+
+ edo ./runtest "${runtestargs[@]}"
+}
+
+src_install() {
+ insinto /etc/redict
+ doins redict.conf sentinel.conf
+ use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
+
+ newconfd "${FILESDIR}/redict.confd" redict
+ newinitd "${FILESDIR}/redict.initd" redict
+
+ systemd_newunit "${FILESDIR}/redict.service" redict.service
+ newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
+
+ newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
+ newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
+
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}/redict.logrotate" "${PN}"
+
+ _build DESTDIR="${ED}" PREFIX="/usr" install
+
+ if use prefix; then
+ diropts -m0750
+ else
+ diropts -m0750 -o redict -g redict
+ fi
+ keepdir /var/{log,lib}/redict
+}
+
+pkg_postinst() {
+ tmpfiles_process redict.conf
+
+ if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
+ ewarn "Redict uses different configuration files than redis:"
+ ewarn "/etc/redict/{redict,sentinel}.conf"
+ ewarn "Please apply your changes to the new configuration files."
+ fi
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2025-01-09 10:49 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2025-01-09 10:49 UTC (permalink / raw
To: gentoo-commits
commit: 20150c774f2c5420ad6a3540e7571d448a0c1d3a
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Thu Jan 9 00:13:28 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Thu Jan 9 10:48:08 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20150c77
dev-db/redict: drop 7.3.1
Bug: https://bugs.gentoo.org/947749
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/40061
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/Manifest | 1 -
dev-db/redict/redict-7.3.1.ebuild | 160 --------------------------------------
2 files changed, 161 deletions(-)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index f79226c6bc5a..b821e86d08b9 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1,2 +1 @@
-DIST redict-7.3.1.tar.gz 3414766 BLAKE2B ff4a4078683ec6e4f236e605e29711d1033c8632cd6c12035d7fdf1566d75d375daa61383fd8a6c098444e1cf382f5934f961e67a2041351fb4c9aaa6a7635c0 SHA512 79d174c0f58c73a52f3b0225280f69f92790f8d43cdf70a2353cefd06d73030ffb5e3eb30e06dcd9c47161f2d43a09cca6dc815e9dd83b620716c2ae3243d3bc
DIST redict-7.3.2.tar.gz 3415089 BLAKE2B 3507586d4e752e1f98755e8f0e2291ea37a27af84b7980ecde0342826dd41b46eb2f3a9ca3f0231bc49771829b7584b6f2f529ab11cb5af39ecdb3cde4f6416a SHA512 fb14f9c1bb43e69f5479fd9944b2865d0696330d244b8eb88865370756f580a9e5826f9041cd91478ccfeb22ec1304ab9cdff6736e2a623e71c58e785db9eb4a
diff --git a/dev-db/redict/redict-7.3.1.ebuild b/dev-db/redict/redict-7.3.1.ebuild
deleted file mode 100644
index 8218bbe76716..000000000000
--- a/dev-db/redict/redict-7.3.1.ebuild
+++ /dev/null
@@ -1,160 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
-# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
-
-inherit edo multiprocessing systemd tmpfiles toolchain-funcs
-
-DESCRIPTION="A persistent caching system, key-value, and data structures database"
-HOMEPAGE="https://redict.io"
-
-SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
-
-S=${WORKDIR}/${PN}
-
-LICENSE="BSD Boost-1.0 LGPL-3"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="+jemalloc ssl systemd tcmalloc test"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="?? ( jemalloc tcmalloc )"
-
-RDEPEND="
- acct-group/redict
- acct-user/redict
- dev-libs/hiredict:0=[ssl?]
- jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
- ssl? ( dev-libs/openssl:0= )
- systemd? ( sys-apps/systemd:= )
- tcmalloc? ( dev-util/google-perftools )
-"
-
-DEPEND="${RDEPEND}"
-
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/tcl:0=
- ssl? ( dev-tcltk/tls )
- )
-"
-
-PATCHES=(
- "${FILESDIR}"/redict-7.3.0-config.patch
- "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
- "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
- "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
-)
-
-src_prepare() {
- default
-
- # Respect user CFLAGS in bundled lua
- sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
-}
-
-_build() {
- tc-export AR CC RANLIB
- local myconf=(
- AR="${AR}"
- CC="${CC}"
- RANLIB="${RANLIB}"
- CFLAGS="${CFLAGS}"
- LDFLAGS="${LDFLAGS}"
- V=1 # verbose
- OPTIMIZATION=
- DEBUG=
- DEBUG_FLAGS=
- BUILD_TLS=$(usex ssl)
- USE_SYSTEMD=$(usex systemd)
- USE_SYSTEM_HIREDICT=yes
- )
-
- if use jemalloc; then
- myconf+=(
- MALLOC=jemalloc
- USE_SYSTEM_JEMALLOC=yes
- )
- elif use tcmalloc; then
- myconf+=( MALLOC=tcmalloc )
- else
- myconf+=( MALLOC=libc )
- fi
-
- emake -C src "${myconf[@]}" "$@"
-}
-
-src_compile() {
- _build
-}
-
-src_test() {
- local runtestargs=(
- --clients "$(makeopts_jobs)" # see bug #649868
-
- --skiptest "Active defrag eval scripts" # see bug #851654
- --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump
- )
-
- if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
- ewarn "oom-score-adj related tests will be skipped." \
- "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
-
- runtestargs+=(
- # unit/oom-score-adj was introduced in version 6.2.0
- --skipunit unit/oom-score-adj # see bug #756382
-
- # Following test was added in version 7.0.0 to unit/introspection.
- # It also tries to adjust OOM score.
- --skiptest "CONFIG SET rollback on apply error"
- )
- fi
-
- if use ssl; then
- edo ./utils/gen-test-certs.sh
- runtestargs+=( --tls )
- fi
-
- edo ./runtest "${runtestargs[@]}"
-}
-
-src_install() {
- insinto /etc/redict
- doins redict.conf sentinel.conf
- use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
-
- newconfd "${FILESDIR}/redict.confd" redict
- newinitd "${FILESDIR}/redict.initd" redict
-
- systemd_newunit "${FILESDIR}/redict.service" redict.service
- newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
-
- newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
- newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
-
- insinto /etc/logrotate.d/
- newins "${FILESDIR}/redict.logrotate" "${PN}"
-
- _build DESTDIR="${ED}" PREFIX="/usr" install
-
- if use prefix; then
- diropts -m0750
- else
- diropts -m0750 -o redict -g redict
- fi
- keepdir /var/{log,lib}/redict
-}
-
-pkg_postinst() {
- tmpfiles_process redict.conf
-
- if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
- ewarn "Redict uses different configuration files than redis:"
- ewarn "/etc/redict/{redict,sentinel}.conf"
- ewarn "Please apply your changes to the new configuration files."
- fi
-}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2024-10-01 14:20 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2024-10-01 14:20 UTC (permalink / raw
To: gentoo-commits
commit: 59d019e7421f99f97560e7d2fd64595da8a7e49c
Author: Anna (navi) Figueiredo Gomes <navi <AT> vlhl <DOT> dev>
AuthorDate: Tue Oct 1 14:07:48 2024 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue Oct 1 14:19:37 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d019e7
dev-db/redict: drop 7.3.0-r1
Bug: https://bugs.gentoo.org/940609
Signed-off-by: Anna (navi) Figueiredo Gomes <navi <AT> vlhl.dev>
Closes: https://github.com/gentoo/gentoo/pull/38834
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/Manifest | 1 -
dev-db/redict/redict-7.3.0-r1.ebuild | 159 -----------------------------------
2 files changed, 160 deletions(-)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index 27adfdcf937e..28d0ef0bccc9 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1,2 +1 @@
-DIST redict-7.3.0.tar.gz 3414514 BLAKE2B dd2ce2fdd8fbede33ddea9fee34e81535b0948a8963fb0d3391aac32ddf786e5cce996d1d405d81182ef6098ab8389b3c71b95ff9d8cbc68637746538e36999d SHA512 d33f4dfaf728f5a22abe7a6223f3192c39dc41a32e7bcb0f453caaa859f35b512534979c26ced9f4458c19611debd282f37955e930151c0f827035f349647226
DIST redict-7.3.1.tar.gz 3414766 BLAKE2B ff4a4078683ec6e4f236e605e29711d1033c8632cd6c12035d7fdf1566d75d375daa61383fd8a6c098444e1cf382f5934f961e67a2041351fb4c9aaa6a7635c0 SHA512 79d174c0f58c73a52f3b0225280f69f92790f8d43cdf70a2353cefd06d73030ffb5e3eb30e06dcd9c47161f2d43a09cca6dc815e9dd83b620716c2ae3243d3bc
diff --git a/dev-db/redict/redict-7.3.0-r1.ebuild b/dev-db/redict/redict-7.3.0-r1.ebuild
deleted file mode 100644
index b53bf105c3a1..000000000000
--- a/dev-db/redict/redict-7.3.0-r1.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
-# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
-
-inherit edo multiprocessing systemd tmpfiles toolchain-funcs
-
-DESCRIPTION="A persistent caching system, key-value, and data structures database"
-HOMEPAGE="https://redict.io"
-
-SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
-
-S=${WORKDIR}/${PN}
-
-LICENSE="BSD Boost-1.0 LGPL-3"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="+jemalloc ssl systemd tcmalloc test"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="?? ( jemalloc tcmalloc )"
-
-RDEPEND="
- acct-group/redict
- acct-user/redict
- dev-libs/hiredict:0=[ssl?]
- jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
- ssl? ( dev-libs/openssl:0= )
- systemd? ( sys-apps/systemd:= )
- tcmalloc? ( dev-util/google-perftools )
-"
-
-DEPEND="${RDEPEND}"
-
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lang/tcl:0=
- ssl? ( dev-tcltk/tls )
- )
-"
-
-PATCHES=(
- "${FILESDIR}"/redict-7.3.0-config.patch
- "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
- "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
- "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
-)
-
-src_prepare() {
- default
-
- # Respect user CFLAGS in bundled lua
- sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
-}
-
-_build() {
- tc-export AR CC RANLIB
- local myconf=(
- AR="${AR}"
- CC="${CC}"
- RANLIB="${RANLIB}"
- CFLAGS="${CFLAGS}"
- LDFLAGS="${LDFLAGS}"
- V=1 # verbose
- OPTIMIZATION=
- DEBUG=
- DEBUG_FLAGS=
- BUILD_TLS=$(usex ssl)
- USE_SYSTEMD=$(usex systemd)
- USE_SYSTEM_HIREDICT=yes
- )
-
- if use jemalloc; then
- myconf+=(
- MALLOC=jemalloc
- USE_SYSTEM_JEMALLOC=yes
- )
- elif use tcmalloc; then
- myconf+=( MALLOC=tcmalloc )
- else
- myconf+=( MALLOC=libc )
- fi
-
- emake -C src "${myconf[@]}" "$@"
-}
-
-src_compile() {
- _build
-}
-
-src_test() {
- local runtestargs=(
- --clients "$(makeopts_jobs)" # see bug #649868
-
- --skiptest "Active defrag eval scripts" # see bug #851654
- )
-
- if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
- ewarn "oom-score-adj related tests will be skipped." \
- "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
-
- runtestargs+=(
- # unit/oom-score-adj was introduced in version 6.2.0
- --skipunit unit/oom-score-adj # see bug #756382
-
- # Following test was added in version 7.0.0 to unit/introspection.
- # It also tries to adjust OOM score.
- --skiptest "CONFIG SET rollback on apply error"
- )
- fi
-
- if use ssl; then
- edo ./utils/gen-test-certs.sh
- runtestargs+=( --tls )
- fi
-
- edo ./runtest "${runtestargs[@]}"
-}
-
-src_install() {
- insinto /etc/redict
- doins redict.conf sentinel.conf
- use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
-
- newconfd "${FILESDIR}/redict.confd" redict
- newinitd "${FILESDIR}/redict.initd" redict
-
- systemd_newunit "${FILESDIR}/redict.service" redict.service
- newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
-
- newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
- newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
-
- insinto /etc/logrotate.d/
- newins "${FILESDIR}/redict.logrotate" "${PN}"
-
- _build DESTDIR="${ED}" PREFIX="/usr" install
-
- if use prefix; then
- diropts -m0750
- else
- diropts -m0750 -o redict -g redict
- fi
- keepdir /var/{log,lib}/redict
-}
-
-pkg_postinst() {
- tmpfiles_process redict.conf
-
- if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
- ewarn "Redict uses different configuration files than redis:"
- ewarn "/etc/redict/{redict,sentinel}.conf"
- ewarn "Please apply your changes to the new configuration files."
- fi
-}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2024-10-01 14:20 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2024-10-01 14:20 UTC (permalink / raw
To: gentoo-commits
commit: 924beb27a022ec4d58ef3ed12fc6c3ec18153dc7
Author: Anna (navi) Figueiredo Gomes <navi <AT> vlhl <DOT> dev>
AuthorDate: Tue Oct 1 14:03:58 2024 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue Oct 1 14:19:35 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=924beb27
dev-db/redict: add 7.3.1
Bug: https://bugs.gentoo.org/940609
Signed-off-by: Anna (navi) Figueiredo Gomes <navi <AT> vlhl.dev>
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/Manifest | 1 +
dev-db/redict/redict-7.3.1.ebuild | 160 ++++++++++++++++++++++++++++++++++++++
2 files changed, 161 insertions(+)
diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest
index a15faf344ca6..27adfdcf937e 100644
--- a/dev-db/redict/Manifest
+++ b/dev-db/redict/Manifest
@@ -1 +1,2 @@
DIST redict-7.3.0.tar.gz 3414514 BLAKE2B dd2ce2fdd8fbede33ddea9fee34e81535b0948a8963fb0d3391aac32ddf786e5cce996d1d405d81182ef6098ab8389b3c71b95ff9d8cbc68637746538e36999d SHA512 d33f4dfaf728f5a22abe7a6223f3192c39dc41a32e7bcb0f453caaa859f35b512534979c26ced9f4458c19611debd282f37955e930151c0f827035f349647226
+DIST redict-7.3.1.tar.gz 3414766 BLAKE2B ff4a4078683ec6e4f236e605e29711d1033c8632cd6c12035d7fdf1566d75d375daa61383fd8a6c098444e1cf382f5934f961e67a2041351fb4c9aaa6a7635c0 SHA512 79d174c0f58c73a52f3b0225280f69f92790f8d43cdf70a2353cefd06d73030ffb5e3eb30e06dcd9c47161f2d43a09cca6dc815e9dd83b620716c2ae3243d3bc
diff --git a/dev-db/redict/redict-7.3.1.ebuild b/dev-db/redict/redict-7.3.1.ebuild
new file mode 100644
index 000000000000..8218bbe76716
--- /dev/null
+++ b/dev-db/redict/redict-7.3.1.ebuild
@@ -0,0 +1,160 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated
+# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable
+
+inherit edo multiprocessing systemd tmpfiles toolchain-funcs
+
+DESCRIPTION="A persistent caching system, key-value, and data structures database"
+HOMEPAGE="https://redict.io"
+
+SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
+
+S=${WORKDIR}/${PN}
+
+LICENSE="BSD Boost-1.0 LGPL-3"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+IUSE="+jemalloc ssl systemd tcmalloc test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="?? ( jemalloc tcmalloc )"
+
+RDEPEND="
+ acct-group/redict
+ acct-user/redict
+ dev-libs/hiredict:0=[ssl?]
+ jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] )
+ ssl? ( dev-libs/openssl:0= )
+ systemd? ( sys-apps/systemd:= )
+ tcmalloc? ( dev-util/google-perftools )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-lang/tcl:0=
+ ssl? ( dev-tcltk/tls )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/redict-7.3.0-config.patch
+ "${FILESDIR}"/redict-sentinel-7.3.0-config.patch
+ "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch
+ "${FILESDIR}"/redict-7.3.0-system-hiredict.patch
+)
+
+src_prepare() {
+ default
+
+ # Respect user CFLAGS in bundled lua
+ sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die
+}
+
+_build() {
+ tc-export AR CC RANLIB
+ local myconf=(
+ AR="${AR}"
+ CC="${CC}"
+ RANLIB="${RANLIB}"
+ CFLAGS="${CFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ V=1 # verbose
+ OPTIMIZATION=
+ DEBUG=
+ DEBUG_FLAGS=
+ BUILD_TLS=$(usex ssl)
+ USE_SYSTEMD=$(usex systemd)
+ USE_SYSTEM_HIREDICT=yes
+ )
+
+ if use jemalloc; then
+ myconf+=(
+ MALLOC=jemalloc
+ USE_SYSTEM_JEMALLOC=yes
+ )
+ elif use tcmalloc; then
+ myconf+=( MALLOC=tcmalloc )
+ else
+ myconf+=( MALLOC=libc )
+ fi
+
+ emake -C src "${myconf[@]}" "$@"
+}
+
+src_compile() {
+ _build
+}
+
+src_test() {
+ local runtestargs=(
+ --clients "$(makeopts_jobs)" # see bug #649868
+
+ --skiptest "Active defrag eval scripts" # see bug #851654
+ --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump
+ )
+
+ if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
+ ewarn "oom-score-adj related tests will be skipped." \
+ "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
+
+ runtestargs+=(
+ # unit/oom-score-adj was introduced in version 6.2.0
+ --skipunit unit/oom-score-adj # see bug #756382
+
+ # Following test was added in version 7.0.0 to unit/introspection.
+ # It also tries to adjust OOM score.
+ --skiptest "CONFIG SET rollback on apply error"
+ )
+ fi
+
+ if use ssl; then
+ edo ./utils/gen-test-certs.sh
+ runtestargs+=( --tls )
+ fi
+
+ edo ./runtest "${runtestargs[@]}"
+}
+
+src_install() {
+ insinto /etc/redict
+ doins redict.conf sentinel.conf
+ use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf
+
+ newconfd "${FILESDIR}/redict.confd" redict
+ newinitd "${FILESDIR}/redict.initd" redict
+
+ systemd_newunit "${FILESDIR}/redict.service" redict.service
+ newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf
+
+ newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel
+ newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel
+
+ insinto /etc/logrotate.d/
+ newins "${FILESDIR}/redict.logrotate" "${PN}"
+
+ _build DESTDIR="${ED}" PREFIX="/usr" install
+
+ if use prefix; then
+ diropts -m0750
+ else
+ diropts -m0750 -o redict -g redict
+ fi
+ keepdir /var/{log,lib}/redict
+}
+
+pkg_postinst() {
+ tmpfiles_process redict.conf
+
+ if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then
+ ewarn "Redict uses different configuration files than redis:"
+ ewarn "/etc/redict/{redict,sentinel}.conf"
+ ewarn "Please apply your changes to the new configuration files."
+ fi
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/
@ 2024-05-21 21:23 Petr Vaněk
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vaněk @ 2024-05-21 21:23 UTC (permalink / raw
To: gentoo-commits
commit: 5d0f04b174b00af6001f02e18712a27096dd30d1
Author: Anna (navi) Figueiredo Gomes <navi <AT> vlhl <DOT> dev>
AuthorDate: Tue May 21 10:10:10 2024 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue May 21 21:22:16 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d0f04b1
dev-db/redict: revbump for initd fixes
Signed-off-by: Anna (navi) Figueiredo Gomes <navi <AT> vlhl.dev>
Closes: https://github.com/gentoo/gentoo/pull/36754
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
dev-db/redict/{redict-7.3.0.ebuild => redict-7.3.0-r1.ebuild} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/dev-db/redict/redict-7.3.0.ebuild b/dev-db/redict/redict-7.3.0-r1.ebuild
similarity index 100%
rename from dev-db/redict/redict-7.3.0.ebuild
rename to dev-db/redict/redict-7.3.0-r1.ebuild
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2025-10-08 11:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-08 11:01 [gentoo-commits] repo/gentoo:master commit in: dev-db/redict/ Petr Vaněk
-- strict thread matches above, loose matches on Subject: below --
2025-07-15 7:34 Petr Vaněk
2025-07-15 7:34 Petr Vaněk
2025-07-12 5:56 Sam James
2025-07-12 5:56 Sam James
2025-05-29 6:25 Petr Vaněk
2025-01-09 10:49 Petr Vaněk
2025-01-09 10:49 Petr Vaněk
2024-10-01 14:20 Petr Vaněk
2024-10-01 14:20 Petr Vaněk
2024-05-21 21:23 Petr Vaněk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox