diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2022-01-15 10:59:46 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2022-01-15 11:01:24 +0100 |
commit | 0784ac677157c9940fe45091321c9939a9daa559 (patch) | |
tree | e71304ba33854287b9bc65d1924b5f1a6050e625 /games-emulation | |
parent | www-client/vivaldi-snapshot: Drop old 5.1.2519.3 (diff) | |
download | gentoo-0784ac677157c9940fe45091321c9939a9daa559.tar.gz gentoo-0784ac677157c9940fe45091321c9939a9daa559.tar.bz2 gentoo-0784ac677157c9940fe45091321c9939a9daa559.zip |
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@gentoo.org>
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/dosbox-staging/dosbox-staging-0.78.1.ebuild | 2 | ||||
-rw-r--r-- | games-emulation/dosbox-staging/files/dosbox-staging-0.78.1-musl.patch | 16 |
2 files changed, 18 insertions, 0 deletions
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 + |