diff --git a/0001-Include-standard-header-file.patch b/0001-Include-standard-header-file.patch new file mode 100644 index 0000000..da511ad --- /dev/null +++ b/0001-Include-standard-header-file.patch @@ -0,0 +1,58 @@ +From cf3e9ceaaaacd9f2a92c8087a23dc8fd8efd5519 Mon Sep 17 00:00:00 2001 +From: Andreas Enge +Date: Wed, 21 Aug 2024 16:23:04 +0200 +Subject: [PATCH] Include standard header file. + +* tests/tecpp.c, tests/ttwist.c: Include stdio.h. +--- + tests/tecpp.c | 3 ++- + tests/ttwist.c | 5 +++-- + 2 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/tests/tecpp.c b/tests/tecpp.c +index 6cb4802..c20c582 100644 +--- a/tests/tecpp.c ++++ b/tests/tecpp.c +@@ -2,7 +2,7 @@ + + tecpp.c - test of ECPP + +-Copyright (C) 2021, 2022 Andreas Enge ++Copyright (C) 2021, 2022, 2024 Andreas Enge + + This file is part of CM. + +@@ -21,6 +21,7 @@ with CM; see the file COPYING. If not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include + #include "cm.h" + + /*****************************************************************************/ +diff --git a/tests/ttwist.c b/tests/ttwist.c +index 5f1fcdf..9cbea8c 100644 +--- a/tests/ttwist.c ++++ b/tests/ttwist.c +@@ -1,8 +1,8 @@ + /* + +-tcm.c - tests with twisted curves ++ttwist.c - tests with twisted curves + +-Copyright (C) 2021 Andreas Enge ++Copyright (C) 2021, 2024 Andreas Enge + + This file is part of CM. + +@@ -21,6 +21,7 @@ with CM; see the file COPYING. If not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include + #include "cm.h" + + /*****************************************************************************/ +-- +2.47.0 + diff --git a/cm.changes b/cm.changes index 9ba1c02..f068b79 100644 --- a/cm.changes +++ b/cm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Nov 2 11:06:32 UTC 2024 - Jan Engelhardt + +- Add 0001-Include-standard-header-file.patch to resolve + gcc>=14 FTBFS (preprocessor result of gmp.h changes depending + on stdio.h being included before or not) + ------------------------------------------------------------------- Thu Apr 11 17:59:40 UTC 2024 - Jan Engelhardt diff --git a/cm.spec b/cm.spec index bcc25f1..adcf954 100644 --- a/cm.spec +++ b/cm.spec @@ -27,6 +27,7 @@ URL: https://www.multiprecision.org/cm/ Source: http://www.multiprecision.org/downloads/%name-%version.tar.gz Source2: http://www.multiprecision.org/downloads/%name-%version.tar.gz.asc Source3: %name.keyring +Patch1: 0001-Include-standard-header-file.patch BuildRequires: flint-devel >= 3 BuildRequires: gmp-devel >= 4.3.2 BuildRequires: libtool @@ -86,8 +87,7 @@ if ! %make_build check; then exit 1 fi -%post -n libcm1 -p /sbin/ldconfig -%postun -n libcm1 -p /sbin/ldconfig +%ldconfig_scriptlets -n libcm1 %post %install_info --info-dir="%_infodir" "%_infodir/cm.info.gz"