summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2024-01-30 11:46:28 +0000
committerMarek Szuba <marecki@gentoo.org>2024-01-30 12:04:23 +0000
commit5576b969a6d58b981253397287bf4fd3d76e8e64 (patch)
tree5dccbe061748745b5d510d4737e35c24d075095a /games-engines
parentmedia-libs/hamlib: Fix implicit declaration of function exit (diff)
downloadgentoo-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.patch20
-rw-r--r--games-engines/minetest/minetest-5.8.0.ebuild1
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() {