Skip to content

Commit

Permalink
games-strategy/julius: Fix building on musl
Browse files Browse the repository at this point in the history
execinfo is not available on musl, hence only include that header on
GLIBC systems

Closes: https://bugs.gentoo.org/829246

Signed-off-by: brahmajit das <[email protected]>
Closes: gentoo#26349
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
listout authored and thesamesam committed Jul 15, 2022
1 parent f536fcf commit b5bc126
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions games-strategy/julius/files/julius-1.6.0-musl-fix-execinfo.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Fix building on musl
#
# Closes: https://bugs.gentoo.org/829246
--- a/src/core/backtrace.c
+++ b/src/core/backtrace.c
@@ -2,7 +2,7 @@

#include "core/log.h"

-#if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__vita__) && !defined(__SWITCH__) && !defined(__ANDROID__)
+#if defined(__GNUC__) && defined(__GLIBC__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__vita__) && !defined(__SWITCH__) && !defined(__ANDROID__)

#include <execinfo.h>

1 change: 1 addition & 0 deletions games-strategy/julius/julius-1.6.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RDEPEND="

PATCHES=(
"${FILESDIR}"/${PN}-1.4.1-rename.patch
"${FILESDIR}"/${PN}-1.6.0-musl-fix-execinfo.patch
)

src_install() {
Expand Down

0 comments on commit b5bc126

Please sign in to comment.