From 3b71e023232ff23164d07ecf7d7fd22f00486378 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 10 May 2023 12:44:56 +0300 Subject: [PATCH] Fix GCC 13 build errors Signed-off-by: David Abdurachmanov --- endless-sky.spec | 8 +++++++- sky-fix-gcc13.patch | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 sky-fix-gcc13.patch diff --git a/endless-sky.spec b/endless-sky.spec index c15f873..f1c92f6 100644 --- a/endless-sky.spec +++ b/endless-sky.spec @@ -1,6 +1,6 @@ Name: endless-sky Version: 0.9.16.1 -Release: 2%{?dist} +Release: 2.0.riscv64%{?dist} Summary: Space exploration, trading, and combat game License: GPLv3 @@ -15,6 +15,9 @@ Patch0: endless-sky-0.9.13-remove-games-path.patch # Unset CCFLAGS override inside SConstruct. Patch1: endless-sky-0.9.14-remove-additional-ccflags.patch +# Fix GCC 13 build errors +Patch2: sky-fix-gcc13.patch + Requires: %{name}-data = %{version}-%{release} BuildRequires: scons BuildRequires: gcc-c++ @@ -104,6 +107,9 @@ sed -i 's|/app|%{_prefix}|g' %{buildroot}%{_bindir}/%{name} %changelog +* Wed May 10 2023 David Abdurachmanov - 0.9.16.1-2.0.riscv64 +- Fix GCC 13 build errors + * Thu Jan 19 2023 Fedora Release Engineering - 0.9.16.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sky-fix-gcc13.patch b/sky-fix-gcc13.patch new file mode 100644 index 0000000..582c31d --- /dev/null +++ b/sky-fix-gcc13.patch @@ -0,0 +1,36 @@ +diff --git source/ImageBuffer.h source/ImageBuffer.h +index afe4ea4..784ee25 100644 +--- source/ImageBuffer.h ++++ source/ImageBuffer.h +@@ -16,6 +16,7 @@ this program. If not, see . + #ifndef IMAGE_BUFFER_H_ + #define IMAGE_BUFFER_H_ + ++#include + #include + + +diff --git source/Preferences.h source/Preferences.h +index 04a5ad8..9eb5e05 100644 +--- source/Preferences.h ++++ source/Preferences.h +@@ -16,6 +16,7 @@ this program. If not, see . + #ifndef PREFERENCES_H_ + #define PREFERENCES_H_ + ++#include + #include + + +diff --git source/Sound.cpp source/Sound.cpp +index 6927c72..9f73c17 100644 +--- source/Sound.cpp ++++ source/Sound.cpp +@@ -24,6 +24,7 @@ this program. If not, see . + #include + #endif + ++#include + #include + #include +