Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737454 - mail-mta/opensmtpd should not depend on sys-libs/db
Summary: mail-mta/opensmtpd should not depend on sys-libs/db
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-16 14:53 UTC by Reva Denis
Modified: 2020-08-25 19:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reva Denis 2020-08-16 14:53:08 UTC
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.
Comment 1 Ionen Wolkens gentoo-dev 2020-08-16 15:29:29 UTC
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).
Comment 2 Larry the Git Cow gentoo-dev 2020-08-25 19:23:59 UTC
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(-)