commit:     546afd11b7bde55829c409c406eac51c8d023d78
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Thu Feb 22 22:46:38 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Mar  4 21:48:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=546afd11

games-engines/openmw: fix build with gcc 14

Closes: https://bugs.gentoo.org/925105
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/35490
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-engines/openmw/files/openmw-0.48.0-gcc14.patch | 13 +++++++++++++
 games-engines/openmw/openmw-0.48.0.ebuild            |  4 ++++
 2 files changed, 17 insertions(+)

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
 

Reply via email to