From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/exim/
Date: Sat, 29 May 2021 11:52:15 +0000 (UTC) [thread overview]
Message-ID: <1622289133.24c18ee750d5716d8c293ef9677c9876457ef7cd.grobian@gentoo> (raw)
commit: 24c18ee750d5716d8c293ef9677c9876457ef7cd
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat May 29 11:51:22 2021 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat May 29 11:52:13 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24c18ee7
mail-mta/exim-4.94.2-r2: allow moving away from sys-libs/db
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
mail-mta/exim/exim-4.94.2-r2.ebuild | 59 +++++++++++++++++++++++++++++--------
mail-mta/exim/metadata.xml | 2 ++
2 files changed, 48 insertions(+), 13 deletions(-)
diff --git a/mail-mta/exim/exim-4.94.2-r2.ebuild b/mail-mta/exim/exim-4.94.2-r2.ebuild
index c825df4517e..1174eca77da 100644
--- a/mail-mta/exim/exim-4.94.2-r2.ebuild
+++ b/mail-mta/exim/exim-4.94.2-r2.ebuild
@@ -5,7 +5,10 @@ EAPI="7"
inherit db-use toolchain-funcs multilib pam systemd
-IUSE="arc +dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl dsn elibc_glibc exiscan-acl gnutls idn ipv6 ldap lmtp maildir mbx mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux socks5 spf sqlite srs +srs-alt srs-native +ssl syslog tcpd +tpda X"
+IUSE="arc +dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl
+dsn elibc_glibc exiscan-acl gdbm gnutls idn ipv6 ldap lmtp maildir mbx
+mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux
+socks5 spf sqlite srs +srs-alt srs-native +ssl syslog tdb tcpd +tpda X"
REQUIRED_USE="
arc? ( dkim spf )
dane? ( ssl !gnutls )
@@ -26,6 +29,8 @@ REQUIRED_USE="
# have left is to a) ignore the dependency (but that results in bug
# #661164) or b) mask the usage of USE=dane with USE=gnutls. Both are
# incorrect, but b) is the only "correct" view from repoman.
+# We cannot express a required use for berkdb/gdbm/tdb because berkdb
+# and gdbm are both enabled in base profile
SDIR=$([[ ${PV} == *_rc* ]] && echo /test
[[ ${PV} == *.*.*.* ]] && echo /fixes)
@@ -42,8 +47,10 @@ LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-solaris"
COMMON_DEPEND=">=sys-apps/sed-4.0.5
- ( >=sys-libs/db-3.2:= <sys-libs/db-6:= )
- dev-libs/libpcre
+ dev-libs/libpcre:=
+ tdb? ( sys-libs/tdb:= )
+ !tdb? ( gdbm? ( sys-libs/gdbm:= ) )
+ !tdb? ( !gdbm? ( >=sys-libs/db-3.2:= <sys-libs/db-6:= ) )
idn? ( net-dns/libidn:= net-dns/libidn2:= )
perl? ( dev-lang/perl:= )
pam? ( sys-libs/pam )
@@ -58,8 +65,9 @@ COMMON_DEPEND=">=sys-apps/sed-4.0.5
)
)
ldap? ( >=net-nds/openldap-2.0.7 )
- nis? (
- elibc_glibc? (
+ elibc_glibc? (
+ net-libs/libnsl
+ nis? (
net-libs/libtirpc
>=net-libs/libnsl-1:=
)
@@ -80,7 +88,6 @@ COMMON_DEPEND=">=sys-apps/sed-4.0.5
sqlite? ( dev-db/sqlite )
radius? ( net-dialup/freeradius-client )
virtual/libiconv
- elibc_glibc? ( net-libs/libnsl )
"
# added X check for #57206
BDEPEND="virtual/pkgconfig"
@@ -173,6 +180,37 @@ src_configure() {
HAVE_ICONV=yes
EOC
+ # configure db implementation, Exim always needs one for its hints
+ # database, we prefer tdb and gdbm, since bdb is kind of getting
+ # less and less support
+ if use tdb ; then
+ cat >> Makefile <<- EOC
+ USE_TDB=yes
+ DBMLIB = -ltdb
+ EOC
+ sed -i -e 's:^USE_DB=yes:# USE_DB=yes:' Makefile || die
+ sed -i -e 's:^USE_GDBM=yes:# USE_GDBM=yes:' Makefile || die
+ elif use gdbm ; then
+ cat >> Makefile <<- EOC
+ USE_GDBM=yes
+ DBMLIB = -lgdbm
+ EOC
+ sed -i -e 's:^USE_DB=yes:# USE_DB=yes:' Makefile || die
+ sed -i -e 's:^USE_TDB=yes:# USE_TDB=yes:' Makefile || die
+ else
+ # use the "native" interfaces to the DBM and CDB libraries, support
+ # passwd and directory lookups by default
+ local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2"
+ cat >> Makefile <<- EOC
+ USE_DB=yes
+ # keep include in CFLAGS because exim.h -> dbstuff.h -> db.h
+ CFLAGS += -I$(db_includedir ${DB_VERS})
+ DBMLIB = -l$(db_libname ${DB_VERS})
+ EOC
+ sed -i -e 's:^USE_GDBM=yes:# USE_GDBM=yes:' Makefile || die
+ sed -i -e 's:^USE_TDB=yes:# USE_TDB=yes:' Makefile || die
+ fi
+
# if we use libiconv, now is the time to tell so
if use !elibc_glibc && use !elibc_musl ; then
cat >> Makefile <<- EOC
@@ -221,18 +259,13 @@ src_configure() {
#
# lookup methods
+ #
- # use the "native" interfaces to the DBM and CDB libraries, support
- # passwd and directory lookups by default
- local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2"
+ # support passwd and directory lookups by default
cat >> Makefile <<- EOC
- USE_DB=yes
LOOKUP_CDB=yes
LOOKUP_PASSWD=yes
LOOKUP_DSEARCH=yes
- # keep include in CFLAGS because exim.h -> dbstuff.h -> db.h
- CFLAGS += -I$(db_includedir ${DB_VERS})
- DBMLIB = -l$(db_libname ${DB_VERS})
EOC
if ! use dnsdb; then
diff --git a/mail-mta/exim/metadata.xml b/mail-mta/exim/metadata.xml
index 3c76bb641e6..de42f5fe5af 100644
--- a/mail-mta/exim/metadata.xml
+++ b/mail-mta/exim/metadata.xml
@@ -45,6 +45,8 @@
<flag name="pkcs11">Require pkcs11 support in <pkg>net-libs/gnutls</pkg> with USE=gnutls</flag>
<flag name="redis">Adds support for querying <pkg>dev-db/redis</pkg></flag>
<flag name="prdr">Adds support for Per-Recipient Data Response</flag>
+ <flag name="tdb">Use <pkg>sys-libs/tdb</pkg> for internal database
+ storage (such as hints database)</flag>
<flag name="tpda">Adds support for Transport Post-Delivery Actions</flag>
</use>
<upstream>
next reply other threads:[~2021-05-29 11:52 UTC|newest]
Thread overview: 202+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-29 11:52 Fabian Groffen [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-26 7:48 [gentoo-commits] repo/gentoo:master commit in: mail-mta/exim/ Fabian Groffen
2024-11-26 0:36 Sam James
2024-11-24 11:02 Sam James
2024-11-23 17:21 Michał Górny
2024-11-23 17:21 Michał Górny
2024-09-02 8:24 Fabian Groffen
2024-03-21 20:36 Arthur Zamarin
2024-03-19 9:25 Sam James
2024-02-23 9:09 Fabian Groffen
2024-01-12 11:29 Arthur Zamarin
2024-01-12 11:29 Arthur Zamarin
2024-01-12 9:24 Sam James
2024-01-12 8:54 Arthur Zamarin
2024-01-12 8:28 Arthur Zamarin
2023-12-29 18:08 Fabian Groffen
2023-12-25 11:03 Fabian Groffen
2023-12-25 11:00 Fabian Groffen
2023-12-25 11:00 Fabian Groffen
2023-12-25 11:00 Fabian Groffen
2023-12-25 11:00 Fabian Groffen
2023-12-20 2:34 Ionen Wolkens
2023-11-25 11:49 Arthur Zamarin
2023-11-13 4:53 Sam James
2023-11-08 8:03 Fabian Groffen
2023-10-15 20:11 Fabian Groffen
2023-10-02 12:56 Fabian Groffen
2023-07-16 20:22 Jakov Smolić
2023-07-12 6:39 Jakov Smolić
2023-06-27 17:04 Sam James
2023-06-05 18:39 Fabian Groffen
2022-07-02 7:33 Fabian Groffen
2022-06-29 9:08 Fabian Groffen
2022-06-27 7:30 Fabian Groffen
2022-03-23 1:24 Sam James
2022-03-23 0:45 Sam James
2022-01-03 23:26 David Seifert
2021-06-24 23:27 Sam James
2021-05-30 14:11 Fabian Groffen
2021-05-29 9:34 Fabian Groffen
2021-05-05 16:09 Sergei Trofimovich
2021-05-04 19:20 Sam James
2021-05-04 19:20 Sam James
2021-05-04 19:16 Sam James
2021-05-04 19:16 Sam James
2021-05-04 19:13 Sam James
2021-05-04 15:48 Fabian Groffen
2021-05-02 13:14 Fabian Groffen
2021-05-02 8:54 Mikle Kolyada
2021-05-02 8:54 Mikle Kolyada
2021-01-23 10:51 Mikle Kolyada
2020-06-08 8:06 Fabian Groffen
2020-05-13 17:12 Agostino Sarubbo
2020-05-13 11:31 Agostino Sarubbo
2020-05-13 11:29 Agostino Sarubbo
2020-05-13 11:28 Agostino Sarubbo
2020-05-13 11:27 Agostino Sarubbo
2020-05-13 11:26 Agostino Sarubbo
2020-05-12 17:50 Mart Raudsepp
2020-05-12 6:41 Fabian Groffen
2020-03-20 8:50 Fabian Groffen
2020-03-15 8:32 Fabian Groffen
2020-03-03 7:54 Agostino Sarubbo
2020-03-02 15:22 Agostino Sarubbo
2020-03-02 12:39 Agostino Sarubbo
2020-03-02 12:32 Agostino Sarubbo
2020-03-02 12:29 Agostino Sarubbo
2020-03-02 12:28 Agostino Sarubbo
2020-03-01 21:44 Agostino Sarubbo
2020-01-07 13:25 Fabian Groffen
2019-12-14 11:04 Fabian Groffen
2019-12-14 11:04 Fabian Groffen
2019-12-14 11:04 Fabian Groffen
2019-12-13 7:48 Fabian Groffen
2019-10-26 18:16 Thomas Deutschmann
2019-10-14 2:18 Matt Turner
2019-10-12 19:17 Mikle Kolyada
2019-09-29 8:20 Fabian Groffen
2019-09-20 6:39 Sergei Trofimovich
2019-09-13 17:27 Agostino Sarubbo
2019-09-13 15:42 Mikle Kolyada
2019-09-09 6:02 Agostino Sarubbo
2019-09-09 5:54 Agostino Sarubbo
2019-09-08 18:30 Sergei Trofimovich
2019-09-08 18:26 Sergei Trofimovich
2019-09-07 0:22 Thomas Deutschmann
2019-09-06 13:18 Thomas Deutschmann
2019-08-28 11:17 Thomas Deutschmann
2019-08-24 10:30 Thomas Deutschmann
2019-07-28 20:02 Mikle Kolyada
2019-07-25 10:46 Fabian Groffen
2019-07-23 18:16 Fabian Groffen
2019-07-18 10:48 Agostino Sarubbo
2019-07-18 10:45 Agostino Sarubbo
2019-07-18 10:01 Agostino Sarubbo
2019-07-18 9:57 Agostino Sarubbo
2019-07-17 15:24 Agostino Sarubbo
2019-07-15 19:10 Sergei Trofimovich
2019-07-15 13:14 Agostino Sarubbo
2019-06-13 4:28 Markus Meier
2019-06-08 18:20 Agostino Sarubbo
2019-06-06 21:00 Sergei Trofimovich
2019-06-06 6:54 Agostino Sarubbo
2019-06-05 18:14 Sergei Trofimovich
2019-06-05 7:12 Agostino Sarubbo
2019-06-05 6:48 Agostino Sarubbo
2019-06-04 18:56 Agostino Sarubbo
2019-06-04 17:18 Thomas Deutschmann
2019-01-14 7:14 Sergei Trofimovich
2019-01-11 13:17 Fabian Groffen
2018-09-11 20:51 Andreas Hüttel
2018-09-11 20:13 Matt Turner
2018-09-11 20:13 Matt Turner
2018-07-22 17:46 Fabian Groffen
2018-07-22 2:20 Mikle Kolyada
2018-07-14 17:54 Sergei Trofimovich
2018-06-27 17:23 Tobias Klausmann
2018-06-23 18:13 Mikle Kolyada
2018-06-21 6:33 Sergei Trofimovich
2018-05-05 14:59 Andreas Hüttel
2018-04-28 1:16 Matt Turner
2018-04-23 8:47 Fabian Groffen
2018-04-22 19:18 Matt Turner
2018-04-16 16:38 Fabian Groffen
2018-04-16 9:02 Fabian Groffen
2018-04-15 15:14 Fabian Groffen
2018-04-07 18:07 Sergei Trofimovich
2018-03-31 17:57 Sergei Trofimovich
2018-03-16 8:14 Fabian Groffen
2018-03-08 20:01 Markus Meier
2018-03-07 9:38 Agostino Sarubbo
2018-03-07 9:31 Tobias Klausmann
2018-02-20 22:18 Sergei Trofimovich
2018-02-20 8:10 Sergei Trofimovich
2018-02-18 21:48 Thomas Deutschmann
2018-02-11 7:59 Fabian Groffen
2018-02-08 9:45 Fabian Groffen
2018-02-07 7:41 Fabian Groffen
2018-02-06 21:40 Sergei Trofimovich
2017-12-20 8:48 Fabian Groffen
2017-12-17 9:08 Fabian Groffen
2017-12-01 11:20 Agostino Sarubbo
2017-11-30 22:07 Sergei Trofimovich
2017-11-30 11:35 Tobias Klausmann
2017-11-30 10:34 Fabian Groffen
2017-11-29 18:52 Thomas Deutschmann
2017-10-08 9:24 Fabian Groffen
2017-10-05 13:15 Sergei Trofimovich
2017-09-25 7:35 Fabian Groffen
2017-09-05 9:25 Fabian Groffen
2017-06-26 20:18 Tobias Klausmann
2017-06-24 21:08 Sergei Trofimovich
2017-06-21 12:17 Agostino Sarubbo
2017-06-20 5:17 Agostino Sarubbo
2017-06-20 5:07 Agostino Sarubbo
2017-03-08 7:53 Fabian Groffen
2017-03-01 6:08 Fabian Groffen
2017-02-23 7:33 Fabian Groffen
2017-02-13 11:02 Fabian Groffen
2017-02-10 8:16 Fabian Groffen
2017-02-03 7:49 Fabian Groffen
2017-01-31 7:44 Fabian Groffen
2017-01-29 10:43 Jeroen Roovers
2017-01-05 12:34 Tobias Klausmann
2016-12-27 22:55 Aaron Bauman
2016-12-25 11:52 Fabian Groffen
2016-12-08 9:04 Fabian Groffen
2016-11-21 11:28 Fabian Groffen
2016-10-10 12:16 Fabian Groffen
2016-10-09 17:55 Fabian Groffen
2016-09-19 21:36 Anthony G. Basile
2016-07-20 10:37 Agostino Sarubbo
2016-07-08 13:46 Agostino Sarubbo
2016-07-08 11:02 Agostino Sarubbo
2016-07-08 7:53 Agostino Sarubbo
2016-07-05 17:58 Jeroen Roovers
2016-07-04 15:58 Fabian Groffen
2016-06-25 20:14 Agostino Sarubbo
2016-06-21 7:23 Fabian Groffen
2016-06-11 16:44 Agostino Sarubbo
2016-06-07 7:22 Tobias Klausmann
2016-06-06 18:29 Fabian Groffen
2016-06-06 7:40 Tobias Klausmann
2016-05-31 6:45 Fabian Groffen
2016-04-28 12:51 Fabian Groffen
2016-04-28 12:51 Fabian Groffen
2016-04-07 8:09 Fabian Groffen
2016-04-07 8:09 Fabian Groffen
2016-04-03 7:13 Fabian Groffen
2016-03-09 5:14 Sergey Popov
2016-03-08 9:28 Fabian Groffen
2016-03-08 9:00 Fabian Groffen
2016-03-04 16:56 Fabian Groffen
2016-03-03 6:59 Fabian Groffen
2016-02-22 10:25 Patrice Clement
2016-02-18 19:38 Fabian Groffen
2016-01-19 9:11 Fabian Groffen
2016-01-18 18:15 Fabian Groffen
2015-12-19 19:17 Fabian Groffen
2015-11-22 19:06 Fabian Groffen
2015-10-26 6:20 Jeroen Roovers
2015-09-30 11:59 Julian Ospald
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1622289133.24c18ee750d5716d8c293ef9677c9876457ef7cd.grobian@gentoo \
--to=grobian@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox