From 136ed1774f33a6bb00aaca5c2de374746a9217ae Mon Sep 17 00:00:00 2001 From: Jeff Law Date: May 26 2020 20:52:36 +0000 Subject: - Fix configure test compromised by LTO. --- diff --git a/hugs98-config.patch b/hugs98-config.patch new file mode 100644 index 0000000..11f8ff3 --- /dev/null +++ b/hugs98-config.patch @@ -0,0 +1,24 @@ +diff -Nrup a/configure b/configure +--- a/configure 2006-09-20 16:34:03.000000000 -0600 ++++ b/configure 2019-12-19 06:07:54.302627575 -0700 +@@ -11959,7 +11959,7 @@ cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + + #include +-int test1() { ++__attribute__ ((used)) int test1() { + return _alloca(42); + } + +diff -Nrup a/configure.ac b/configure.ac +--- a/configure.ac 2006-05-03 08:10:36.000000000 -0600 ++++ b/configure.ac 2019-12-19 06:07:27.468727400 -0700 +@@ -451,7 +451,7 @@ dnl Visual C++ doesn't have alloca, does + AC_CACHE_CHECK(for _alloca, ac_cv_c__alloca, + [AC_TRY_LINK([ + #include +-int test1() { ++__attribute__ ((used)) int test1() { + return _alloca(42); + } + ], diff --git a/hugs98.spec b/hugs98.spec index 44b254f..6dc7d79 100644 --- a/hugs98.spec +++ b/hugs98.spec @@ -2,13 +2,14 @@ Name: hugs98 Version: 2006.09 -Release: 37%{?dist} +Release: 38%{?dist} Summary: Haskell Interpreter License: BSD URL: http://www.haskell.org/hugs Source0: http://cvs.haskell.org/Hugs/downloads/2006-09/%{name}-%{hugs_ver}.tar.gz Patch0: hugs98-gnu.patch +Patch1: hugs98-config.patch BuildRequires: docbook-utils BuildRequires: freeglut-devel @@ -100,6 +101,7 @@ Demo files for Hugs98. %setup -q -n %{name}-%{hugs_ver} # add undefined struct %patch0 -p1 -b .gnu +%patch1 -p1 -b .config # use inline keyword sed -i 's|extern inline|inline|' packages/base/include/HsBase.h packages/network/include/HsNet.h packages/unix/include/HsUnix.h hsc2hs/Main.hs # libalut needs libopenal @@ -189,6 +191,9 @@ sed -i "s|^bindir.*|bindir=\"%{_bindir}\"| %changelog +* Tue May 26 2020 Jeff Law - 2006.09-38 +- Fix configure test compromised by LTO. + * Wed Jan 29 2020 Fedora Release Engineering - 2006.09-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild