mail-mta/opensmtpd depends on sys-libs/db, however that dependency does not listed in official dependency list: https://github.com/OpenSMTPD/OpenSMTPD Portable OpenSMTPD relies on: autoconf (http://www.gnu.org/software/autoconf/) automake (http://www.gnu.org/software/automake/) bison (http://www.gnu.org/software/bison/) or byacc (http://invisible-island.net/byacc/byacc.html) libevent (http://libevent.org/) libtool (http://www.gnu.org/software/libtool/) libressl (https://www.libressl.org/) or OpenSSL (https://www.openssl.org/) Reproducible: Always Actual Results: RarogCmexDell ~ # LC_ALL=C eix -v mail-mta/opensmtpd * mail-mta/opensmtpd Available versions: (~)6.7.1_p1 IUSE (all versions): libressl +mta pam Installed versions: Version: 6.7.1_p1 Date: 14:49:05 08/16/20 USE: mta pam -libressl DEPEND: ${RDEPEND} RDEPEND: acct-user/smtpd acct-user/smtpq >=dev-libs/openssl-1.1:0/1.1= sys-libs/zlib sys-libs/pam sys-libs/db:5.3/5.3= dev-libs/libevent app-misc/ca-certificates net-mail/mailbase net-libs/libasr !mail-mta/courier !mail-mta/esmtp !mail-mta/exim !mail-mta/mini-qmail !mail-mta/msmtp[mta] !mail-mta/netqmail !mail-mta/nullmailer !mail-mta/postfix !mail-mta/qmail-ldap !mail-mta/sendmail !mail-mta/ssmtp[mta] BDEPEND: virtual/pkgconfig SRC_URI: EAPI: 7 Best versions/slot: (~)6.7.1_p1 Package sets: mailserver-opensmtpd Homepage: https://www.opensmtpd.org Description: Lightweight but featured SMTP daemon from OpenBSD License: ISC BSD BSD-1 BSD-2 BSD-4 Expected Results: Is there are any alternatives like sys-libs/gdbm[berkdb]? I don't have anything bad about sys-libs/db, but I don't use it.
From a quick look berkdb seems to get used when --with-table-db is specified, however the ebuild does not specify it and it defaults to disabled. I believe the dep should either removed entirely or it be USE conditional for that option (if there is any reason to add it, I personally don't need it).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=882bca25117d59f7637b57b77c8b37f113045dba commit 882bca25117d59f7637b57b77c8b37f113045dba Author: Jason A. Donenfeld <zx2c4@gentoo.org> AuthorDate: 2020-08-25 19:23:35 +0000 Commit: Jason A. Donenfeld <zx2c4@gentoo.org> CommitDate: 2020-08-25 19:23:52 +0000 mail-mta/opensmtpd: conditionalize db on berkdb use flag Closes: https://bugs.gentoo.org/737454 Package-Manager: Portage-3.0.3, Repoman-3.0.0 Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org> mail-mta/opensmtpd/opensmtpd-6.7.1_p1.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)