Berkeley DB dependency

Steffen Nurpmeso steffen at sdaoden.eu
Fri Dec 13 18:45:32 CET 2019


Filip Janus wrote in <CAFjYY+LgGpmV-G39cwhjB-7+vtV3w0TVFBV6zESGxrgM-7kot\
A at mail.gmail.com>:
 |Hello,
 |I am Fedora and RHEL database package maintainer. According to licence
 |policy of BerkeleyDB, where BerkeleyDB 6.x and later versions have a more
 |restrictive license than the previous versions (AGPLv3 vs. LGPLv2), and due
 |to that many projects cannot use it, there is an effort to replace Berkeley
 |DB by others databases(GDBM, SQLite,...). I would like to ask if exists in
 |Your project some possibility to use other backend database then BerkeleyDB
 |?

I do not truly understand the question, if you look into README
(non-generic!), or INSTALL (non-generic!), then you will find
plenty of possibilities, and how to use them.

I for one use LMDB for about 18 months on a bogofilter instance
which checks several hundreds of mails a day, and it works
flawlessly, very (!) fast, and absolutely stable.  The database is
per se maybe the smallest possible, but grows as usage goes by
(BTree touching pages).  Since LMDB does not have a VACUUM-alike
thing i recreate the DB as part of my big monthly backup, after
having saved the former state.

LMDB itself is very small compared to BDB, here on a GNU/Linux
with gcc (CRUX-x86_64-multilib) 8.3.0, generic compilation:

  $ ll /usr/lib/libdb{.a,.so*,-*.so} /usr/lib/liblmdb.*
  lrwxrwxrwx 1 root root      12 Mar 24  2019 /usr/lib/libdb.so -> libdb-5.3.so*
  -rw-r--r-- 1 root root 3030922 Mar 24  2019 /usr/lib/libdb.a
  lrwxrwxrwx 1 root root      12 Mar 24  2019 /usr/lib/libdb-5.so -> libdb-5.3.so*
  -rwxr-xr-x 1 root root 1823096 Mar 24  2019 /usr/lib/libdb-5.3.so*
  -rwxr-xr-x 1 root root   92888 Oct 24 22:30 /usr/lib/liblmdb.so*
  -rw-r--r-- 1 root root  100540 Oct 24 22:30 /usr/lib/liblmdb.a

 |Thanks
 |Filip Januš

Hope that helps.
Ciao, and a nice weekend.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


More information about the bogofilter-dev mailing list