From c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 30 Jun 2022 21:18:43 +0000 Subject: games-rpg/manaplus: fix build with GCC 12 Closes: https://bugs.gentoo.org/855212 Signed-off-by: Sam James --- games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch | 13 +++++++++++++ games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch diff --git a/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch b/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch new file mode 100644 index 000000000000..5ded1f0fa9d5 --- /dev/null +++ b/games-rpg/manaplus/files/manaplus-1.9.3.23-gcc12-time.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/855212 +--- a/src/resources/wallpaper.cpp ++++ b/src/resources/wallpaper.cpp +@@ -38,9 +38,7 @@ + #include + #endif // WIN32 + +-#ifdef __clang__ + #include +-#endif // __clang__ + + #include "debug.h" + diff --git a/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild b/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild index 6c1d04cbb663..f481e1cd9b21 100644 --- a/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild +++ b/games-rpg/manaplus/manaplus-1.9.3.23-r1.ebuild @@ -55,6 +55,10 @@ DEPEND="${RDEPEND} virtual/pkgconfig nls? ( sys-devel/gettext )" +PATCHES=( + "${FILESDIR}"/${PN}-1.9.3.23-gcc12-time.patch +) + src_prepare() { default -- cgit v1.2.3-18-g5258