Skip site navigation (1)Skip section navigation (2)
Date:      24 Jul 2004 18:21:11 -0000
From:      Sascha Luck <sascha@c4inet.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/69540: clashing configure options in ports/nagios
Message-ID:  <20040724182111.11657.qmail@rincewind.c4inet.net>
Resent-Message-ID: <200407241830.i6OIUUX8034370@freefall.freebsd.org>

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

>Number:         69540
>Category:       ports
>Synopsis:       clashing configure options in ports/nagios
>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:   Sat Jul 24 18:30:29 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Sascha Luck
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
C4I Networks Ltd.
>Environment:
System: FreeBSD devlab.eirconnect.net 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Sat Jul 17 03:18:02 IST 2004     sascha@devlab.eirconnect.net:/usr/obj/usr/src/sys/DEVLAB  i386

>Description:

ports/nagios can be built with MySQL support (WITH_MYSQL). If this option is configured, nagios will be built with both: --mysql-xdata and --with-template-extinfo as the latter is selected by default. These two options are mutually exclusive, as the Nagios CGIs are then built with both database and template config file support for extended data. This will result in neither option working.

>How-To-Repeat:

Build ports/nagios with WITH_MYSQL enabled. Configure extended data for monitoring hosts. Use either the database or the template .cfg file. Neither will work.

>Fix:

*** Makefile    Mon Feb 23 04:42:03 2004
--- Makefile.mysql-xdata        Sat Jul 24 19:08:52 2004
***************
*** 45,49 ****
                --with-nagios-grp=${NAGIOSGROUP} \
                --with-template-objects \
-               --with-template-extinfo \
                --sbindir=${PREFIX}/share/nagios/cgi-bin \
                --libexecdir=${PREFIX}/libexec/nagios \
--- 45,48 ----
***************
*** 52,55 ****
--- 51,58 ----
                --localstatedir=${NAGIOSDIR} \
                --prefix=${PREFIX}
+
+ .if !defined(WITH_MYSQL)
+ CONFIGURE_ARGS+= --with-template-extinfo
+ .endif

  .if defined(WITH_GD1)


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



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