From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 12 13:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0EB022F5 for ; Sun, 12 May 2013 13:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E8A9DCE5 for ; Sun, 12 May 2013 13:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4CDo0QY004106 for ; Sun, 12 May 2013 13:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4CDo0aT004105; Sun, 12 May 2013 13:50:00 GMT (envelope-from gnats) Resent-Date: Sun, 12 May 2013 13:50:00 GMT Resent-Message-Id: <201305121350.r4CDo0aT004105@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bartosz Kupidura Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 81AFF2DD for ; Sun, 12 May 2013 13:49:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 5B068CD6 for ; Sun, 12 May 2013 13:49:08 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4CDn7oj035018 for ; Sun, 12 May 2013 13:49:07 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4CDn7Sf035014; Sun, 12 May 2013 13:49:07 GMT (envelope-from nobody) Message-Id: <201305121349.r4CDn7Sf035014@oldred.FreeBSD.org> Date: Sun, 12 May 2013 13:49:07 GMT From: Bartosz Kupidura To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/178533: [PATCH] nginx+3rd syslog support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 13:50:01 -0000 >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: