commit: c1911b70f86e3f764570bd5bd32b5c6363d540d1
Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
AuthorDate: Thu May 6 09:41:00 2021 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu May 6 13:18:46 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1911b70
games-engines/openmw: fix build with gcc 11
Signed-off-by: Alexey Sokolov <sokolov <AT> google.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
.../openmw/files/openmw-0.46.0-gcc11.patch | 36 ++++++++++++++++++++++
games-engines/openmw/openmw-0.46.0.ebuild | 1 +
2 files changed, 37 insertions(+)
diff --git a/games-engines/openmw/files/openmw-0.46.0-gcc11.patch
b/games-engines/openmw/files/openmw-0.46.0-gcc11.patch
new file mode 100644
index 00000000000..0dc3106fb3b
--- /dev/null
+++ b/games-engines/openmw/files/openmw-0.46.0-gcc11.patch
@@ -0,0 +1,36 @@
+diff --git a/components/sceneutil/mwshadowtechnique.cpp
b/components/sceneutil/mwshadowtechnique.cpp
+index cb3a1b2..62cfeec 100644
+--- a/components/sceneutil/mwshadowtechnique.cpp
++++ b/components/sceneutil/mwshadowtechnique.cpp
+@@ -24,6 +24,7 @@
+ #include <osg/io_utils>
+
+ #include <sstream>
++#include <limits>
+
+ namespace {
+
+diff --git a/components/sceneutil/shadow.cpp b/components/sceneutil/shadow.cpp
+index 035c19a..aba1b81 100644
+--- a/components/sceneutil/shadow.cpp
++++ b/components/sceneutil/shadow.cpp
+@@ -4,6 +4,7 @@
+
+ #include <components/sceneutil/vismask.hpp>
+ #include <components/settings/settings.hpp>
++#include <limits>
+
+ namespace SceneUtil
+ {
+diff --git a/components/terrain/quadtreeworld.cpp
b/components/terrain/quadtreeworld.cpp
+index f998b78..e0e47dd 100644
+--- a/components/terrain/quadtreeworld.cpp
++++ b/components/terrain/quadtreeworld.cpp
+@@ -3,6 +3,7 @@
+ #include <osgUtil/CullVisitor>
+
+ #include <sstream>
++#include <limits>
+
+ #include <components/misc/constants.hpp>
+ #include <components/sceneutil/mwshadowtechnique.hpp>
diff --git a/games-engines/openmw/openmw-0.46.0.ebuild
b/games-engines/openmw/openmw-0.46.0.ebuild
index ce3fb564e71..9b4a6bfa4e9 100644
--- a/games-engines/openmw/openmw-0.46.0.ebuild
+++ b/games-engines/openmw/openmw-0.46.0.ebuild
@@ -72,6 +72,7 @@ PATCHES=(
# https://gitlab.com/OpenMW/openmw/-/merge_requests/163
"${DISTDIR}"/openmw-0.46.0-floattest.patch
"${FILESDIR}"/openmw-0.46.0-floattest2.patch
+ "${FILESDIR}"/openmw-0.46.0-gcc11.patch
)
src_prepare() {