ports/59445: snort bug: "make WITH_MYSQL=yes" appears hosed
Ken Stailey
kstailey at yahoo.com
Wed Nov 19 03:20:22 UTC 2003
>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 at 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:
More information about the freebsd-ports-bugs
mailing list