From 7fb306ca74d7a5d158bdfa3fe4d86eb118e00aa7 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 3 Nov 2021 13:05:38 +0100 Subject: [PATCH] re-enable LTO build (#1990080) Resolves: #1990080 --- dovecot.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/dovecot.spec b/dovecot.spec index 2fdf7aa..3dfda59 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -1,16 +1,12 @@ %global __provides_exclude_from %{_docdir} %global __requires_exclude_from %{_docdir} -## FIXME: lto and annobin breaks build atm, retest after 2021-08 -#%global _lto_cflags %nil -#%undefine _annotated_build - Summary: Secure imap and pop3 server Name: dovecot Epoch: 1 Version: 2.3.16 %global prever %{nil} -Release: 2%{?dist} +Release: 3%{?dist} #dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2 License: MIT and LGPLv2 @@ -154,9 +150,6 @@ echo "testsuite" >dovecot-2.3-pigeonhole-%{pigeonholever}/run-test-valgrind.excl sed -i '/DEFAULT_INCLUDES *=/s|$| '"$(pkg-config --cflags libclucene-core)|" src/plugins/fts-lucene/Makefile.in %build -# This package references hidden symbols during an LTO link. This needs further -# investigation. Until then, disable LTO -%define _lto_cflags %{nil} #required for fdpass.c line 125,190: dereferencing type-punned pointer will break strict-aliasing rules %global _hardened_build 1 export CFLAGS="%{__global_cflags} -fno-strict-aliasing -fstack-reuse=none" @@ -473,6 +466,9 @@ make check %{_libdir}/%{name}/dict/libdriver_pgsql.so %changelog +* Wed Nov 03 2021 Michal Hlavinka - 1:2.3.16-3 +- re-enable LTO build (#1990080) + * Wed Oct 27 2021 Michal Hlavinka - 1:2.3.16-2 - set first_valid_uid to 1000 to match system default (#2009716)