From owner-freebsd-ports@FreeBSD.ORG Mon Nov 29 12:01:12 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 A302016A4D2 for ; Mon, 29 Nov 2004 12:01:12 +0000 (GMT) Received: from lakermmtao02.cox.net (lakermmtao02.cox.net [68.230.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71D5F43D49 for ; Mon, 29 Nov 2004 12:00:32 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.30.24]) by lakermmtao02.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20041129120028.DVXS329.lakermmtao02.cox.net@dolphin.local.net>; Mon, 29 Nov 2004 07:00:28 -0500 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id iATC0RUS045131; Mon, 29 Nov 2004 06:00:28 -0600 (CST) (envelope-from conrads@cox.net) Date: Mon, 29 Nov 2004 06:00:22 -0600 From: "Conrad J. Sabatier" To: Matthias Andree Message-ID: <20041129060022.6e1e346c@dolphin.local.net> In-Reply-To: <20041128211346.GC25374@merlin.emma.line.org> References: <20041127191925.69c8994c@dolphin.local.net> <20041127194736.0198f21f@dolphin.local.net> <200411281723.28744.bauno@inwind.it> <20041128130321.6f984751@dolphin.local.net> <20041128211346.GC25374@merlin.emma.line.org> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-ports@freebsd.org cc: Bauno Subject: Re: porting klibido to FreeBSD 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: Mon, 29 Nov 2004 12:01:13 -0000 On Sun, 28 Nov 2004 22:13:46 +0100, Matthias Andree wrote: > On Sun, 28 Nov 2004, Conrad J. Sabatier wrote: > > > On Sun, 28 Nov 2004 17:23:28 +0100, Bauno wrote: > > > > > On Sunday 28 November 2004 02:47, you wrote: > > > > A little more detail I should have provided before: > > > > > > > > The FreeBSD db4 call's arguments are defined as this: > > > > > > > > int > > > > Db::open(const char *file, > > > > const char *database, DBTYPE type, u_int32_t flags, int > > > > mode); > > > > > > > > > > Tha'ts what I'm using: > > > > > > int > > > Db::open(DbTxn *txnid, const char *file, > > > const char *database, DBTYPE type, u_int32_t flags, int mode); > > > > > > > > > It's from Db 4.2, but I used it with db 4.1 as well, with no > > > problems. The DbTxn *txnid is the transaction handler, it seems > > > strange it's missing...that would mean the Bdb in freebsd can't be > > > used as a transactional data store. > > > > > > What version of Berkeley Db is installed on Freebsd? > > I didn't get where this started, and figured you got it solved, > congratulations on that. Yes, I now have it actually running. Still some problems to work out, though. For one thing, the program crashes every time I try to subscribe to a group. I expect, though, that this problem will clear up once I get about the business of converting it into a proper port and get the various make options and a decent set of patches worked out. > Berkeley DB has been offering the transactional datastore since > version 3.0 if I recall correctly (but I never bothered for 2.x), and > the developer version of bogofilter (in the bogofilter CVS) works with > Berkeley DB 3.0 to 4.3 (port commit is pending, ports/73790). It's all > a real mess because SleepyCat changed the interface between minor > releases, as you've found out the hard way. Add a txnid argument > here, remove an option or flag there... every version is different. > > The hoops we need to jump in bogofilter are documented in the > DB_AT_LEAST, DB_EQUAL, DB_AT_MOST macros in our DB interface: > http://cvs.sourceforge.net/viewcvs.py/bogofilter/bogofilter/src/datastore_db.c?view=markup Cool, I'll definitely take a look. > You'll find information in the Berkeley DB reference documentation in > the chapter "Upgrading Berkeley DB Applications", if you're looking at > 4.2's document, it has the documentation all the way back to 1.85. > Look for ref/toc.html underneath $DOCSDIR. Yes, I've looked at the docs a bit, but need to do a lot more. This is my first time dealing with a port that uses this stuff, so I'm sort of "out of my element" here. Still, this program (klibido) is definitely worth the effort, and will make a fine addition to FreeBSD's ports collections, once I get all the kinks worked out. Thanks. -- Conrad J. Sabatier -- "In Unix veritas"