commit: c4dc15f9ab3eeea684ffc0f4a322ae231bf730e1 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu Jun 30 21:18:43 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jun 30 21:32:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4dc15f9
games-rpg/manaplus: fix build with GCC 12 Closes: https://bugs.gentoo.org/855212 Signed-off-by: Sam James <sam <AT> gentoo.org> 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(+) 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 <sys/time.h> + #endif // WIN32 + +-#ifdef __clang__ + #include <ctime> +-#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
