summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-06 10:01:54 +0000
committerSam James <sam@gentoo.org>2022-03-06 10:08:17 +0000
commit84e9b414a31b33d01fd785378bac68833031792e (patch)
tree44d855dfb25be9d4c9860f3c719cdaa2ede8d91f /net-mail
parentdev-lang/python: Stabilize 3.10.2_p1 sparc, #834643 (diff)
downloadgentoo-84e9b414a31b33d01fd785378bac68833031792e.tar.gz
gentoo-84e9b414a31b33d01fd785378bac68833031792e.tar.bz2
gentoo-84e9b414a31b33d01fd785378bac68833031792e.zip
net-mail/cyrus-imapd: fix automagic and missing dependencies; fix crash
Automagic dependency changes: - USE=http: app-arch/brotli, app-arch/zstd, and sci-libs/shapelib - USE=perl: virtual/perl-Term-ReadLine - sys-apps/util-linux for libuuid - Proactively disable libwslay, libchardet, and libcld2 (unpackaged) - Disable libsrs2 support (mail-filter/libsrs2) as it was automagic before Build-time dependency changes: - sys-devel/flex - virtual/pkgconfig - virtual/yacc Closes: https://bugs.gentoo.org/818925 Closes: https://bugs.gentoo.org/834573 Thanks-to: Thomas Arnett <tom_gentoo@misfeature.net> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/cyrus-imapd/cyrus-imapd-3.4.3-r1.ebuild (renamed from net-mail/cyrus-imapd/cyrus-imapd-3.4.3.ebuild)38
1 files changed, 27 insertions, 11 deletions
diff --git a/net-mail/cyrus-imapd/cyrus-imapd-3.4.3.ebuild b/net-mail/cyrus-imapd/cyrus-imapd-3.4.3-r1.ebuild
index 5bcd06cfed19..6f4377b85644 100644
--- a/net-mail/cyrus-imapd/cyrus-imapd-3.4.3.ebuild
+++ b/net-mail/cyrus-imapd/cyrus-imapd-3.4.3-r1.ebuild
@@ -3,6 +3,7 @@
EAPI=8
+# Keep an eye on https://www.cyrusimap.org/imap/developer/compiling.html!
inherit autotools flag-o-matic pam ssl-cert
DESCRIPTION="The Cyrus IMAP Server"
@@ -17,21 +18,24 @@ IUSE="afs backup calalarm caps clamav http kerberos ldap \
sqlite ssl static-libs tcpd test xapian"
RESTRICT="!test? ( test )"
-CDEPEND="
- sys-libs/zlib:=
- dev-libs/libpcre:3
+DEPEND="dev-libs/libpcre:3
>=dev-libs/cyrus-sasl-2.1.13:2
dev-libs/jansson:=
dev-libs/icu:=
- sys-fs/e2fsprogs
+ sys-apps/util-linux
+ sys-fs/e2fsprogs:=
+ sys-libs/zlib:=
afs? ( net-fs/openafs )
calalarm? ( dev-libs/libical:= )
caps? ( sys-libs/libcap )
clamav? ( app-antivirus/clamav )
http? (
- dev-libs/libxml2:2
+ app-arch/brotli:=
+ app-arch/zstd:=
+ dev-libs/libxml2
dev-libs/libical:=
- net-libs/nghttp2
+ net-libs/nghttp2:=
+ sci-libs/shapelib:=
)
kerberos? ( virtual/krb5 )
ldap? ( net-nds/openldap )
@@ -41,18 +45,18 @@ CDEPEND="
>=net-mail/mailbase-1
sys-libs/pam
)
- perl? ( dev-lang/perl:= )
+ perl? (
+ dev-lang/perl:=
+ virtual/perl-Term-ReadLine
+ )
postgres? ( dev-db/postgresql:* )
ssl? ( >=dev-libs/openssl-1.0.1e:=[-bindist(-)] )
sqlite? ( dev-db/sqlite:3 )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
xapian? ( >=dev-libs/xapian-1.4.0:= )"
-DEPEND="${CDEPEND}
- test? ( dev-util/cunit )"
-
# all blockers really needed?
# file collision with app-arch/dump - bug 619584
-RDEPEND="${CDEPEND}
+RDEPEND="${DEPEND}
acct-group/mail
acct-user/cyrus
!mail-mta/courier
@@ -60,6 +64,10 @@ RDEPEND="${CDEPEND}
!net-mail/courier-imap
!net-mail/uw-imap
!app-arch/dump"
+DEPEND+=" test? ( dev-util/cunit )"
+BDEPEND="sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc"
REQUIRED_USE="afs? ( kerberos )
backup? ( sqlite )
@@ -100,6 +108,10 @@ src_configure() {
# bug #604466
append-ldflags $(no-as-needed)
+ # Workaround runtime crash
+ # bug #834573
+ append-flags -fno-toplevel-reorder
+
if use afs ; then
myconf+=" --with-afs-libdir=/usr/$(get_libdir)"
myconf+=" --with-afs-incdir=/usr/include/afs"
@@ -121,6 +133,10 @@ src_configure() {
--without-krbdes \
--enable-squat \
--with-zlib \
+ --without-wslay \
+ --without-chardet \
+ --without-cld2 \
+ --disable-srs \
$(use_enable afs) \
$(use_enable afs krb5afspts) \
$(use_enable backup) \