diff options
author | Marek Szuba <marecki@gentoo.org> | 2024-01-30 11:46:28 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2024-01-30 12:04:23 +0000 |
commit | 5576b969a6d58b981253397287bf4fd3d76e8e64 (patch) | |
tree | 5dccbe061748745b5d510d4737e35c24d075095a /games-engines | |
parent | media-libs/hamlib: Fix implicit declaration of function exit (diff) | |
download | gentoo-5576b969a6d58b981253397287bf4fd3d76e8e64.tar.gz gentoo-5576b969a6d58b981253397287bf4fd3d76e8e64.tar.bz2 gentoo-5576b969a6d58b981253397287bf4fd3d76e8e64.zip |
games-engines/minetest: fix gcc-14 build error
Thanks-to: Alfred Wingate <parona@protonmail.com>
Closes: https://bugs.gentoo.org/921131
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'games-engines')
-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() { |