From 1fd5dca7dc6b6210dbfb9c3bea72e632a2db8b36 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 14 Oct 2020 07:33:56 -0600 Subject: [PATCH] Add missing #includes for gcc-11 --- endless-sky-gcc11.patch | 24 ++++++++++++++++++++++++ endless-sky.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 endless-sky-gcc11.patch diff --git a/endless-sky-gcc11.patch b/endless-sky-gcc11.patch new file mode 100644 index 0000000..3255521 --- /dev/null +++ b/endless-sky-gcc11.patch @@ -0,0 +1,24 @@ +diff --git a/source/MapDetailPanel.cpp b/source/MapDetailPanel.cpp +index 79e023d..3786d90 100644 +--- source/MapDetailPanel.cpp ++++ source/MapDetailPanel.cpp +@@ -44,6 +44,7 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. + #include + #include + #include ++#include + + using namespace std; + +diff --git a/source/PlayerInfo.cpp b/source/PlayerInfo.cpp +index 8630b98..003fa10 100644 +--- source/PlayerInfo.cpp ++++ source/PlayerInfo.cpp +@@ -42,6 +42,7 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. + #include + #include + #include ++#include + + using namespace std; + diff --git a/endless-sky.spec b/endless-sky.spec index afce3f2..f38e158 100644 --- a/endless-sky.spec +++ b/endless-sky.spec @@ -2,7 +2,7 @@ Name: endless-sky Version: 0.9.12 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Space exploration, trading, and combat game License: GPLv3 @@ -17,6 +17,7 @@ Patch0: endless-sky-0.8.10-remove-games-path.patch # Unset CCFLAGS override inside SConstruct. Patch1: endless-sky-0.9.4-remove-additional-ccflags.patch Patch2: endless-sky-0.9.10-gcc10.patch +Patch3: endless-sky-gcc11.patch Requires: %{name}-data = %{version}-%{release} BuildRequires: scons @@ -105,6 +106,9 @@ sed -i 's|/app|%{_prefix}|g' %{buildroot}%{_bindir}/%{name} %changelog +* Wed Oct 14 2020 Jeff Law - 0.9.12-3 +- Add missing #includes for gcc-11 + * Mon Jul 27 2020 Fedora Release Engineering - 0.9.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild