ports/91943: [patch] misc/tinderbox shouldn't allow no database to be selected

Vasil Dimov vd at datamax.bg
Wed Jan 18 09:50:10 UTC 2006


>Number:         91943
>Category:       ports
>Synopsis:       [patch] misc/tinderbox shouldn't allow no database to be selected
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 18 09:50:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Vasil Dimov
>Release:        FreeBSD 6.0-STABLE amd64
>Organization:
DataMax
>Environment:

>Description:

As tinderbox is useless without a database the port should force (at
least) one to be selected in the `make config' step.

>How-To-Repeat:

>Fix:

--- tinderbox_db.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/local/cvsupdroot/ports/misc/tinderbox/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile	3 Jan 2006 00:00:47 -0000	1.5
+++ Makefile	18 Jan 2006 09:34:47 -0000
@@ -29,6 +29,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if !defined(WITH_PGSQL) && !defined(WITH_MYSQL)
+BROKEN=	"Tinderbox is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL"
+.endif
+
 .if defined(WITH_PGSQL)
 USE_PGSQL=	yes
 USE_PHP+=	pgsql
--- tinderbox_db.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list