Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385825 - mail-mta/postfix can depend on dev-db/tinycdb instead of huge sys-libs/db
Summary: mail-mta/postfix can depend on dev-db/tinycdb instead of huge sys-libs/db
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 01:30 UTC by Jan Psota
Modified: 2011-12-28 16:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
makes postfix use tinycdb instead of Berkeley DB by default (postfix-2.9-nobdb.patch,1.34 KB, text/plain)
2011-10-06 01:30 UTC, Jan Psota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Psota 2011-10-06 01:30:08 UTC
Created attachment 288929 [details]
makes postfix use tinycdb instead of Berkeley DB by default

By default postfix (15MB) depends on sys-libs/db (14MB)
but performs equally well (at least for my servers
humble needs ;-) using dev-db/tinycdb (50KB).

I improved an ebuild a bit so anybody can switch to use
(tiny)cdb setting USE="-berkdb cdb" (both cannot be off
of course).
Comment 1 Eray Aslan gentoo-dev 2011-11-07 09:31:48 UTC
+*postfix-2.9_pre20111106 (07 Nov 2011)
+
+  07 Nov 2011; Eray Aslan <eras@gentoo.org> -postfix-2.9_pre20111025.ebuild,
+  +postfix-2.9_pre20111106.ebuild:
+  Version bump. Make Berkeley DB optional - bug #385825
+

Please let me know if you have any problems.  Thank you.
Comment 2 Jan Psota 2011-11-10 21:06:10 UTC
> Please let me know if you have any problems.  Thank you.
I like the way you did it - thanks! :-)
(and so removed postfix from bleeding-edge)
Comment 3 Brian Evans (RETIRED) gentoo-dev 2011-12-28 15:58:02 UTC
Note that doing this will break all features that require the btree or hash type.

A quick scan of postconf(5) shows the following:
address_verify_map
postscreen_cache_map (default: btree:$data_directory/postscreen_cache)
smtp_sasl_auth_cache_name
smtp_tls_session_cache_database
smtpd_tls_session_cache_database

More might exist.
Comment 4 Eray Aslan gentoo-dev 2011-12-28 16:22:52 UTC
(In reply to comment #3)
> Note that doing this will break all features that require the btree or hash
> type.

meaning you should not turn berkdb USE flag off -which is on by default by the way- if you use hash or btree database types.  If you turn berkdb off and it breaks your config, you get to keep the pieces.