commit: 6d6d0127c785423692e175399b4e6c317587524a Author: John Helmert III <ajak <AT> gentoo <DOT> org> AuthorDate: Wed Sep 7 02:03:59 2022 +0000 Commit: John Helmert III <ajak <AT> gentoo <DOT> org> CommitDate: Wed Sep 7 02:05:00 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d6d0127
games-emulation/openmsx: fix time_t build failure Closes: https://bugs.gentoo.org/868726 Signed-off-by: John Helmert III <ajak <AT> gentoo.org> .../openmsx/files/openmsx-18.0-add-ctime.patch | 15 +++++++++++++++ .../{openmsx-18.0-r1.ebuild => openmsx-18.0-r2.ebuild} | 2 ++ 2 files changed, 17 insertions(+) diff --git a/games-emulation/openmsx/files/openmsx-18.0-add-ctime.patch b/games-emulation/openmsx/files/openmsx-18.0-add-ctime.patch new file mode 100644 index 000000000000..bc104acaeec5 --- /dev/null +++ b/games-emulation/openmsx/files/openmsx-18.0-add-ctime.patch @@ -0,0 +1,15 @@ +https://github.com/openMSX/openMSX/pull/1445 +https://bugs.gentoo.org/868726 + +diff --git a/src/file/FileBase.hh b/src/file/FileBase.hh +index ec17fb641..d7397f908 100644 +--- a/src/file/FileBase.hh ++++ b/src/file/FileBase.hh +@@ -4,6 +4,7 @@ + #include "MemBuffer.hh" + #include "span.hh" + #include <cstdint> ++#include <ctime> + #include <string> + + namespace openmsx { diff --git a/games-emulation/openmsx/openmsx-18.0-r1.ebuild b/games-emulation/openmsx/openmsx-18.0-r2.ebuild similarity index 98% rename from games-emulation/openmsx/openmsx-18.0-r1.ebuild rename to games-emulation/openmsx/openmsx-18.0-r2.ebuild index 74a4c7604b70..ba32a858f88c 100644 --- a/games-emulation/openmsx/openmsx-18.0-r1.ebuild +++ b/games-emulation/openmsx/openmsx-18.0-r2.ebuild @@ -38,6 +38,8 @@ the following directories: /usr/share/${PN}/systemroms or ~/.openMSX/share/systemroms " +PATCHES=( "${FILESDIR}/${P}-add-ctime.patch" ) + src_prepare() { default sed -i \