Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 868726 - games-emulation/openmsx-18.0-r1 fails to compile (MUSL): FileBase.hh:34:31: error: time_t does not name a type
Summary: games-emulation/openmsx-18.0-r1 fails to compile (MUSL): FileBase.hh:34:31: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://github.com/openMSX/openMSX/pu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-06 11:49 UTC by Agostino Sarubbo
Modified: 2022-09-07 02:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,277.03 KB, text/plain)
2022-09-06 11:49 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-09-06 11:49:34 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-emulation/openmsx-18.0-r1 fails to compile (MUSL).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-09-06 11:49:36 UTC
Created attachment 803410 [details]
build.log

build log and emerge --info
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-07 01:45:08 UTC
Fix is trivial:

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 {
Comment 3 Larry the Git Cow gentoo-dev 2022-09-07 02:05:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d6d0127c785423692e175399b4e6c317587524a

commit 6d6d0127c785423692e175399b4e6c317587524a
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2022-09-07 02:03:59 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-09-07 02:05:00 +0000

    games-emulation/openmsx: fix time_t build failure
    
    Closes: https://bugs.gentoo.org/868726
    Signed-off-by: John Helmert III <ajak@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(+)