Subject: pkg/37255: /usr/pkgsrc/databases/php-dba needs options framework
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <keith+pkgsrc@lib.uchicago.edu>
List: pkgsrc-bugs
Date: 10/31/2007 22:15:01
>Number:         37255
>Category:       pkg
>Synopsis:       /usr/pkgsrc/databases/php-dba needs options framework
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 31 22:15:01 +0000 2007
>Originator:     Keith Waclena
>Release:        pkgsrc-2007Q3
>Organization:
University of Chicago Library DLDC
>Environment:
n.a. (pkgsrc issue on various OS's)
>Description:
databases/php-dba has many options that can only be set by editing the
Makefile.  Seems like it would be a candidate for the options framework.  Example:

CONFIGURE_ARGS+=        --without-cdb
CONFIGURE_ARGS+=        --without-db2
CONFIGURE_ARGS+=        --without-db3
CONFIGURE_ARGS+=        --without-dbm

.if exists(/usr/include/ndbm.h)
CONFIGURE_ARGS+=        --without-gdbm
CONFIGURE_ARGS+=        --with-ndbm=/usr
.else
CONFIGURE_ARGS+=        --with-gdbm=${BUILDLINK_PREFIX.gdbm}
CONFIGURE_ARGS+=        --without-ndbm
.include "../../databases/gdbm/buildlink3.mk"
.endif

The gdbm vs ndbm assumption seems not useful, since gdbm is much more
capable than ndbm; I want it even though my machine has ndbm.

Also, I think cdb at least should always be enabled since it's an
internal-to-php-dba implementation with no dependencies.

It would be great to be able to choose desired backends with the
options framework.
>How-To-Repeat:
$ pwd
/usr/pkgsrc/databases/php-dba
$ make show-options
This package does not use the options framework.
$

>Fix: