From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 12 03:30:16 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 904A41065670 for ; Tue, 12 Apr 2011 03:30:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5CFD68FC16 for ; Tue, 12 Apr 2011 03:30:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3C3UGwZ020881 for ; Tue, 12 Apr 2011 03:30:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3C3UGDq020878; Tue, 12 Apr 2011 03:30:16 GMT (envelope-from gnats) Resent-Date: Tue, 12 Apr 2011 03:30:16 GMT Resent-Message-Id: <201104120330.p3C3UGDq020878@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, Brandon Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3592A106566C for ; Tue, 12 Apr 2011 03:23:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 084498FC14 for ; Tue, 12 Apr 2011 03:23:00 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p3C3Mx8n045154 for ; Tue, 12 Apr 2011 03:22:59 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p3C3Mx7j045153; Tue, 12 Apr 2011 03:22:59 GMT (envelope-from nobody) Message-Id: <201104120322.p3C3Mx7j045153@red.freebsd.org> Date: Tue, 12 Apr 2011 03:22:59 GMT From: Brandon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/156341: sguil-sensor port relies on barnyard2, however barnyard2 is missing option "--with-tcl" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2011 03:30:16 -0000 >Number: 156341 >Category: ports >Synopsis: sguil-sensor port relies on barnyard2, however barnyard2 is missing option "--with-tcl" >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: Tue Apr 12 03:30:15 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Brandon >Release: 8.1-RELEASE >Organization: >Environment: FreeBSD freebsdx86.localdomain 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The port sguil-sensor-0.7.0_3 depends on barnyard2-1.9_2. However the barnyard2 port does not seem to include the compiler option --with-tcl=DIR which is required for the sguil output plugin. When the "output squil" plugin is enabled barnyard2 fails to start with this message: "Apr 11 19:16:54 freebsdx86 barnyard2[6647]: --== Initializing Barnyard2 ==-- Apr 11 19:16:54 freebsdx86 barnyard2[6647]: Initializing Input Plugins! Apr 11 19:16:54 freebsdx86 barnyard2[6647]: Initializing Output Plugins! Apr 11 19:16:54 freebsdx86 barnyard2[6647]: Parsing config file "/usr/local/etc/barnyard2.conf" Apr 11 19:16:54 freebsdx86 barnyard2[6647]: Log directory = /var/log/barnyard2 Apr 11 19:16:54 freebsdx86 barnyard2[6647]: sguil: Tcl support is not compiled into this build of barnyard2 Apr 11 19:16:54 freebsdx86 barnyard2[6647]: FATAL ERROR: If this build of barnyard was obtained as a binary distribution (e.g., rpm, or Windows), then check for alternate builds that contains the necessary Tcl support. If this build of barnyard was compiled by you, then re-run the ./configure script using the '--with-tcl' switch to specify the location of the tclConfig.sh for your system. Apr 11 19:16:54 freebsdx86 joe: /usr/local/etc/rc.d/barnyard2: WARNING: failed to start barnyard2 " >How-To-Repeat: Add the line "output: sguil" to /usr/local/etc/barnyard2.conf, and start barnyard2. >Fix: Add "--with-tcl=DIR" option to barnyard2 port Patch attached with submission follows: --- /usr/ports/security/barnyard2/Makefile 2011-04-11 20:00:04.000000000 -0600 +++ /usr/ports/security/barnyard2/Makefile 2011-04-11 19:58:49.000000000 -0600 @@ -17,7 +17,8 @@ OPTIONS= MYSQL "Enable MySQL support" on \ POSTGRESQL "Enable PostgreSQL support" off \ SNORT "Depend on security/snort" off \ - SURICATA "Depend on security/suricata" off + SURICATA "Depend on security/suricata" off \ + TCL "Enable TCL support" off USE_RC_SUBR= barnyard2.sh GNU_CONFIGURE= yes @@ -50,6 +51,12 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/suricata:${PORTSDIR}/security/suricata .endif +.if defined(WITH_TCL) +USE_TCL= yes +CONFIGURE_ARGS+= --with-tcl=${PREFIX}/lib/tcl8.4 +LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84 +.endif + pre-install: ${CHMOD} 744 ${WRKSRC}/install-sh >Release-Note: >Audit-Trail: >Unformatted: