commit:     28122e85fb3f6261a96d82ebbfb2ab917a564858
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu May 13 15:26:48 2021 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu May 13 15:33:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28122e85

games-action/minetest: allow building with gcc-11

Backported upstream commit, should only be necessary
until the next release.

Closes: https://bugs.gentoo.org/789474
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 .../minetest/files/minetest-5.4.1-gcc11.patch       | 21 +++++++++++++++++++++
 games-action/minetest/minetest-5.4.1-r1.ebuild      |  1 +
 2 files changed, 22 insertions(+)

diff --git a/games-action/minetest/files/minetest-5.4.1-gcc11.patch 
b/games-action/minetest/files/minetest-5.4.1-gcc11.patch
new file mode 100644
index 00000000000..bb37cdf31e0
--- /dev/null
+++ b/games-action/minetest/files/minetest-5.4.1-gcc11.patch
@@ -0,0 +1,21 @@
+From 7c2826cbc0f36027d4a9781f433150d1c5d0d03f Mon Sep 17 00:00:00 2001
+From: lhofhansl <[email protected]>
+Date: Thu, 6 May 2021 10:24:30 -0700
+Subject: [PATCH] Fix build for newer versions of GCC (#11246)
+
+---
+ src/clientiface.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/clientiface.h b/src/clientiface.h
+index cc5292b71bf9..dfd97674137c 100644
+--- a/src/clientiface.h
++++ b/src/clientiface.h
+@@ -31,6 +31,7 @@ with this program; if not, write to the Free Software 
Foundation, Inc.,
+ #include <list>
+ #include <vector>
+ #include <set>
++#include <memory>
+ #include <mutex>
+ 
+ class MapBlock;

diff --git a/games-action/minetest/minetest-5.4.1-r1.ebuild 
b/games-action/minetest/minetest-5.4.1-r1.ebuild
index dfd64db5a93..401043e9775 100644
--- a/games-action/minetest/minetest-5.4.1-r1.ebuild
+++ b/games-action/minetest/minetest-5.4.1-r1.ebuild
@@ -63,6 +63,7 @@ BDEPEND="
        nls? ( sys-devel/gettext )"
 
 PATCHES=(
+       "${FILESDIR}"/${PN}-5.4.1-gcc11.patch
        "${FILESDIR}"/${PN}-5.4.1-system_puc_lua.patch
 )
 

Reply via email to