From ca23f2650d8304ec60f15fff3e76eb75b6c4452b Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Jul 15 2020 21:52:42 +0000 Subject: Fix configure test compromised by LTO --- diff --git a/ecl-20.4.24-configure.patch b/ecl-20.4.24-configure.patch new file mode 100644 index 0000000..dc25d7e --- /dev/null +++ b/ecl-20.4.24-configure.patch @@ -0,0 +1,26 @@ +diff --git src/aclocal.m4 src/aclocal.m4 +index d144285..d56175e 100644 +--- src/aclocal.m4 ++++ src/aclocal.m4 +@@ -977,7 +977,7 @@ void fpe_handler(int code) { + exit(0); + } + +-double raises_fpe(double x) { ++__attribute__ ((noipa,noclone,noinline)) double raises_fpe(double x) { + return x / 0.0; + } + +diff --git src/configure src/configure +index d045ba5..e395298 100755 +--- src/configure ++++ src/configure +@@ -9587,7 +9587,7 @@ void fpe_handler(int code) { + exit(0); + } + +-double raises_fpe(double x) { ++__attribute__ ((noipa,noclone,noinline)) double raises_fpe(double x) { + return x / 0.0; + } + diff --git a/ecl.spec b/ecl.spec index 3b0de32..e353775 100644 --- a/ecl.spec +++ b/ecl.spec @@ -1,6 +1,6 @@ Name: ecl Version: 20.4.24 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Embeddable Common-Lisp License: LGPLv2+ and BSD and MIT and Public Domain @@ -32,6 +32,9 @@ Patch4: %{name}-20.4.24-fpe-macro.patch # Avoid an infinite loop if there is a write error on stderr. See # build/pkgs/ecl/patches/write_error.patch in the sagemath distribution. Patch5: %{name}-20.4.24-write-error.patch +# Fix bogus test compromised by LTO. +Patch6: %{name}-20.4.24-configure.patch + BuildRequires: desktop-file-utils BuildRequires: docbook5-schemas @@ -127,6 +130,9 @@ cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps %changelog +* Wed Jul 15 2020 Jeff Law - 20.4.24-2 +- Fix configure test compromised by LTO + * Wed Jul 8 2020 Jerry James - 20.4.24-1 - Version 20.4.24 - Drop upstreamed patches: -atan, -end_of_line, -format-directive-limit,