Date: Thu, 27 Mar 2003 22:57:44 +0900 (JST) From: SUGIMURA Takashi =?iso-2022-jp?B?GyRCP3lCPBsoQiAbJEI1LjtOGyhC?= <sugimura@jp.FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/50346: [PATCH] sysutils/syslog-ng, fixed missing template() feature Message-ID: <20030327.225744.521602681.sugimura@jp.FreeBSD.org> Resent-Message-ID: <200303271400.h2RE0UHf085452@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 50346 >Category: ports >Synopsis: [PATCH] sysutils/syslog-ng, fixed missing template() feature >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 27 06:00:29 PST 2003 >Closed-Date: >Last-Modified: >Originator: SUGIMURA Takashi >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: FreeBSD kei.yasudakei.info 5.0-CURRENT FreeBSD 5.0-CURRENT #9: Tue Mar 4 22:57:04 JST 2003 root@kei.yasudakei.info:/usr/obj/usr/src/sys/KEI i386 >Description: When setting template() option on file() on syslog-ng.conf, but it fails to be parsed. Since the original source code has a compilation error, the maintainer cut this feature for success to compile, but I've found this original problem of the code. >How-To-Repeat: For example, destination template_sample { file("/var/log/template_log" template("$MSG\n")); }; This description is right for this configuration file, but after patched by ports it makes to be a bad description. >Fix: Please apply the following patch. diff -aurN syslog-ng.orig/files/patch-cfg-grammer.h syslog-ng/files/patch-cfg-grammer.h --- syslog-ng.orig/files/patch-cfg-grammer.h Thu Jan 1 09:00:00 1970 +++ syslog-ng/files/patch-cfg-grammer.h Thu Mar 27 22:43:16 2003 @@ -0,0 +1,11 @@ +--- src/cfg-grammar.h.orig Thu Mar 27 22:41:34 2003 ++++ src/cfg-grammar.h Thu Mar 27 22:41:47 2003 +@@ -53,7 +53,7 @@ + # define KW_DIR_OWNER 296 + # define KW_DIR_GROUP 297 + # define KW_DIR_PERM 298 +-# define KW_TEMPLATE 299 ++# define KW_FILE_TEMPLATE 299 + # define KW_TEMPLATE_ESCAPE 300 + # define KW_OWNER 301 + # define KW_GROUP 302 diff -aurN syslog-ng.orig/files/patch-cfg-lex.l syslog-ng/files/patch-cfg-lex.l --- syslog-ng.orig/files/patch-cfg-lex.l Fri Mar 7 00:00:05 2003 +++ syslog-ng/files/patch-cfg-lex.l Thu Jan 1 09:00:00 1970 @@ -1,11 +0,0 @@ ---- src/cfg-lex.l.orig Wed Mar 5 13:14:04 2003 -+++ src/cfg-lex.l Wed Mar 5 13:14:13 2003 -@@ -80,7 +80,7 @@ - { "dir_owner", KW_DIR_OWNER }, - { "dir_group", KW_DIR_GROUP }, - { "dir_perm", KW_DIR_PERM }, -- { "template", KW_FILE_TEMPLATE }, -+/* { "template", KW_FILE_TEMPLATE },*/ - { "template-escape", KW_TEMPLATE_ESCAPE }, - { "template_escape", KW_TEMPLATE_ESCAPE }, - { "keep-alive", KW_KEEP_ALIVE }, >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030327.225744.521602681.sugimura>