Eray Aslan:
> I have requests from users to build postfix without BerkeleyDB support.
> Usual complaint is that they are running in a resource constrained
> environment, that tinycdb is enough, that BerkeleyDB is bloated, that
> they are not using hash or btree lookups etc.  This is on Linux by the
> way.
> 
> Is this an acceptable feature request?

No problem. This is a three-line change in sys_defs.h and two lines
of documentation in makedefs.  There probably needs to be some
documentation in DB_README.html as well.

I'm not sure though if Postfix is the smallest-possible MTA. It's
while since I ran it on 32MB machines.

        Wietse

*** /var/tmp/postfix-2.9-20120115/src/util/sys_defs.h   Sun Nov 13 19:35:34 2011
--- src/util/sys_defs.h Tue Jan 17 11:29:55 2012
***************
*** 1432,1437 ****
--- 1432,1441 ----
  #undef HAVE_POSIX_GETPW_R
  #endif
  
+ #ifdef NO_DB
+ #undef HAS_DB
+ #endif
+ 
  #ifndef OCTAL_TO_UNSIGNED
  #define OCTAL_TO_UNSIGNED(res, str)   ((res) = strtoul((str), (char **) 0, 8))
  #endif
*** /var/tmp/postfix-2.9-20120115/makedefs      Sun Jan  8 12:08:41 2012
--- makedefs    Tue Jan 17 11:28:37 2012
***************
*** 25,30 ****
--- 25,32 ----
  #     \fIinclude\fR directory.
  #     The following directives are special:
  # .RS
+ # .IP \fB-DNO_DB\fR
+ #     Do not build with Berkeley DB support.
  # .IP \fB-DNO_DEVPOLL\fR
  #     Do not build with Solaris /dev/poll support.
  #     By default, /dev/poll support is compiled in on platforms that

Reply via email to