On Fri, Dec 26, 2025 at 15:10:40 -0500, Wietse Venema via Postfix-users wrote: > However, to build for a non-BerkeleyDB system, people may want to use: > > make makefiles default_database_type=lmdb CCARGS="-DNO_DB ..." > > Which will already do the right thing for default_cache_db_type.
>From RELEASE_NOTES-3.11: > Sites that build without Berkeley DB are suggested to use one of the > following commands in their build process: > > 1 - Make lmdb the default for both default_database_type > and default_cache_db_type. > > make makefiles CCARGS="-NO_DB ..." default_database_type=lmdb > > 2 - Make cdb the default for default_database_type, and make > lmdb the default for default_cache_db_type. > > make makefiles CCARGS="-NO_DB ..." default_database_type=cdb \ > default_cache_db_type=lmdb Actually packagers building Postfix with -NO_DB (and enabling lmdb) should explicitly set "default_cache_db_type=lmdb" at build time in scenario 1 as well, otherwise it will revert to (unavailable) btree for users that change default_database_type to cdb or something else in their configuration, and break. See e.g. https://gitlab.archlinux.org/archlinux/packaging/packages/postfix/-/work_items/17 So I think the default_cache_db_type dependency on default_database_type is better evaluated at build-time, instead of at run-time. Geert _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
