rspamd: fix arm systems.

This commit is contained in:
Enno Boland 2015-09-23 15:24:26 +02:00
parent 1f427d06bd
commit 396487702e
2 changed files with 28 additions and 4 deletions

View File

@ -0,0 +1,27 @@
From f10b11ddf685392b18218f6003e2eb3b6295dfd3 Mon Sep 17 00:00:00 2001
From: Vsevolod Stakhov <vsevolod@highsecure.ru>
Date: Wed, 23 Sep 2015 13:43:59 +0100
Subject: [PATCH] Fix issue with va_list passing.
Issue: #379
Reported by: @Gottox
---
src/libutil/logger.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 65cb67c..105b593 100644
--- src/libutil/logger.c
+++ src/libutil/logger.c
@@ -923,8 +923,9 @@ rspamd_glib_log_function (const gchar *log_domain,
void
rspamd_glib_printerr_function (const gchar *message)
{
- rspamd_common_logv (NULL, G_LOG_LEVEL_CRITICAL, "glib", NULL, G_STRFUNC,
- message, NULL);
+ rspamd_common_log_function (NULL, G_LOG_LEVEL_CRITICAL, "glib",
+ NULL, G_STRFUNC,
+ "%s", message);
}
/**

View File

@ -1,7 +1,7 @@
# Template file for 'rspamd'
pkgname=rspamd
version=1.0.1
revision=1
revision=2
build_style=cmake
configure_args="
-DRSPAMD_USER=rspamd \
@ -52,9 +52,6 @@ conf_files="
/etc/rspamd/worker-controller.inc
/etc/rspamd/statistic.conf"
# XXX
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/17788/steps/shell_3/logs/stdio"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" $makedepends"