Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801304 - sys-apps/logwatch: Please fix cronie unmatched CMDEND messages
Summary: sys-apps/logwatch: Please fix cronie unmatched CMDEND messages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-07-09 10:39 UTC by ixuz
Modified: 2021-07-23 17:38 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ixuz 2021-07-09 10:39:14 UTC
Since upgrading from sys-process/cronie-1.5.5-r1 to sys-process/cronie-1.5.7 Cronie produces a new log entry called CMDEND. Logwatch is not able to suppress this type of messages and is spamming the report with dozens of unmatched entry messages.

Please fix this:

--- /usr/share/logwatch/scripts/services/cron	2021-05-27 11:46:35.956154356 +0200
+++ /usr/share/logwatch/scripts/services/cron	2021-07-09 12:26:48.012291029 +0200
@@ -65,7 +65,7 @@
          $ExecutedCommand{$PID} = {command=>$ThisLine, user=>$User};
       } elsif ($ThisLine =~ s/^CMD FINISH \((.+)\)\s*$/$1/) {
          $Runs->{$User}->{$ThisLine}++;
-      } elsif ($ThisLine =~ s/^(END|CMD START) \((.+)\)\s*$/$1/) {
+      } elsif ($ThisLine =~ s/^(END|CMD START|CMDEND) \((.+)\)\s*$/$1/) {
          #Ignore for now, NetBSD users could get tricky with
          #How many commands started vs finished -mgt
       } elsif ($ThisLine =~ /ORPHAN \(no passwd entry\)/) {


Reference:
https://bugzilla.redhat.com/show_bug.cgi?id=1941630
Comment 1 Tobias Sager 2021-07-13 09:15:24 UTC
The Fedora patch is slightly different: https://src.fedoraproject.org/rpms/logwatch/blob/0ce995fb69af39c55a6b41797535b01d49eaf021/f/cron.patch
Comment 2 Larry the Git Cow gentoo-dev 2021-07-23 17:38:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=761b2543dcb6023cbdabb7c45c17e2fb96baa3f7

commit 761b2543dcb6023cbdabb7c45c17e2fb96baa3f7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-07-23 17:37:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-07-23 17:38:48 +0000

    sys-apps/logwatch: add 7.5.6
    
    Closes: https://bugs.gentoo.org/801304
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/logwatch/Manifest              |  1 +
 sys-apps/logwatch/logwatch-7.5.6.ebuild | 95 +++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)