1 |
commit: 631499f09682958ceb3d64ee0b7f6b4fca7e756a |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 30 14:11:36 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 30 14:11:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=631499f0 |
7 |
|
8 |
mail-mta/exim-4.94.2-r3: revbump to bring back berkdb usage as default |
9 |
|
10 |
because we used to always use berkdb, and berkdb is in standard profile, |
11 |
prefer berkdb, and don't silently switch to gdbm which would break |
12 |
existing databases |
13 |
|
14 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
15 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
16 |
|
17 |
...exim-4.94.2-r2.ebuild => exim-4.94.2-r3.ebuild} | 27 +++++++++++----------- |
18 |
1 file changed, 14 insertions(+), 13 deletions(-) |
19 |
|
20 |
diff --git a/mail-mta/exim/exim-4.94.2-r2.ebuild b/mail-mta/exim/exim-4.94.2-r3.ebuild |
21 |
similarity index 97% |
22 |
rename from mail-mta/exim/exim-4.94.2-r2.ebuild |
23 |
rename to mail-mta/exim/exim-4.94.2-r3.ebuild |
24 |
index 1174eca77da..d8cfef9d9e8 100644 |
25 |
--- a/mail-mta/exim/exim-4.94.2-r2.ebuild |
26 |
+++ b/mail-mta/exim/exim-4.94.2-r3.ebuild |
27 |
@@ -5,7 +5,7 @@ EAPI="7" |
28 |
|
29 |
inherit db-use toolchain-funcs multilib pam systemd |
30 |
|
31 |
-IUSE="arc +dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl |
32 |
+IUSE="arc berkdb +dane dcc +dkim dlfunc dmarc +dnsdb doc dovecot-sasl |
33 |
dsn elibc_glibc exiscan-acl gdbm gnutls idn ipv6 ldap lmtp maildir mbx |
34 |
mysql nis pam perl pkcs11 postgres +prdr proxy radius redis sasl selinux |
35 |
socks5 spf sqlite srs +srs-alt srs-native +ssl syslog tdb tcpd +tpda X" |
36 |
@@ -21,6 +21,7 @@ REQUIRED_USE=" |
37 |
exiscan-acl |
38 |
^^ ( srs-alt srs-native ) |
39 |
) |
40 |
+ || ( berkdb gdbm tdb ) |
41 |
" |
42 |
# NOTE on USE="gnutls dane", gnutls[dane] is masked in base, unmasked |
43 |
# for x86 and amd64 only, due to this, repoman won't allow depending on |
44 |
@@ -29,8 +30,8 @@ REQUIRED_USE=" |
45 |
# have left is to a) ignore the dependency (but that results in bug |
46 |
# #661164) or b) mask the usage of USE=dane with USE=gnutls. Both are |
47 |
# incorrect, but b) is the only "correct" view from repoman. |
48 |
-# We cannot express a required use for berkdb/gdbm/tdb because berkdb |
49 |
-# and gdbm are both enabled in base profile |
50 |
+# We cannot express a required use for berkdb/gdbm/tdb correctly because |
51 |
+# berkdb and gdbm are both enabled in base profile |
52 |
|
53 |
SDIR=$([[ ${PV} == *_rc* ]] && echo /test |
54 |
[[ ${PV} == *.*.*.* ]] && echo /fixes) |
55 |
@@ -49,8 +50,8 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-sol |
56 |
COMMON_DEPEND=">=sys-apps/sed-4.0.5 |
57 |
dev-libs/libpcre:= |
58 |
tdb? ( sys-libs/tdb:= ) |
59 |
- !tdb? ( gdbm? ( sys-libs/gdbm:= ) ) |
60 |
- !tdb? ( !gdbm? ( >=sys-libs/db-3.2:= <sys-libs/db-6:= ) ) |
61 |
+ !tdb? ( berkdb? ( >=sys-libs/db-3.2:= <sys-libs/db-6:= ) ) |
62 |
+ !tdb? ( !berkdb? ( sys-libs/gdbm:= ) ) |
63 |
idn? ( net-dns/libidn:= net-dns/libidn2:= ) |
64 |
perl? ( dev-lang/perl:= ) |
65 |
pam? ( sys-libs/pam ) |
66 |
@@ -190,14 +191,7 @@ src_configure() { |
67 |
EOC |
68 |
sed -i -e 's:^USE_DB=yes:# USE_DB=yes:' Makefile || die |
69 |
sed -i -e 's:^USE_GDBM=yes:# USE_GDBM=yes:' Makefile || die |
70 |
- elif use gdbm ; then |
71 |
- cat >> Makefile <<- EOC |
72 |
- USE_GDBM=yes |
73 |
- DBMLIB = -lgdbm |
74 |
- EOC |
75 |
- sed -i -e 's:^USE_DB=yes:# USE_DB=yes:' Makefile || die |
76 |
- sed -i -e 's:^USE_TDB=yes:# USE_TDB=yes:' Makefile || die |
77 |
- else |
78 |
+ elif use berkdb ; then |
79 |
# use the "native" interfaces to the DBM and CDB libraries, support |
80 |
# passwd and directory lookups by default |
81 |
local DB_VERS="5.3 5.1 4.8 4.7 4.6 4.5 4.4 4.3 4.2 3.2" |
82 |
@@ -209,6 +203,13 @@ src_configure() { |
83 |
EOC |
84 |
sed -i -e 's:^USE_GDBM=yes:# USE_GDBM=yes:' Makefile || die |
85 |
sed -i -e 's:^USE_TDB=yes:# USE_TDB=yes:' Makefile || die |
86 |
+ else # must be gdbm via required_use |
87 |
+ cat >> Makefile <<- EOC |
88 |
+ USE_GDBM=yes |
89 |
+ DBMLIB = -lgdbm |
90 |
+ EOC |
91 |
+ sed -i -e 's:^USE_DB=yes:# USE_DB=yes:' Makefile || die |
92 |
+ sed -i -e 's:^USE_TDB=yes:# USE_TDB=yes:' Makefile || die |
93 |
fi |
94 |
|
95 |
# if we use libiconv, now is the time to tell so |