Add 0001-Include-standard-header-file.patch
This commit is contained in:
parent
1161c2e474
commit
243ba75139
58
0001-Include-standard-header-file.patch
Normal file
58
0001-Include-standard-header-file.patch
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
From cf3e9ceaaaacd9f2a92c8087a23dc8fd8efd5519 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andreas Enge <andreas.enge@inria.fr>
|
||||||
|
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 <stdio.h>
|
||||||
|
#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 <stdio.h>
|
||||||
|
#include "cm.h"
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
--
|
||||||
|
2.47.0
|
||||||
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 2 11:06:32 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- 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 <jengelh@inai.de>
|
Thu Apr 11 17:59:40 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
4
cm.spec
4
cm.spec
@ -27,6 +27,7 @@ URL: https://www.multiprecision.org/cm/
|
|||||||
Source: http://www.multiprecision.org/downloads/%name-%version.tar.gz
|
Source: http://www.multiprecision.org/downloads/%name-%version.tar.gz
|
||||||
Source2: http://www.multiprecision.org/downloads/%name-%version.tar.gz.asc
|
Source2: http://www.multiprecision.org/downloads/%name-%version.tar.gz.asc
|
||||||
Source3: %name.keyring
|
Source3: %name.keyring
|
||||||
|
Patch1: 0001-Include-standard-header-file.patch
|
||||||
BuildRequires: flint-devel >= 3
|
BuildRequires: flint-devel >= 3
|
||||||
BuildRequires: gmp-devel >= 4.3.2
|
BuildRequires: gmp-devel >= 4.3.2
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
@ -86,8 +87,7 @@ if ! %make_build check; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post -n libcm1 -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libcm1
|
||||||
%postun -n libcm1 -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%install_info --info-dir="%_infodir" "%_infodir/cm.info.gz"
|
%install_info --info-dir="%_infodir" "%_infodir/cm.info.gz"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user