From owner-freebsd-ports@FreeBSD.ORG Tue Sep 7 23:46:14 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE82916A4D4 for ; Tue, 7 Sep 2004 23:46:14 +0000 (GMT) Received: from basement.kutulu.org (211.215.33.65.cfl.rr.com [65.33.215.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7930B43D48 for ; Tue, 7 Sep 2004 23:46:14 +0000 (GMT) (envelope-from kutulu@kutulu.org) Received: from [127.0.0.1] (platypus.jungle [192.168.69.2]) by basement.kutulu.org (Postfix) with ESMTP id 48EC22F; Tue, 7 Sep 2004 19:46:13 -0400 (EDT) Message-ID: <413E4849.7060200@kutulu.org> Date: Tue, 07 Sep 2004 19:46:17 -0400 From: Mike Edenfield Organization: KutuluWare Software Services User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ports@freebsd.org References: <20040906143153.N44103@atlantis.atlantis.dp.ua> <20040906125305.7f577034@vixen42.24-119-122-191.cpe.cableone.net> <413CA557.5090205@makeworld.com> <200409070649.11417.michaelnottebrock@gmx.net> In-Reply-To: <200409070649.11417.michaelnottebrock@gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: portsdb and ruby bug on 4-STABLE X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 23:46:15 -0000 Michael Nottebrock wrote: > A better workaround is this: > > 1.) Install the databases/ruby-bdb port. > > 2.) Set an environment variable PORTS_DBDRIVER to bdb-btree (or bdb_hash) > > This will change the portsdb's database backend from the libc-builtin bdb1 to > a later berkeley db (you can set which one via the WITH_BDB_VER switch in the > ruby-bdb port). > > You can also change the driver for pkgdb by setting PKG_DBDRIVER. IMO, this is the best solution so far. So I would like to mention that the easiest way to do this would be to add the following lines to your /usr/local/etc/pkgtools.conf: ENV['PORTS_DBDRIVER'] = 'bdb_btree' ENV['PKG_DBDRIVER'] = 'bdb_btree' This way, all of the package tools will always see the replacement driver, regardless of the state of the environment when you run them :) --Mike