From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 04:42:20 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 551C816A400 for ; Tue, 15 May 2007 04:42:20 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3263D13C43E for ; Tue, 15 May 2007 04:42:20 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F4gJpj023150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 May 2007 21:42:19 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F4gIUa003827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 14 May 2007 21:42:19 -0700 Message-ID: <46493A2A.4070303@u.washington.edu> Date: Mon, 14 May 2007 21:42:18 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <20070515035016.GG1017@dwpc.dwlabs.ca> In-Reply-To: <20070515035016.GG1017@dwpc.dwlabs.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.14.212934 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Berkeley DB API [was Re: SoC] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 04:42:20 -0000 Duane Whitty wrote: > [snipped] >>> Do you know of any simple APIs that can quickly dump fields in use >>> with BDB .db files? I have a hunch given the Ruby that I've taken a look at >>> with Portupgrade that something very inefficient's in play, but I want >>> to test my assumption first before jumping to conclusions. >>> >> I did a quick ports search and came up with databases/ruby-bdb1. I don't grok ruby >> but I've telling myself I should learn [sigh]. I don't know if this has a simple >> API or not; I'll take a look but I suspect it is probably overkill. >> >> If this doesn't meet your project's needs I'll try coding something up in C. I >> imagine we'll need some tools written in C at some point anyhow. >> >>> Thank you very much for the help :)! >>> >> Well, we'll see about how much help I can be; but I'll try. It's your project >> so let me know what you need or don't need/want >> >>> -Garrett > > Well, databases/ruby-bdb1 will not work because pkgtools uses the newer version of > DB, Sleepycat DB 4.(2|3) I guess. However there is ruby-bdb that seems like it > would be simple for someone who understands ruby. I've also noticed there is a > perl and a python interface available as well. > > I wonder what the ramifications of the above are to the goal of using the bdb in > our base system to add db smarts to the pkg_install tools in a way that will be > complementary to exising tools? > > Duane BDB-1 is an available option actually with the ruby tools. Try "make config" in the ports-mgmt/portupgrade directory. BDB v2+ isn't allowable in the base system because of licensing issues. I already talked to Kris about it. -Garrett