Skip to content
Snippets Groups Projects
Commit 9c906afe authored by Duncan Bellamy's avatar Duncan Bellamy :speech_balloon: Committed by alice
Browse files

community/rspamd: enable on riscv64

* add icu-data-full to depends
parent 5bf692fa
1 merge request!34720community/rspamd: enable on riscv64
Pipeline #123257 passed
......@@ -6,15 +6,15 @@
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=rspamd
pkgver=3.2
pkgrel=1
pkgrel=2
pkgdesc="Fast, free and open-source spam filtering system"
url="https://rspamd.com/"
# riscv64 blocked by luajit
arch="all !riscv64"
arch="all"
license="Apache-2.0 BSD-1-Clause BSD-2-Clause BSD-3-Clause CC0-1.0 LGPL-2.1-or-later
LGPL-3.0-only MIT Zlib"
pkgusers="rspamd"
pkggroups="rspamd"
depends="icu-data-full"
makedepends="
cmake
curl-dev
......@@ -22,7 +22,6 @@ makedepends="
glib-dev
icu-dev
libsodium-dev
luajit-dev
openssl1.1-compat-dev
pcre2-dev
perl
......@@ -32,6 +31,12 @@ makedepends="
zlib-dev
zstd-dev
"
case "$CARCH" in
riscv64) makedepends="$makedepends lua5.4-dev"
_luajit="OFF" ;;
*) makedepends="$makedepends luajit-dev"
_luajit="ON" ;;
esac
install="$pkgname.pre-install $pkgname.post-upgrade"
subpackages="
$pkgname-dbg
......@@ -77,7 +82,7 @@ build() {
-DENABLE_URL_INCLUDE=ON \
-DENABLE_PCRE2=ON \
-DENABLE_HYPERSCAN="$_hm" \
-DENABLE_LUAJIT=ON \
-DENABLE_LUAJIT="$_luajit" \
-DSYSTEM_FMT=ON \
-DSYSTEM_ZSTD=ON \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
......@@ -89,11 +94,12 @@ build() {
check() {
case "$CARCH" in
x86|x86_64|s390x|armv7)
x86|x86_64|s390x|armv7|riscv64)
# x86 has Segmentation fault on builder
# x86_64 has illegal instruction on builder
# s390x has require nil value error
# armv7 has bus error
# riscv64 full tests need luajit
./build/test/rspamd-test-cxx ;;
*)
cmake --build build --target run-test ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment