From b5bc12613a5c80d15642ffaa13f421330674fff3 Mon Sep 17 00:00:00 2001 From: brahmajit das Date: Mon, 11 Jul 2022 21:12:15 +0530 Subject: games-strategy/julius: Fix building on musl 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 Closes: https://github.com/gentoo/gentoo/pull/26349 Signed-off-by: Sam James --- .../julius/files/julius-1.6.0-musl-fix-execinfo.patch | 14 ++++++++++++++ games-strategy/julius/julius-1.6.0.ebuild | 1 + 2 files changed, 15 insertions(+) create mode 100644 games-strategy/julius/files/julius-1.6.0-musl-fix-execinfo.patch (limited to 'games-strategy') diff --git a/games-strategy/julius/files/julius-1.6.0-musl-fix-execinfo.patch b/games-strategy/julius/files/julius-1.6.0-musl-fix-execinfo.patch new file mode 100644 index 000000000000..08a136ef5cb4 --- /dev/null +++ b/games-strategy/julius/files/julius-1.6.0-musl-fix-execinfo.patch @@ -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 + diff --git a/games-strategy/julius/julius-1.6.0.ebuild b/games-strategy/julius/julius-1.6.0.ebuild index 5730e843db21..9852bbf898ab 100644 --- a/games-strategy/julius/julius-1.6.0.ebuild +++ b/games-strategy/julius/julius-1.6.0.ebuild @@ -24,6 +24,7 @@ RDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-1.4.1-rename.patch + "${FILESDIR}"/${PN}-1.6.0-musl-fix-execinfo.patch ) src_install() { -- cgit v1.2.3-65-gdbad