summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@google.com>2021-05-06 09:41:00 +0000
committerJoonas Niilola <juippis@gentoo.org>2021-05-06 16:18:46 +0300
commitc1911b70f86e3f764570bd5bd32b5c6363d540d1 (patch)
tree8680b91191b1a98cf3d19c14ab72abf27f7d49ff /games-engines
parentdev-python/dash-core-components: add to the tree (diff)
downloadgentoo-c1911b70f86e3f764570bd5bd32b5c6363d540d1.tar.gz
gentoo-c1911b70f86e3f764570bd5bd32b5c6363d540d1.tar.bz2
gentoo-c1911b70f86e3f764570bd5bd32b5c6363d540d1.zip
games-engines/openmw: fix build with gcc 11
Signed-off-by: Alexey Sokolov <sokolov@google.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/openmw/files/openmw-0.46.0-gcc11.patch36
-rw-r--r--games-engines/openmw/openmw-0.46.0.ebuild1
2 files changed, 37 insertions, 0 deletions
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 000000000000..0dc3106fb3bf
--- /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 ce3fb564e714..9b4a6bfa4e9d 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() {