Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/openmsx/, games-emulation/openmsx/files/
Date: Wed, 07 Sep 2022 02:05:08
Message-Id: 1662516300.6d6d0127c785423692e175399b4e6c317587524a.ajak@gentoo
1 commit: 6d6d0127c785423692e175399b4e6c317587524a
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 7 02:03:59 2022 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 7 02:05:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d6d0127
7
8 games-emulation/openmsx: fix time_t build failure
9
10 Closes: https://bugs.gentoo.org/868726
11 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
12
13 .../openmsx/files/openmsx-18.0-add-ctime.patch | 15 +++++++++++++++
14 .../{openmsx-18.0-r1.ebuild => openmsx-18.0-r2.ebuild} | 2 ++
15 2 files changed, 17 insertions(+)
16
17 diff --git a/games-emulation/openmsx/files/openmsx-18.0-add-ctime.patch b/games-emulation/openmsx/files/openmsx-18.0-add-ctime.patch
18 new file mode 100644
19 index 000000000000..bc104acaeec5
20 --- /dev/null
21 +++ b/games-emulation/openmsx/files/openmsx-18.0-add-ctime.patch
22 @@ -0,0 +1,15 @@
23 +https://github.com/openMSX/openMSX/pull/1445
24 +https://bugs.gentoo.org/868726
25 +
26 +diff --git a/src/file/FileBase.hh b/src/file/FileBase.hh
27 +index ec17fb641..d7397f908 100644
28 +--- a/src/file/FileBase.hh
29 ++++ b/src/file/FileBase.hh
30 +@@ -4,6 +4,7 @@
31 + #include "MemBuffer.hh"
32 + #include "span.hh"
33 + #include <cstdint>
34 ++#include <ctime>
35 + #include <string>
36 +
37 + namespace openmsx {
38
39 diff --git a/games-emulation/openmsx/openmsx-18.0-r1.ebuild b/games-emulation/openmsx/openmsx-18.0-r2.ebuild
40 similarity index 98%
41 rename from games-emulation/openmsx/openmsx-18.0-r1.ebuild
42 rename to games-emulation/openmsx/openmsx-18.0-r2.ebuild
43 index 74a4c7604b70..ba32a858f88c 100644
44 --- a/games-emulation/openmsx/openmsx-18.0-r1.ebuild
45 +++ b/games-emulation/openmsx/openmsx-18.0-r2.ebuild
46 @@ -38,6 +38,8 @@ the following directories: /usr/share/${PN}/systemroms
47 or ~/.openMSX/share/systemroms
48 "
49
50 +PATCHES=( "${FILESDIR}/${P}-add-ctime.patch" )
51 +
52 src_prepare() {
53 default
54 sed -i \