From 77dad47afa6330ab64b14ce1417ec1f99174b88e Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Oct 20 2020 03:57:47 +0000 Subject: Fix missing #includes for gcc-11 --- diff --git a/espresso-gcc11.patch b/espresso-gcc11.patch new file mode 100644 index 0000000..4c78658 --- /dev/null +++ b/espresso-gcc11.patch @@ -0,0 +1,37 @@ +diff --git a/src/core/communication.hpp b/src/core/communication.hpp +index 2959e97..700bd26 100644 +--- a/src/core/communication.hpp ++++ b/src/core/communication.hpp +@@ -49,6 +49,8 @@ + * to \ref CALLBACK_LIST. + */ + ++#include ++ + #include "MpiCallbacks.hpp" + + /** Included needed by callbacks. */ +diff --git a/src/script_interface/ParallelScriptInterface.hpp b/src/script_interface/ParallelScriptInterface.hpp +index c33e67d..02ad815 100644 +--- a/src/script_interface/ParallelScriptInterface.hpp ++++ b/src/script_interface/ParallelScriptInterface.hpp +@@ -23,6 +23,7 @@ + #define SCRIPT_INTERFACE_PARALLEL_SCRIPT_INTERFACE_HPP + + #include ++#include + + #include "MpiCallbacks.hpp" + #include "ScriptInterface.hpp" +diff --git a/src/utils/include/utils/NumeratedContainer.hpp b/src/utils/include/utils/NumeratedContainer.hpp +index 1d99098..1191a79 100644 +--- a/src/utils/include/utils/NumeratedContainer.hpp ++++ b/src/utils/include/utils/NumeratedContainer.hpp +@@ -24,6 +24,7 @@ + * Keep an enumerated list of T objects, managed by the class. + */ + ++#include + #include + #include + #include diff --git a/espresso.spec b/espresso.spec index 383ff6b..b7cc775 100644 --- a/espresso.spec +++ b/espresso.spec @@ -4,7 +4,7 @@ Name: espresso Version: 4.1.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Extensible Simulation Package for Research on Soft matter # segfault on s390x: https://github.com/espressomd/espresso/issues/3753 ExcludeArch: s390x @@ -16,6 +16,7 @@ Source0: https://github.com/%{name}md/%{name}/archive/%{commit}/%{name}-% %else Source0: https://github.com/%{name}md/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz %endif +Patch0: %{name}-gcc11.patch BuildRequires: gcc-c++ BuildRequires: cmake3 >= 3.4 @@ -107,6 +108,7 @@ This package contains %{name} compiled against MPICH2. %else %setup -q -n %{name} %endif +%patch0 -p1 %build %global defopts \\\ @@ -162,6 +164,9 @@ done %{python3_sitearch}/mpich/%{name}md/ %changelog +* Mon Oct 19 2020 Jeff Law - 4.1.3-4 +- Fix missing #includes from gcc-10 + * Sat Aug 01 2020 Fedora Release Engineering - 4.1.3-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild