forked from pool/dynare
Accepting request 985397 from home:1Antoine1:branches:science
- Add dynare-5.1-gcc-12.patch: Fix build with gcc 12. OBS-URL: https://build.opensuse.org/request/show/985397 OBS-URL: https://build.opensuse.org/package/show/science/dynare?expand=0&rev=5
This commit is contained in:
parent
6a676f7af4
commit
eb2f3e6009
27
dynare-5.1-gcc-12.patch
Normal file
27
dynare-5.1-gcc-12.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 3823379966f15a377c863b0d15694b146854dfd8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
|
||||||
|
Date: Mon, 2 May 2022 17:03:42 +0200
|
||||||
|
Subject: [PATCH] Compatibility fix for GCC 12
|
||||||
|
|
||||||
|
Ref. dynare#1852
|
||||||
|
|
||||||
|
(cherry picked from commit 8c07fb5e4310b2ec2988dc62256e1cf0971c05dd)
|
||||||
|
---
|
||||||
|
src/DataTree.hh | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/DataTree.hh b/src/DataTree.hh
|
||||||
|
index 62da5681..6e9f818d 100644
|
||||||
|
--- a/src/DataTree.hh
|
||||||
|
+++ b/src/DataTree.hh
|
||||||
|
@@ -29,6 +29,7 @@ using namespace std;
|
||||||
|
#include <iomanip>
|
||||||
|
#include <cmath>
|
||||||
|
#include <utility>
|
||||||
|
+#include <memory>
|
||||||
|
|
||||||
|
#include "SymbolTable.hh"
|
||||||
|
#include "NumericalConstants.hh"
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 27 20:34:53 UTC 2022 - Antoine Belvire <antoine.belvire@opensuse.org>
|
||||||
|
|
||||||
|
- Add dynare-5.1-gcc-12.patch: Fix build with gcc 12.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 26 18:42:14 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>
|
Tue Apr 26 18:42:14 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ Source: https://www.dynare.org/release/source/%{name}-%{version}.tar.xz
|
|||||||
# PATCH-FIX-UPSTREAM dynare-no-return-in-non-void-function.patch badshah400@gmail.com -- Return trivial value from a function that is not declared as returning void
|
# PATCH-FIX-UPSTREAM dynare-no-return-in-non-void-function.patch badshah400@gmail.com -- Return trivial value from a function that is not declared as returning void
|
||||||
Patch0: dynare-no-return-in-non-void-function.patch
|
Patch0: dynare-no-return-in-non-void-function.patch
|
||||||
Patch1: dynare-octave7-compat.patch
|
Patch1: dynare-octave7-compat.patch
|
||||||
|
# PATCH-FIX-UPSTREAM dynare-5.1-gcc-12.patch -- Fix build with gcc 12 (https://git.dynare.org/Dynare/dynare/-/issues/1852)
|
||||||
|
Patch2: dynare-5.1-gcc-12.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc%{gccver}-c++
|
BuildRequires: gcc%{gccver}-c++
|
||||||
BuildRequires: gcc%{gccver}-fortran
|
BuildRequires: gcc%{gccver}-fortran
|
||||||
@ -80,7 +82,10 @@ Summary: Documentation for dynare in HTML format
|
|||||||
This package provides documentation for %{name} in HTML format.
|
This package provides documentation for %{name} in HTML format.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1 -d preprocessor
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fvi
|
autoreconf -fvi
|
||||||
|
Loading…
Reference in New Issue
Block a user