commit: 0784ac677157c9940fe45091321c9939a9daa559 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> AuthorDate: Sat Jan 15 09:59:46 2022 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Sat Jan 15 10:01:24 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0784ac67
games-emulation/dosbox-staging: fix compilation with musl Closes: https://bugs.gentoo.org/830930 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> .../dosbox-staging/dosbox-staging-0.78.1.ebuild | 2 ++ .../files/dosbox-staging-0.78.1-musl.patch | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.78.1.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.78.1.ebuild index 462a9abd8870..a882bcb7b4a8 100644 --- a/games-emulation/dosbox-staging/dosbox-staging-0.78.1.ebuild +++ b/games-emulation/dosbox-staging/dosbox-staging-0.78.1.ebuild @@ -35,6 +35,8 @@ BDEPEND="test? ( dev-cpp/gtest )" DOCS=( AUTHORS README THANKS ) +PATCHES=( "${FILESDIR}"/${P}-musl.patch ) + src_prepare() { default diff --git a/games-emulation/dosbox-staging/files/dosbox-staging-0.78.1-musl.patch b/games-emulation/dosbox-staging/files/dosbox-staging-0.78.1-musl.patch new file mode 100644 index 000000000000..a1f4fe3ca654 --- /dev/null +++ b/games-emulation/dosbox-staging/files/dosbox-staging-0.78.1-musl.patch @@ -0,0 +1,16 @@ +diff --git a/src/libs/loguru/loguru.cpp b/src/libs/loguru/loguru.cpp +index 9675cc1d..c4b5c0e3 100644 +--- a/src/libs/loguru/loguru.cpp ++++ b/src/libs/loguru/loguru.cpp +@@ -83,7 +83,7 @@ + #ifndef LOGURU_STACKTRACES + #define LOGURU_STACKTRACES 0 + #endif +-#elif defined(__rtems__) || defined(__ANDROID__) || defined(__FreeBSD__) ++#elif defined(__rtems__) || defined(__ANDROID__) || defined(__FreeBSD__) || !defined(__GLIBC__) + #define LOGURU_PTHREADS 1 + #define LOGURU_WINTHREADS 0 + #ifndef LOGURU_STACKTRACES +-- +2.34.1 +
