1 |
commit: dec77c2cdea324c5a0c50cf7a29afbd81b2aad73 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 16 16:24:24 2019 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 16 16:31:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dec77c2c |
7 |
|
8 |
net-mail/amavis-logwatch: new revision with another custom patch. |
9 |
|
10 |
This -r5 adds handle-clamd-select-failed.patch, which allows the |
11 |
program to match those types of lines. |
12 |
|
13 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
14 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
15 |
|
16 |
...r4.ebuild => amavis-logwatch-1.51.03-r5.ebuild} | 3 +- |
17 |
.../files/handle-clamd-select-failed.patch | 38 ++++++++++++++++++++++ |
18 |
2 files changed, 40 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r4.ebuild b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r5.ebuild |
21 |
similarity index 94% |
22 |
rename from net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r4.ebuild |
23 |
rename to net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r5.ebuild |
24 |
index db425aabba8..c7c607e6427 100644 |
25 |
--- a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r4.ebuild |
26 |
+++ b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r5.ebuild |
27 |
@@ -1,4 +1,4 @@ |
28 |
-# Copyright 1999-2018 Gentoo Authors |
29 |
+# Copyright 1999-2019 Gentoo Authors |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
|
32 |
EAPI=7 |
33 |
@@ -24,6 +24,7 @@ PATCHES=( |
34 |
"${FILESDIR}/no-pid_file-configured.patch" |
35 |
"${FILESDIR}/will-bind-to-lines.patch" |
36 |
"${FILESDIR}/SANITIZED-NULL-bytes-messages.patch" |
37 |
+ "${FILESDIR}/handle-clamd-select-failed.patch" |
38 |
) |
39 |
|
40 |
src_prepare() { |
41 |
|
42 |
diff --git a/net-mail/amavis-logwatch/files/handle-clamd-select-failed.patch b/net-mail/amavis-logwatch/files/handle-clamd-select-failed.patch |
43 |
new file mode 100644 |
44 |
index 00000000000..83dad161e18 |
45 |
--- /dev/null |
46 |
+++ b/net-mail/amavis-logwatch/files/handle-clamd-select-failed.patch |
47 |
@@ -0,0 +1,38 @@ |
48 |
+From 869fa9d8b2113f50c3a97ef9f4a1f95171702be4 Mon Sep 17 00:00:00 2001 |
49 |
+From: Michael Orlitzky <michael@××××××××.com> |
50 |
+Date: Wed, 13 Feb 2019 11:25:33 -0500 |
51 |
+Subject: [PATCH 1/1] Catch "Select failed: Interrupted system call" entries |
52 |
+ from clamd. |
53 |
+ |
54 |
+When a select() call in clamd is interrupted, amavis logs the |
55 |
+following warning: |
56 |
+ |
57 |
+ ClamAV-clamd: Select failed: Interrupted system call at /usr/sbin/amavisd |
58 |
+ line 8472, <GEN16> line 296., retrying (1) |
59 |
+ |
60 |
+These are harmless in and of themselves, but we would like to classify |
61 |
+them as warnings. Currently they are unmatched. This commit adds a |
62 |
+pattern for them, moving them from the "Unmatched Entries" heading to |
63 |
+"Miscellaneous warnings" instead. Afterwards, the report looks like, |
64 |
+ |
65 |
+ 24 Miscellaneous warnings -------------------------------- |
66 |
+ 2 ClamAV-clamd: Select failed: Interrupted system call |
67 |
+--- |
68 |
+ amavis-logwatch | 1 + |
69 |
+ 1 file changed, 1 insertion(+) |
70 |
+ |
71 |
+diff --git a/amavis-logwatch b/amavis-logwatch |
72 |
+index 044c94d..4c9b59f 100644 |
73 |
+--- a/amavis-logwatch |
74 |
++++ b/amavis-logwatch |
75 |
+@@ -2817,6 +2817,7 @@ while (<>) { |
76 |
+ ($p1 =~ /^TROUBLE/) or |
77 |
+ ($p1 =~ /Can't (?:connect to UNIX|send to) socket/) or |
78 |
+ ($p1 =~ /: Empty result from /) or |
79 |
++ ($p1 =~ /: Select failed: Interrupted system call/) or |
80 |
+ ($p1 =~ /: Error reading from socket: Connection reset by peer/) or |
81 |
+ ($p1 =~ /open\(.*\): Permission denied/) or |
82 |
+ ($p1 =~ /^_?WARN: /) or |
83 |
+-- |
84 |
+2.19.2 |
85 |
+ |