diff --git a/0ad.changes b/0ad.changes index b708c40..310009e 100644 --- a/0ad.changes +++ b/0ad.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 25 20:11:43 UTC 2023 - Aaron Puchert + +- Add fix-gcc13-build.patch to fix build with GCC 13. + ------------------------------------------------------------------- Mon Sep 26 21:28:24 UTC 2022 - C J diff --git a/0ad.spec b/0ad.spec index 0985f12..7bd2cf1 100644 --- a/0ad.spec +++ b/0ad.spec @@ -1,7 +1,7 @@ # # spec file for package 0ad # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -46,6 +46,8 @@ Patch1: no-version-check.patch Patch2: PrepareZoneForGC.patch # PATCH-FIX-OPENSUSE -- Skip automatic addition of an RPATH. Patch3: premake-no-automatic-rpath.patch +# PATCH-FIX-UPSTREAM -- Fix build with GCC 13 +Patch4: fix-gcc13-build.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libXcursor-devel @@ -97,6 +99,7 @@ flexible game engine. %setup -q -n %{name}-%{version}-alpha %patch0 -p1 %patch3 -p1 +%patch4 -p1 %if %{with system_mozjs} %patch1 -p1 %patch2 -p1 diff --git a/fix-gcc13-build.patch b/fix-gcc13-build.patch new file mode 100644 index 0000000..1a17741 --- /dev/null +++ b/fix-gcc13-build.patch @@ -0,0 +1,13 @@ +diff --git a/source/tools/atlas/GameInterface/Messages.h b/source/tools/atlas/GameInterface/Messages.h +index 2fa4780..515ae94 100644 +--- a/source/tools/atlas/GameInterface/Messages.h ++++ b/source/tools/atlas/GameInterface/Messages.h +@@ -212,7 +212,7 @@ QUERY(GetCurrentMapSize, + QUERY(RasterizeMinimap, + , + ((int, dimension)) +- ((std::vector, imageBytes)) ++ ((std::vector, imageBytes)) + ); + + QUERY(GetRMSData,