commit:     924881b4e6497164f15f7145b3528f09af0099fd
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Sat May 27 18:04:35 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun May 28 13:21:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=924881b4

games-engines/openmw: fix build with gcc13

Closes: https://bugs.gentoo.org/905337
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/31190
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../openmw/files/openmw-0.47.0-gcc13.patch         | 22 ++++++++++++++++++++++
 games-engines/openmw/openmw-0.47.0-r2.ebuild       |  1 +
 2 files changed, 23 insertions(+)

diff --git a/games-engines/openmw/files/openmw-0.47.0-gcc13.patch 
b/games-engines/openmw/files/openmw-0.47.0-gcc13.patch
new file mode 100644
index 000000000000..bb99b7c77880
--- /dev/null
+++ b/games-engines/openmw/files/openmw-0.47.0-gcc13.patch
@@ -0,0 +1,22 @@
+Fix missing includes causing issues with gcc13.
+https://bugs.gentoo.org/905337
+--- a/apps/openmw/mwinput/controlswitch.hpp
++++ b/apps/openmw/mwinput/controlswitch.hpp
+@@ -3,6 +3,7 @@
+ 
+ #include <map>
+ #include <string>
++#include <cinttypes>
+ 
+ namespace ESM
+ {
+--- a/components/misc/utf8stream.hpp
++++ b/components/misc/utf8stream.hpp
+@@ -3,6 +3,7 @@
+ 
+ #include <cstring>
+ #include <tuple>
++#include <cinttypes>
+ 
+ class Utf8Stream
+ {

diff --git a/games-engines/openmw/openmw-0.47.0-r2.ebuild 
b/games-engines/openmw/openmw-0.47.0-r2.ebuild
index 91dd01645c25..98cbd99efd3a 100644
--- a/games-engines/openmw/openmw-0.47.0-r2.ebuild
+++ b/games-engines/openmw/openmw-0.47.0-r2.ebuild
@@ -65,6 +65,7 @@ PATCHES=(
        "${FILESDIR}"/openmw-0.47.0-mygui-license.patch
        "${FILESDIR}"/openmw-0.47.0-sigstksz.patch
        "${FILESDIR}"/openmw-0.47.0-gcc12.patch
+       "${FILESDIR}"/openmw-0.47.0-gcc13.patch
 )
 
 src_prepare() {

Reply via email to