commit:     1bebd3227ed82df26c9c8979cfc4de5d177c8ec5
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat May 23 13:57:20 2020 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat May 23 13:57:20 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bebd322

games-fps/eduke32: fix compilation with gcc-10

Closes: https://bugs.gentoo.org/724626
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 games-fps/eduke32/eduke32-20200505.8904.ebuild            |  1 +
 games-fps/eduke32/files/eduke32-20200505.8904-gcc10.patch | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/games-fps/eduke32/eduke32-20200505.8904.ebuild 
b/games-fps/eduke32/eduke32-20200505.8904.ebuild
index c0662991c69..c493f5f8a35 100644
--- a/games-fps/eduke32/eduke32-20200505.8904.ebuild
+++ b/games-fps/eduke32/eduke32-20200505.8904.ebuild
@@ -88,6 +88,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-20190419.7615-wad2map-buildfix.patch"
        "${FILESDIR}/${PN}-20190820.8043-log-to-tmpdir.patch"
        "${FILESDIR}/${PN}-20190820.8043-search-duke3d-path.patch"
+       "${FILESDIR}/${PN}-20200505.8904-gcc10.patch"
 )
 
 src_unpack() {

diff --git a/games-fps/eduke32/files/eduke32-20200505.8904-gcc10.patch 
b/games-fps/eduke32/files/eduke32-20200505.8904-gcc10.patch
new file mode 100644
index 00000000000..2795e999c8e
--- /dev/null
+++ b/games-fps/eduke32/files/eduke32-20200505.8904-gcc10.patch
@@ -0,0 +1,13 @@
+This patch fixes compilation with GCC-10.
+
+diff -dru a/source/audiolib/include/music.h b/source/audiolib/include/music.h
+--- a/source/audiolib/include/music.h
++++ b/source/audiolib/include/music.h
+@@ -38,6 +38,7 @@
+ 
+ #ifdef __linux__
+ #include <vector>
++#include <string>
+ 
+ typedef struct
+ {

Reply via email to