NetBSD Problem Report #37255

From martin@duskware.de  Wed Oct 31 22:10:41 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1844363B89A
	for <gnats-bugs@gnats.netbsd.org>; Wed, 31 Oct 2007 22:10:41 +0000 (UTC)
Message-Id: <20071031213701.EB77C63B89A@narn.NetBSD.org>
Date: Wed, 31 Oct 2007 21:37:01 +0000 (UTC)
From: keith+pkgsrc@lib.uchicago.edu
Reply-To: keith+pkgsrc@lib.uchicago.edu
To: netbsd-bugs-owner@NetBSD.org
Subject: /usr/pkgsrc/databases/php-dba needs options framework
X-Send-Pr-Version: www-1.0

>Number:         37255
>Category:       pkg
>Synopsis:       /usr/pkgsrc/databases/php-dba needs options framework
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obache
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 31 22:15:01 +0000 2007
>Closed-Date:    Thu Dec 27 22:18:22 +0000 2007
>Last-Modified:  Thu Dec 27 22:18:22 +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:

>Release-Note:

>Audit-Trail:
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/37255 CVS commit: pkgsrc/databases/php-dba
Date: Fri, 23 Nov 2007 12:34:29 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Fri Nov 23 12:34:29 UTC 2007

 Modified Files:
 	pkgsrc/databases/php-dba: Makefile
 Added Files:
 	pkgsrc/databases/php-dba: options.mk

 Log Message:
 Enable or optionify some handlers, should fixes PR 37255.

 Enable cdb, inifile.
 Enable ndbm if exists.
 Optionify gdbm, enable default if ndbm doesn't exists.
 Optionify bdb.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.9 -r1.10 pkgsrc/databases/php-dba/Makefile
 cvs rdiff -r0 -r1.1 pkgsrc/databases/php-dba/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: pkg-manager->obache
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Sat, 24 Nov 2007 03:56:53 +0000
Responsible-Changed-Why:
I've commited the fix.


State-Changed-From-To: open->analyzed
State-Changed-By: obache@netbsd.org
State-Changed-When: Sat, 24 Nov 2007 03:56:53 +0000
State-Changed-Why:
Should fixed in HEAD.


State-Changed-From-To: analyzed->closed
State-Changed-By: jdolecek@netbsd.org
State-Changed-When: Thu, 27 Dec 2007 22:18:22 +0000
State-Changed-Why:
options added.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.