Skip to content

Commit 0576611

Browse files
committed
rspamd: rebuild with libicu78
1 parent 1aed47a commit 0576611

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

srcpkgs/rspamd/patches/musl.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- a/contrib/lua-torch/paths/paths.c
2+
+++ b/contrib/lua-torch/paths/paths.c
3+
@@ -2,6 +2,7 @@
4+
5+
6+
#include "paths.h"
7+
+#include <linux/limits.h>
8+
9+
10+
/* ------------------------------------------------------ */

srcpkgs/rspamd/template

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'rspamd'
22
pkgname=rspamd
33
version=1.9.4
4-
revision=11
4+
revision=12
55
archs="x86_64* i686* aarch64* armv[67]* ppc64*"
66
build_style=cmake
77
configure_args="-DRSPAMD_USER=rspamd -DCONFDIR=/etc/rspamd
@@ -38,14 +38,13 @@ if [ "$CROSS_BUILD" ]; then
3838
fi
3939

4040
pre_configure() {
41-
case "$XBPS_TARGET_MACHINE" in
42-
*-musl) # Remove non existing library nsl
43-
vsed -i CMakeLists.txt -e "/LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl)/d"
44-
esac
41+
if [ "$XBPS_TARGET_LIBC" = musl ]; then
42+
vsed -i CMakeLists.txt -e "/LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl)/d"
43+
fi
4544
if [ "$CROSS_BUILD" ]; then
4645
configure_args+=" -C ${FILESDIR}/TryRunResults.cmake"
4746
mkdir -p build_native
48-
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
47+
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .. )
4948
fi
5049
}
5150

0 commit comments

Comments
 (0)