From 396eee340d169cac3fe75d6b5113f414569adf7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 18 Oct 2015 02:40:50 +0200 Subject: [PATCH] rspamd: fix cross armv[67]l This fixes the linker error (missing scalarmult_donna symbol), but I don't know if it also works. --- .../rspamd/patches/enable-curve25519-donna_c.patch | 12 ++++++++++++ srcpkgs/rspamd/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/rspamd/patches/enable-curve25519-donna_c.patch diff --git a/srcpkgs/rspamd/patches/enable-curve25519-donna_c.patch b/srcpkgs/rspamd/patches/enable-curve25519-donna_c.patch new file mode 100644 index 00000000000..dba362423e5 --- /dev/null +++ b/srcpkgs/rspamd/patches/enable-curve25519-donna_c.patch @@ -0,0 +1,12 @@ +Enable curve25519-donn.c for non x86 + +--- src/libcryptobox/CMakeLists.txt 2015-10-15 14:13:46.000000000 +0200 ++++ src/libcryptobox/CMakeLists.txt 2015-10-18 02:33:14.705237158 +0200 +@@ -56,6 +56,7 @@ + SET(CURVESRC ${CURVESRC} ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/curve25519-donna.c) + ELSE() + SET(POLYSRC ${POLYSRC} ${CMAKE_CURRENT_SOURCE_DIR}/poly1305/ref-32.c) ++ SET(CURVESRC ${CURVESRC} ${CMAKE_CURRENT_SOURCE_DIR}/curve25519/curve25519-donna.c) + ENDIF() + + IF(HAVE_AVX2) diff --git a/srcpkgs/rspamd/template b/srcpkgs/rspamd/template index a8d2bcd772b..bc774302e02 100644 --- a/srcpkgs/rspamd/template +++ b/srcpkgs/rspamd/template @@ -1,7 +1,7 @@ # Template file for 'rspamd' pkgname=rspamd version=1.0.6 -revision=1 +revision=2 build_style=cmake configure_args=" -DRSPAMD_USER=rspamd \