GNU bug report logs - #30727
[PATCH] gnu: inetutils: Drop "vmunix: " prefix for messages read from /dev/kmsg in syslogd.

Previous Next

Package: guix-patches;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Tue, 6 Mar 2018 08:30:02 UTC

Severity: normal

Tags: patch

Done: Danny Milosavljevic <dannym <at> scratchpost.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30727 in the body.
You can then email your comments to 30727 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#30727; Package guix-patches. (Tue, 06 Mar 2018 08:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 06 Mar 2018 08:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: guix-patches <at> gnu.org
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>
Subject: [PATCH] gnu: inetutils: Drop "vmunix: " prefix for messages read from
 /dev/kmsg in syslogd.
Date: Tue,  6 Mar 2018 09:27:15 +0100
* gnu/packages/patches/inetutils-syslogd-disable-vmunix.patch: New file.
* gnu/local.mk: Add it.
* gnu/packages/admin.scm (inetutils)[source]: Add it.
---
 gnu/local.mk                                                |  1 +
 gnu/packages/admin.scm                                      |  7 +++++--
 gnu/packages/patches/inetutils-syslogd-disable-vmunix.patch | 12 ++++++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/inetutils-syslogd-disable-vmunix.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index d091a89b8..f231900e4 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -781,6 +781,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/icecat-use-system-harfbuzz.patch		\
   %D%/packages/patches/id3lib-CVE-2007-4460.patch			\
   %D%/packages/patches/ilmbase-fix-tests.patch			\
+  %D%/packages/patches/inetutils-syslogd-disable.vmunix.patch	\
   %D%/packages/patches/intltool-perl-compatibility.patch	\
   %D%/packages/patches/isl-0.11.1-aarch64-support.patch	\
   %D%/packages/patches/jacal-fix-texinfo.patch			\
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 554c1679e..805faa638 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -326,7 +326,9 @@ re-executing them as necessary.")
                                  version ".tar.gz"))
              (sha256
               (base32
-               "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
+               "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))
+             (patches
+              (search-patches "inetutils-syslogd-disable-vmunix.patch"))))
     (build-system gnu-build-system)
     (arguments
      `(#:configure-flags '("--localstatedir=/var"
@@ -341,7 +343,8 @@ re-executing them as necessary.")
        #:parallel-tests? #f))
     (inputs `(("ncurses" ,ncurses)
               ("readline" ,readline)))        ;for 'ftp'
-    (native-inputs `(("netstat" ,net-tools))) ;for tests
+    (native-inputs `(("help2man" ,help2man)
+                     ("netstat" ,net-tools))) ;for tests
     (home-page "https://www.gnu.org/software/inetutils/")
     (synopsis "Basic networking utilities")
     (description
diff --git a/gnu/packages/patches/inetutils-syslogd-disable-vmunix.patch b/gnu/packages/patches/inetutils-syslogd-disable-vmunix.patch
new file mode 100644
index 000000000..e21f87a05
--- /dev/null
+++ b/gnu/packages/patches/inetutils-syslogd-disable-vmunix.patch
@@ -0,0 +1,12 @@
+diff -ru o/inetutils-1.9.4/src/syslogd.c inetutils-1.9.4/src/syslogd.c
+--- o/inetutils-1.9.4/src/syslogd.c	2015-05-12 14:13:25.000000000 +0200
++++ inetutils-1.9.4/src/syslogd.c	2018-03-06 09:19:41.394046776 +0100
+@@ -1108,7 +1108,7 @@
+   char *lp, *q, line[MAXLINE + 1];
+   const char *p;
+ 
+-  strcpy (line, "vmunix: ");
++  strcpy (line, "");
+   lp = line + strlen (line);
+   for (p = msg; *p != '\0';)
+     {




Information forwarded to guix-patches <at> gnu.org:
bug#30727; Package guix-patches. (Wed, 07 Mar 2018 12:42:01 GMT) Full text and rfc822 format available.

Message #8 received at 30727 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 30727 <at> debbugs.gnu.org
Subject: Re: [bug#30727] [PATCH] gnu: inetutils: Drop "vmunix: " prefix for
 messages read from /dev/kmsg in syslogd.
Date: Wed, 07 Mar 2018 13:40:55 +0100
Hello!

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> +--- o/inetutils-1.9.4/src/syslogd.c	2015-05-12 14:13:25.000000000 +0200
> ++++ inetutils-1.9.4/src/syslogd.c	2018-03-06 09:19:41.394046776 +0100
> +@@ -1108,7 +1108,7 @@
> +   char *lp, *q, line[MAXLINE + 1];
> +   const char *p;
> + 
> +-  strcpy (line, "vmunix: ");
> ++  strcpy (line, "");

I’d rather not do that.  :-)

I think it’s good that syslogd distinguishes between “real” syslog
messages and messages coming from the kernel.  It’s also useful if one
is to filter messages.

WDYT?

Ludo’.




Reply sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
You have taken responsibility. (Wed, 07 Mar 2018 19:11:01 GMT) Full text and rfc822 format available.

Notification sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
bug acknowledged by developer. (Wed, 07 Mar 2018 19:11:02 GMT) Full text and rfc822 format available.

Message #13 received at 30727-done <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 30727-done <at> debbugs.gnu.org
Subject: Re: [bug#30727] [PATCH] gnu: inetutils: Drop "vmunix: " prefix for
 messages read from /dev/kmsg in syslogd.
Date: Wed, 7 Mar 2018 20:10:21 +0100
[Message part 1 (text/plain, inline)]
Hi Ludo,

On Wed, 07 Mar 2018 13:40:55 +0100
ludo <at> gnu.org (Ludovic Courtès) wrote:

> I’d rather not do that.  :-)
> 
> I think it’s good that syslogd distinguishes between “real” syslog
> messages and messages coming from the kernel.  It’s also useful if one
> is to filter messages.

Yeah, I wasn't 100% serious ;-)

It would be possible to do the patch - but I think there are vastly better
syslog daemons that already do all those things correctly (and also
parse the kmsg timestamps) (syslog-ng etc).

But I figured out how to do it - and I don't actually want to do it on
my system, so now we have an archived version.

I'd just go the UNIX way and ignore the problem and hope it goes away ;-)

We can already filter via vmunix.*shepherd as-is, that should work anyhow.
[Message part 2 (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Apr 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.