Bug 178533 - [PATCH] www/nginx: nginx+3rd syslog support
Summary: [PATCH] www/nginx: nginx+3rd syslog support
Status: Closed DUPLICATE of bug 189391
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-12 14:50 UTC by Bartosz Kupidura
Modified: 2015-06-15 09:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bartosz Kupidura 2013-05-12 14:49:07 UTC
>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 --htt p-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 --htt p-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:
_______________________________________________
freebsd-ports-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"
Comment 1 Bartosz Kupidura 2013-05-12 14:50:00 UTC
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.

Fix: 

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--VY1PUyY34EpvOWWt8UnN7lnrp7M5dRZwP5OTN93p8jcqCVGb
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

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 @@
How-To-Repeat: Build www/nginx with syslog support.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-13 00:33:01 UTC
Responsible Changed
From-To: freebsd-ports-bugs->osa

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 geoffroy desvernay 2013-05-31 09:00:26 UTC
May be related: https://github.com/yaoweibin/nginx_syslog_patch/issues/9

I do experience the same symptoms:
in nginx.conf:
syslog local6 nginx;

=> nginx: [emerg] unknown directive "syslog" in
/usr/local/etc/nginx/nginx.conf

Hope this helps...
-- 
*geoffroy desvernay*
C.R.I - Administration systèmes et réseaux
Ecole Centrale de Marseille

Comment 4 geoffroy desvernay 2013-05-31 09:56:11 UTC
This is a multi-part message in MIME format.
Comment 5 geoffroy desvernay 2014-05-06 13:14:59 UTC
This pr could be closed, deprecated by ports/189391

(ports/183273 may be closed too)
-- 
*geoffroy desvernay*
C.R.I - Administration systèmes et réseaux
Ecole Centrale de Marseille

Comment 6 Sergey A. Osokin freebsd_committer freebsd_triage 2015-06-15 09:34:03 UTC
Deprecated by ports/189391

*** This bug has been marked as a duplicate of bug 189391 ***