fix build with GCC 13
This commit is contained in:
parent
93cf522c90
commit
d094894a4e
2 changed files with 26 additions and 0 deletions
22
ags-gcc13.patch
Normal file
22
ags-gcc13.patch
Normal file
|
|
@ -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 <errno.h>
|
||||
#include <stdio.h>
|
||||
+#include <stdexcept>
|
||||
#if AGS_PLATFORM_OS_WINDOWS
|
||||
#include <process.h> // _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 <math.h>
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
+#include <stdexcept>
|
||||
#include <thread>
|
||||
#include <unordered_map>
|
||||
#include "debug/out.h"
|
||||
4
ags.spec
4
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 <dominik@greysector.net> - 3.6.0.41-1
|
||||
- update to 3.6.0.41 (#2161376)
|
||||
- fix build with GCC 13
|
||||
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0.40-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue