From 610bb3553288b51ec7e013b2c0f6e18bca930758 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 13 Feb 2020 00:11:54 +0000 Subject: games-simulation/corsix-th: tweak for gcc-10 Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich --- games-simulation/corsix-th/corsix-th-0.62.ebuild | 4 +++- games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch (limited to 'games-simulation') diff --git a/games-simulation/corsix-th/corsix-th-0.62.ebuild b/games-simulation/corsix-th/corsix-th-0.62.ebuild index dd775153d21a..b7772ebb3381 100644 --- a/games-simulation/corsix-th/corsix-th-0.62.ebuild +++ b/games-simulation/corsix-th/corsix-th-0.62.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -34,6 +34,8 @@ DEPEND="${RDEPEND} S="${WORKDIR}/${MY_PN}-${MY_PV}" +PATCHES=("${FILESDIR}"/${P}-gcc-10.patch) + src_configure() { local mycmakeargs=( -DWITH_AUDIO="$(usex sound)" diff --git a/games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch b/games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch new file mode 100644 index 000000000000..ff820f44946b --- /dev/null +++ b/games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch @@ -0,0 +1,10 @@ +--- a/CorsixTH/Src/th_lua_map.cpp ++++ b/CorsixTH/Src/th_lua_map.cpp +@@ -26,6 +26,7 @@ SOFTWARE. + #include + #include + #include ++#include /* std::out_of_range */ + + static const int player_max = 4; + -- cgit v1.2.3-65-gdbad