Skip to content

Commit

Permalink
updpatch: rspamd 3.7.4-1
Browse files Browse the repository at this point in the history
Add a patch to fix rspamd/rspamd#4701
  • Loading branch information
felixonmars committed Nov 21, 2023
1 parent b6718a5 commit 466e4b6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions rspamd/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git PKGBUILD PKGBUILD
index f9103ed..0606780 100644
index 24cf201..f295caa 100644
--- PKGBUILD
+++ PKGBUILD
@@ -16,7 +16,6 @@ depends=(
Expand All @@ -10,15 +10,24 @@ index f9103ed..0606780 100644
icu
jemalloc
libelf
@@ -161,7 +160,6 @@ build() {
@@ -148,6 +147,8 @@ pkgver() {

prepare() {
cd rspamd
+ # Fix build without hyperscan
+ git cherry-pick -n d907a95ac2e2cad6f7f65c4323f031f7931ae18b
sed 's/_rspamd/rspamd/g' -i rspamd.service
}

@@ -161,7 +162,6 @@ build() {
-DRSPAMD_USER=rspamd \
-DNO_SHARED=ON \
-DWANT_SYSTEMD_UNITS=ON \
- -DENABLE_HYPERSCAN=ON \
-DENABLE_JEMALLOC=ON \
-DENABLE_OPTIMIZATION=ON
cmake --build build
@@ -175,7 +173,6 @@ package() {
@@ -175,7 +175,6 @@ package() {
install -Dm 644 rspamd.logrotate "${pkgdir}"/etc/logrotate.d/rspamd
install -Dm 644 rspamd-dmarc-report.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm 644 rspamd-dmarc-report.timer -t "${pkgdir}"/usr/lib/systemd/system/
Expand Down

0 comments on commit 466e4b6

Please sign in to comment.