commit:     79fab52ed6f9b7e0d07529460ef05ed338c45efa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  6 11:30:49 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 11:30:49 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79fab52e

games-strategy/warzone2100: fix build w/ gcc-15

Not sent upstream as we should really bump warzone2100 first.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/warzone2100-4.4.2-gcc15-cstdint.patch    | 30 ++++++++++++++++++++++
 .../warzone2100/warzone2100-4.4.2.ebuild           |  1 +
 2 files changed, 31 insertions(+)

diff --git 
a/games-strategy/warzone2100/files/warzone2100-4.4.2-gcc15-cstdint.patch 
b/games-strategy/warzone2100/files/warzone2100-4.4.2-gcc15-cstdint.patch
new file mode 100644
index 000000000000..75e1aaeb97a0
--- /dev/null
+++ b/games-strategy/warzone2100/files/warzone2100-4.4.2-gcc15-cstdint.patch
@@ -0,0 +1,30 @@
+--- a/3rdparty/SQLiteCpp/include/SQLiteCpp/Statement.h
++++ b/3rdparty/SQLiteCpp/include/SQLiteCpp/Statement.h
+@@ -14,6 +14,7 @@
+ #include <SQLiteCpp/Exception.h>
+ #include <SQLiteCpp/Utils.h> // SQLITECPP_PURE_FUNC
+ 
++#include <cstdint>
+ #include <string>
+ #include <map>
+ #include <memory>
+--- a/lib/wzmaplib/include/wzmaplib/map_io.h
++++ b/lib/wzmaplib/include/wzmaplib/map_io.h
+@@ -21,6 +21,7 @@
+ #pragma once
+ 
+ #include <cstddef>
++#include <cstdint>
+ #include <string>
+ #include <memory>
+ #include <vector>
+--- a/lib/wzmaplib/src/map_script.h
++++ b/lib/wzmaplib/src/map_script.h
+@@ -19,6 +19,7 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
+ #include <vector>
+ #include <string>
+ #include <memory>

diff --git a/games-strategy/warzone2100/warzone2100-4.4.2.ebuild 
b/games-strategy/warzone2100/warzone2100-4.4.2.ebuild
index 3125e1492345..1d21880339b4 100644
--- a/games-strategy/warzone2100/warzone2100-4.4.2.ebuild
+++ b/games-strategy/warzone2100/warzone2100-4.4.2.ebuild
@@ -65,6 +65,7 @@ DOCS=( README.md doc/images doc/Scripting.md 
doc/js-globals.md )
 
 PATCHES=(
        "${FILESDIR}"/${PN}-4.1.3-no-compress-manpages.patch
+       "${FILESDIR}"/${PN}-4.4.2-gcc15-cstdint.patch
 )
 
 src_unpack() {

Reply via email to