Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2003 22:12:52 -0500 (EST)
From:      Ken Stailey <kstailey@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/59445: snort bug: "make WITH_MYSQL=yes" appears hosed
Message-ID:  <200311190312.hAJ3Cqwb028271@elbereth.wks.tfn.com>
Resent-Message-ID: <200311190320.hAJ3KKbs050378@freefall.freebsd.org>

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

>Number:         59445
>Category:       ports
>Synopsis:       snort bug: "make WITH_MYSQL=yes" appears hosed
>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 Nov 18 19:20:20 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ken Stailey
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
self
>Environment:
System: FreeBSD elbereth 4.9-STABLE FreeBSD 4.9-STABLE #7: Wed Nov 12 21:29:32 EST 2003 kstailey@elbereth:/usr/obj/usr/src/sys/ELBERETH i386


	
>Description:

The snort Makefile sets $CONFIGURE_ARGS with default values and later
adds contradictory stuff to $CONFIGURE_ARGS if $WITH_MYSQL is set.

This section in the Makefile

.if defined(WITH_MYSQL)
USE_MYSQL=      yes
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
.endif

Will not erase the effects of this earlier line:

CONFIGURE_ARGS= --with-mysql=no --with-odbc=no --with-postgresql=no


>How-To-Repeat:
run:
# portupgrade -f -M WITH_MYSQL=yes snort

and observe that the result does not have mysql support.

>Fix:

elbereth# cvs diff -u Makefile 
Password:
Index: Makefile
===================================================================
RCS file: /u1/cvsup/FreeBSD-cvs/root/ports/ports/security/snort/Makefile,v
retrieving revision 1.39
diff -u -r1.39 Makefile
--- Makefile    5 Oct 2003 11:52:53 -0000       1.39
+++ Makefile    19 Nov 2003 03:12:08 -0000
@@ -14,7 +14,7 @@
 COMMENT=       Lightweight network intrusion detection system
 
 GNU_CONFIGURE= yes
-CONFIGURE_ARGS=        --with-mysql=no --with-odbc=no --with-postgresql=no
+CONFIGURE_ARGS=        --with-odbc=no --with-postgresql=no
 MAN8=          snort.8
 
 .if defined(WITH_FLEXRESP)
@@ -27,6 +27,8 @@
 .if defined(WITH_MYSQL)
 USE_MYSQL=     yes
 CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=--with-mysql=no 
 .endif
 
 .if defined(WITH_ODBC)

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



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