Accepting request 1134658 from server:mail

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1134658
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rspamd?expand=0&rev=21
This commit is contained in:
Ana Guerrero 2023-12-22 21:42:56 +00:00 committed by Git OBS Bridge
commit 89e113bd08
8 changed files with 40 additions and 66 deletions

View File

@ -1,8 +1,8 @@
Index: rspamd-3.3/src/libserver/symcache/symcache_item.hxx Index: rspamd-3.7.5/src/libserver/symcache/symcache_item.hxx
=================================================================== ===================================================================
--- rspamd-3.3.orig/src/libserver/symcache/symcache_item.hxx --- rspamd-3.7.5.orig/src/libserver/symcache/symcache_item.hxx
+++ rspamd-3.3/src/libserver/symcache/symcache_item.hxx +++ rspamd-3.7.5/src/libserver/symcache/symcache_item.hxx
@@ -77,6 +77,7 @@ constexpr static auto item_type_to_str(s @@ -78,6 +78,7 @@ constexpr static auto item_type_to_str(s
case symcache_item_type::VIRTUAL: case symcache_item_type::VIRTUAL:
return "virtual"; return "virtual";
} }

View File

@ -7,10 +7,10 @@ The caller uses the value to size its memory allocation:
struct iovec *iov = g_alloca(sizeof(struct iovec) * niov); struct iovec *iov = g_alloca(sizeof(struct iovec) * niov);
and that faulted on aarch64. and that faulted on aarch64.
Index: rspamd-3.7.4/src/libserver/logger/logger.c Index: rspamd-3.7.5/src/libserver/logger/logger.c
=================================================================== ===================================================================
--- rspamd-3.7.4.orig/src/libserver/logger/logger.c --- rspamd-3.7.5.orig/src/libserver/logger/logger.c
+++ rspamd-3.7.4/src/libserver/logger/logger.c +++ rspamd-3.7.5/src/libserver/logger/logger.c
@@ -1046,25 +1046,7 @@ gsize rspamd_log_fill_iov(struct iovec * @@ -1046,25 +1046,7 @@ gsize rspamd_log_fill_iov(struct iovec *
gint r; gint r;
@ -20,11 +20,11 @@ Index: rspamd-3.7.4/src/libserver/logger/logger.c
- return 4; - return 4;
- } - }
- else { - else {
- return 3; /* No time component */ - return 2; /* No time component */
- } - }
- } - }
- else if (log_systemd) { - else if (log_systemd) {
- return 3; - return 4;
- } - }
- else { - else {
- if (log_color) { - if (log_color) {
@ -38,10 +38,3 @@ Index: rspamd-3.7.4/src/libserver/logger/logger.c
} }
else { else {
static gchar timebuf[64], modulebuf[64]; static gchar timebuf[64], modulebuf[64];
@@ -1197,4 +1179,4 @@ gsize rspamd_log_fill_iov(struct iovec *
return niov;
}
}
-}
\ No newline at end of file
+}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:30cf9f209c9cdb4962839255c94c0d8eb6cc937abc0d799710168d3ee8ad6138
size 5903754

3
rspamd-3.7.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3fba8b0086fe68ac16146cfc25cfcff352bff52fa5cef7d277007ed008170330
size 5903689

View File

@ -1,8 +1,8 @@
Index: rspamd-1.7.9/conf/rspamd.conf Index: rspamd-3.7.5/conf/rspamd.conf
=================================================================== ===================================================================
--- rspamd-1.7.9.orig/conf/rspamd.conf --- rspamd-3.7.5.orig/conf/rspamd.conf
+++ rspamd-1.7.9/conf/rspamd.conf +++ rspamd-3.7.5/conf/rspamd.conf
@@ -28,7 +28,8 @@ options { @@ -34,7 +34,8 @@ lang_detection {
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/cgp.inc" .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/cgp.inc"
logging { logging {

View File

@ -1,40 +0,0 @@
From d907a95ac2e2cad6f7f65c4323f031f7931ae18b Mon Sep 17 00:00:00 2001
From: Vsevolod Stakhov <vsevolod@rspamd.com>
Date: Wed, 15 Nov 2023 13:43:05 +0000
Subject: [PATCH] [Minor] Fix build with no hyperscan
Issue: #4702
---
src/libserver/rspamd_control.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c
index 986a4a2ea..69af0597f 100644
--- a/src/libserver/rspamd_control.c
+++ b/src/libserver/rspamd_control.c
@@ -922,6 +922,7 @@ rspamd_srv_handler(EV_P_ ev_io *w, int revents)
}
break;
case RSPAMD_SRV_HYPERSCAN_LOADED:
+#ifdef WITH_HYPERSCAN
/* Load RE cache to provide it for new forks */
if (rspamd_re_cache_is_hs_loaded(rspamd_main->cfg->re_cache) != RSPAMD_HYPERSCAN_LOADED_FULL ||
cmd.cmd.hs_loaded.forced) {
@@ -932,7 +933,9 @@ rspamd_srv_handler(EV_P_ ev_io *w, int revents)
}
/* After getting this notice, we can clean up old hyperscan files */
+
rspamd_hyperscan_notice_loaded();
+
msg_info_main("received hyperscan cache loaded from %s",
cmd.cmd.hs_loaded.cache_dir);
@@ -945,6 +948,7 @@ rspamd_srv_handler(EV_P_ ev_io *w, int revents)
wcmd.cmd.hs_loaded.forced = cmd.cmd.hs_loaded.forced;
rspamd_control_broadcast_cmd(rspamd_main, &wcmd, rfd,
rspamd_control_ignore_io_handler, NULL, worker->pid);
+#endif
break;
case RSPAMD_SRV_MONITORED_CHANGE:
/* Broadcast command to all workers */

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Fri Dec 15 16:59:47 UTC 2023 - Marcus Rueckert <mrueckert@suse.de>
- Update to 3.7.5
- Test updates for rspamd-3.7 branch by @fatalbanana in #4708
- Fix rspamadm lua logger in rspamd-3.7 (#/4727) by @fatalbanana
in #4729
- Some picks for rspamd-3.7 by @fatalbanana in #4731
- rspamd-3.7: fix systemd logging by @fatalbanana in #4734
- rspamd-3.7: [Fix] dkim_signing: siging_table: lowercase before
lookup by @fatalbanana in #4737
- drop pwatches included in update:
rspamd-d907a95.patch
- refreshed patches to apply cleanly again:
fix_missing_return.patch
rspamd-conf.patch
- While the fix for the logging bug was accepted into master. The
3.7.5 release uses a different solution apparently. Update patch
fix_stack_smash.patch.
https://github.com/rspamd/rspamd/pull/4732#issuecomment-1858255236
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 6 15:28:07 UTC 2023 - Adam Majer <adam.majer@suse.de> Wed Dec 6 15:28:07 UTC 2023 - Adam Majer <adam.majer@suse.de>

View File

@ -56,7 +56,7 @@
%endif %endif
Name: rspamd Name: rspamd
Version: 3.7.4 Version: 3.7.5
Release: 0 Release: 0
Summary: Spam filtering system Summary: Spam filtering system
License: Apache-2.0 License: Apache-2.0
@ -67,8 +67,7 @@ Source1: usr.bin.rspamd
Patch0: rspamd-conf.patch Patch0: rspamd-conf.patch
Patch1: rspamd-after-redis-target.patch Patch1: rspamd-after-redis-target.patch
Patch2: fix_missing_return.patch Patch2: fix_missing_return.patch
Patch3: rspamd-d907a95.patch Patch3: fix_stack_smash.patch
Patch4: fix_stack_smash.patch
%if !0%{?is_opensuse} %if !0%{?is_opensuse}
# because 80-check-malware-scan-clamav triggered in SLE-15-SP2 # because 80-check-malware-scan-clamav triggered in SLE-15-SP2
BuildRequires: -post-build-checks-malwarescan BuildRequires: -post-build-checks-malwarescan