diff options
author | brahmajit das <brahmajit.xyz@gmail.com> | 2022-07-11 21:12:15 +0530 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-15 02:24:17 +0100 |
commit | b5bc12613a5c80d15642ffaa13f421330674fff3 (patch) | |
tree | 82f54260e39f9a8ece992b478591b1dac06db859 /games-strategy/julius | |
parent | dev-python/pymacaroons: enable tests (diff) | |
download | gentoo-b5bc12613a5c80d15642ffaa13f421330674fff3.tar.gz gentoo-b5bc12613a5c80d15642ffaa13f421330674fff3.tar.bz2 gentoo-b5bc12613a5c80d15642ffaa13f421330674fff3.zip |
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 <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26349
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-strategy/julius')
-rw-r--r-- | games-strategy/julius/files/julius-1.6.0-musl-fix-execinfo.patch | 14 | ||||
-rw-r--r-- | games-strategy/julius/julius-1.6.0.ebuild | 1 |
2 files changed, 15 insertions, 0 deletions
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 <execinfo.h> + 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() { |