summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <alexey+gentoo@asokolov.org>2024-02-22 22:46:38 +0000
committerJames Le Cuirot <chewi@gentoo.org>2024-03-04 21:48:18 +0000
commit546afd11b7bde55829c409c406eac51c8d023d78 (patch)
tree6a8a292397dd869d6ff48409cf4f86bce7858a04 /games-engines
parentgames-engines/fheroes2: drop 1.0.11 (diff)
downloadgentoo-546afd11b7bde55829c409c406eac51c8d023d78.tar.gz
gentoo-546afd11b7bde55829c409c406eac51c8d023d78.tar.bz2
gentoo-546afd11b7bde55829c409c406eac51c8d023d78.zip
games-engines/openmw: fix build with gcc 14
Closes: https://bugs.gentoo.org/925105 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Closes: https://github.com/gentoo/gentoo/pull/35490 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/openmw/files/openmw-0.48.0-gcc14.patch13
-rw-r--r--games-engines/openmw/openmw-0.48.0.ebuild4
2 files changed, 17 insertions, 0 deletions
diff --git a/games-engines/openmw/files/openmw-0.48.0-gcc14.patch b/games-engines/openmw/files/openmw-0.48.0-gcc14.patch
new file mode 100644
index 000000000000..b352d0536c8b
--- /dev/null
+++ b/games-engines/openmw/files/openmw-0.48.0-gcc14.patch
@@ -0,0 +1,13 @@
+Fix build with gcc 14
+https://bugs.gentoo.org/925105
+
+--- a/components/bsa/bsa_file.cpp
++++ b/components/bsa/bsa_file.cpp
+@@ -26,6 +26,7 @@
+ #include <components/files/constrainedfilestream.hpp>
+
+ #include <cassert>
++#include <algorithm>
+
+ #include <boost/filesystem/path.hpp>
+ #include <boost/filesystem/fstream.hpp>
diff --git a/games-engines/openmw/openmw-0.48.0.ebuild b/games-engines/openmw/openmw-0.48.0.ebuild
index eb7f2b4e8286..287a32cb26c6 100644
--- a/games-engines/openmw/openmw-0.48.0.ebuild
+++ b/games-engines/openmw/openmw-0.48.0.ebuild
@@ -73,6 +73,10 @@ BDEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}/openmw-0.48.0-gcc14.patch"
+)
+
src_prepare() {
cmake_src_prepare