Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2013 13:49:07 GMT
From:      Bartosz Kupidura <zynzel@spof.pl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178533: [PATCH] nginx+3rd syslog support
Message-ID:  <201305121349.r4CDn7Sf035014@oldred.FreeBSD.org>
Resent-Message-ID: <201305121350.r4CDo0aT004105@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178533
>Category:       ports
>Synopsis:       [PATCH] nginx+3rd syslog support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 12 13:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Bartosz Kupidura
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD spof.pl 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Fri Jan 18 22:07:25 CET 2013     root@spof.pl:/usr/obj/usr/src/sys/SPOF  amd64
>Description:
After enabling SYSLOG_SUPPORT nginx isn't compiled with syslog.

extra-patch-syslog_support use "NGX_ENABLE_SYSLOG" which is not defined.

# strings work/nginx-1.4.1/objs/nginx|grep syslog
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_stub_status_module --with-pcre --with-syslog --with-syslog-facility=LOG_DAEMON --with-http_ssl_module

After changing configure:
# strings work/nginx-1.4.1/objs/nginx | grep syslog
syslog
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_stub_status_module --with-pcre --with-syslog --with-syslog-facility=LOG_DAEMON --with-http_ssl_module
invalid syslog priority "%V"
invalid syslog facility "%V"
syslog
You must set the syslog directive and enable it first.



>How-To-Repeat:
Build www/nginx with syslog support.
>Fix:
diff -u /usr/ports/www/nginx/work/nginx-1.4.1/configure /root/configure
--- /usr/ports/www/nginx/work/nginx-1.4.1/configure     2013-05-06 12:26:49.000000000 +0200
+++ /root/configure     2013-05-12 15:41:54.087373650 +0200
@@ -107,5 +107,6 @@

 have=NGX_USER value="\"$NGX_USER\"" . auto/define
 have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
+have=NGX_ENABLE_SYSLOG value="1" . auto/define

 . auto/summary

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305121349.r4CDn7Sf035014>