diff options
-rw-r--r-- | games-engines/minetest/files/minetest-5.8.0-include_algorithm.patch | 20 | ||||
-rw-r--r-- | games-engines/minetest/minetest-5.8.0.ebuild | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/games-engines/minetest/files/minetest-5.8.0-include_algorithm.patch b/games-engines/minetest/files/minetest-5.8.0-include_algorithm.patch new file mode 100644 index 000000000000..ac19a58de751 --- /dev/null +++ b/games-engines/minetest/files/minetest-5.8.0-include_algorithm.patch @@ -0,0 +1,20 @@ +From https://github.com/minetest/minetest/commit/c9ab61aa8cd0ca50bc8c4d90f257bb5ed3b0bb00 +https://bugs.gentoo.org/921131 + +From: Alfred Wingate <parona@protonmail.com> +Date: Sun, 31 Dec 2023 17:39:01 +0200 +Subject: [PATCH] Add missing header for gcc-14 + +https://gcc.gnu.org/gcc-14/porting_to.html + +Signed-off-by: Alfred Wingate <parona@protonmail.com> +--- a/src/client/sound/sound_data.cpp ++++ b/src/client/sound/sound_data.cpp +@@ -25,6 +25,7 @@ with this program; ifnot, write to the Free Software Foundation, Inc., + #include "sound_data.h" + + #include "sound_constants.h" ++#include <algorithm> + + namespace sound { + diff --git a/games-engines/minetest/minetest-5.8.0.ebuild b/games-engines/minetest/minetest-5.8.0.ebuild index 3e87af07e57c..7e29fe96d7ad 100644 --- a/games-engines/minetest/minetest-5.8.0.ebuild +++ b/games-engines/minetest/minetest-5.8.0.ebuild @@ -66,6 +66,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-5.7.0-no_upstream_optflags.patch + "${FILESDIR}"/${PN}-5.8.0-include_algorithm.patch ) src_prepare() { |