[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Support for BDB in RPM's

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-04-27 15:30:02 CEST

"Max Bowsher" <maxb@ukf.net> writes:

> Subversion does not include db.h directly. It uses
> [[[
> #define APU_WANT_DB
> #include <apu_want.h>
> ]]]
> using apr-util. You need to patch all occurences of this (all within
> libsvn_fs_base/) to include the BDB headers without assistance from
> apr-util.

I don't think any patching is necessary, from apu_want.h:

#ifdef APU_WANT_DB

#if APU_HAVE_DB
#include <db.h>
#endif

#undef APU_WANT_DB
#endif

As I understand it the system apr-util uses BDB 4.1 so APU_HAVE_DB
will be defined, and that #include will be OK as long as David's
4.2 BDB provides a header called db.h.

> Is the apr(-util) version included with the OS definitely too old?

As I understand it the problem is not that the system apr-util is too
old, but that the system BDB (4.1) is too unreliable. David wants to
build libsvn_fs_base against his own 4.2 BDB, without having to
rebuild all of apr-util, httpd, php, etc. He wants apr-util to remain
linked against BDB 4.1, with libsvn_fs_base linked against BDB 4.2.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 27 15:31:49 2005

This is an archived mail posted to the Subversion Dev mailing list.