Skip to content

Commit

Permalink
mail-filter/rspamd: use bundled hiredis, bug #747274
Browse files Browse the repository at this point in the history
System hiredis makes the rspamd subprocesses segfault periodically.

Closes: https://bugs.gentoo.org/747274
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Petr Vaněk <[email protected]>
Closes: gentoo#17852
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
arkamar authored and thesamesam committed Oct 8, 2020
1 parent 28745d2 commit 6323b87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 99 deletions.
93 changes: 0 additions & 93 deletions mail-filter/rspamd/files/rspamd-2.6-unbundle-hiredis.patch

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ RDEPEND="
app-arch/zstd
dev-db/sqlite:3
dev-libs/glib:2
dev-libs/hiredis:=
dev-libs/icu:=
dev-libs/libev
dev-libs/libsodium
Expand Down Expand Up @@ -61,13 +60,12 @@ PATCHES=(
"${FILESDIR}/rspamd-2.6-unbundle-lua.patch"
"${FILESDIR}/rspamd-2.6-unbundle-zstd.patch"
"${FILESDIR}/rspamd-2.5-unbundle-snowball.patch"
"${FILESDIR}/rspamd-2.6-unbundle-hiredis.patch"
)

src_prepare() {
cmake_src_prepare

rm -vrf contrib/{hiredis,lua-{bit,lpeg},snowball,zstd} || die
rm -vrf contrib/{lua-{bit,lpeg},snowball,zstd} || die

sed -i -e 's/User=_rspamd/User=rspamd/g' \
rspamd.service \
Expand Down
4 changes: 1 addition & 3 deletions mail-filter/rspamd/rspamd-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ RDEPEND="
app-arch/zstd
dev-db/sqlite:3
dev-libs/glib:2
dev-libs/hiredis:=
dev-libs/icu:=
dev-libs/libev
dev-libs/libsodium
Expand Down Expand Up @@ -61,13 +60,12 @@ PATCHES=(
"${FILESDIR}/rspamd-2.6-unbundle-lua.patch"
"${FILESDIR}/rspamd-2.6-unbundle-zstd.patch"
"${FILESDIR}/rspamd-2.5-unbundle-snowball.patch"
"${FILESDIR}/rspamd-2.6-unbundle-hiredis.patch"
)

src_prepare() {
cmake_src_prepare

rm -vrf contrib/{hiredis,lua-{bit,lpeg},snowball,zstd} || die
rm -vrf contrib/{lua-{bit,lpeg},snowball,zstd} || die

sed -i -e 's/User=_rspamd/User=rspamd/g' \
rspamd.service \
Expand Down

0 comments on commit 6323b87

Please sign in to comment.