mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
mail-filter/rspamd: fix hyperscan support on i386
The patch is taken from upstream.
92e62855a6
Closes: https://bugs.gentoo.org/703004
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/14572
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
6c9ef48d2c
commit
97d6eb42be
15
mail-filter/rspamd/files/rspamd-2.2-i386-hyperscan.patch
Normal file
15
mail-filter/rspamd/files/rspamd-2.2-i386-hyperscan.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/cmake/Hyperscan.cmake b/cmake/Hyperscan.cmake
|
||||
index 3dd774511..b8f83a3bb 100644
|
||||
--- a/cmake/Hyperscan.cmake
|
||||
+++ b/cmake/Hyperscan.cmake
|
||||
@@ -1,8 +1,8 @@
|
||||
option (ENABLE_HYPERSCAN "Enable hyperscan for fast regexp processing [default: OFF]" OFF)
|
||||
|
||||
if (ENABLE_HYPERSCAN MATCHES "ON")
|
||||
- if (NOT "${ARCH}" STREQUAL "x86_64")
|
||||
- MESSAGE(FATAL_ERROR "Hyperscan is supported only on x86_64 architecture")
|
||||
+ if (NOT ("${ARCH}" STREQUAL "x86_64" OR "${ARCH}" STREQUAL "i386"))
|
||||
+ MESSAGE(FATAL_ERROR "Hyperscan is supported only on x86_64/i386 architectures")
|
||||
endif ()
|
||||
ProcessPackage (HYPERSCAN LIBRARY hs INCLUDE hs.h INCLUDE_SUFFIXES
|
||||
hs include/hs
|
||||
@@ -41,6 +41,8 @@ RDEPEND="
|
||||
!pcre2? ( dev-libs/libpcre[jit=] )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-i386-hyperscan.patch" )
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
|
||||
Reference in New Issue
Block a user