Disable --as-needed as it breaks most of Cyrus.

This commit is contained in:
Jason Tibbitts 2019-01-15 13:45:03 -06:00
parent 1797aa5238
commit 0d8ebcb9f3

View File

@ -1,5 +1,9 @@
%define scmt(l:) %(c=%1; echo ${c:0:%{-l:%{-l*}}%{!-l:7}})
# Disable passing --as-needed to the linker; it breaks cyrus terribly for
# reasons I don't understand.
%undefine _ld_as_needed
# Cassandane commit hash. Cassandane doesn't have releases often, but it
# receives constant development. This was fetched on 20180518.
%global cocas c8040fd9e3a3c9ec96a7b58ff8a0601756108d46
@ -7,12 +11,11 @@
# Cassandane run by default. '--without cassandane' disables.
# Disabled because of https://bugzilla.redhat.com/show_bug.cgi?id=1643801
# FIXME enable it back once double free issue is fixed
%bcond_with cassandane
#bcond_without cassandane
%bcond_without cassandane
Name: cyrus-imapd
Version: 3.0.8
Release: 4%{?dist}
Release: 5%{?dist}
%define ssl_pem_file /etc/pki/%name/%name.pem
@ -687,6 +690,10 @@ getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /v
%changelog
* Tue Jan 15 2019 Jason L Tibbitts III <tibbs@math.uh.edu> - 3.0.8-5
- Disable passing --as-needed to to the linker. This breaks cyrus horribly.
- Re-enable Cassandane run.
* Tue Jan 15 2019 Jason L Tibbitts III <tibbs@math.uh.edu> - 3.0.8-4
- Allow building against ClamAV 0.101.
- Add build dependency on glibc-langpack-en to slience some Perl complaints.