From d094894a4ec39ca230a03a129eb9bd5bb93e0da5 Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Thu, 26 Jan 2023 11:27:58 +0100 Subject: [PATCH] fix build with GCC 13 --- ags-gcc13.patch | 22 ++++++++++++++++++++++ ags.spec | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 ags-gcc13.patch diff --git a/ags-gcc13.patch b/ags-gcc13.patch new file mode 100644 index 0000000..116ce80 --- /dev/null +++ b/ags-gcc13.patch @@ -0,0 +1,22 @@ +diff -up ags-v.3.6.0.41/Engine/main/engine.cpp.gcc13 ags-v.3.6.0.41/Engine/main/engine.cpp +--- ags-v.3.6.0.41/Engine/main/engine.cpp.gcc13 2023-01-16 03:15:53.000000000 +0100 ++++ ags-v.3.6.0.41/Engine/main/engine.cpp 2023-01-26 09:48:57.625888966 +0100 +@@ -20,6 +20,7 @@ + + #include + #include ++#include + #if AGS_PLATFORM_OS_WINDOWS + #include // _spawnl + #endif +diff -up ags-v.3.6.0.41/Engine/media/audio/audio_core.cpp.gcc13 ags-v.3.6.0.41/Engine/media/audio/audio_core.cpp +--- ags-v.3.6.0.41/Engine/media/audio/audio_core.cpp.gcc13 2023-01-16 03:15:53.000000000 +0100 ++++ ags-v.3.6.0.41/Engine/media/audio/audio_core.cpp 2023-01-26 09:49:28.452105247 +0100 +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + #include + #include + #include "debug/out.h" diff --git a/ags.spec b/ags.spec index 558d8f6..2746478 100644 --- a/ags.spec +++ b/ags.spec @@ -15,6 +15,8 @@ Version: 3.6.0.41 URL: http://www.adventuregamestudio.co.uk/site/ags/ Release: 1%{?dist} Source0: https://github.com/adventuregamestudio/ags/archive/%{fver}/ags-%{fver}.tar.gz +# fix build with GCC 13 +Patch0: %{name}-gcc13.patch # unbundle freetype Patch2: %{name}-use-system-freetype.patch # use openal-soft @@ -67,6 +69,7 @@ since continued to be developed by contributors. %prep %setup -q -n %{name}-%{?commit:%{commit}}%{!?commit:%{fver}} +%patch0 -p1 -b .gcc13 %if %{with freetype} %patch2 -p1 -b .noft %endif @@ -117,6 +120,7 @@ make V=1 -C Engine PREFIX=%{buildroot}%{_prefix} install %changelog * Tue Jan 24 2023 Dominik Mierzejewski - 3.6.0.41-1 - update to 3.6.0.41 (#2161376) +- fix build with GCC 13 * Wed Jan 18 2023 Fedora Release Engineering - 3.6.0.40-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild