diff options
author | brahmajit das <brahmajit.xyz@gmail.com> | 2022-07-11 16:39:48 +0530 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-15 02:35:10 +0100 |
commit | 8863de222bd7127665fa27b8814c99a8e6464c90 (patch) | |
tree | 8f6bc5a59b5b943630dd16fd8e79b75a7b1baac8 /games-strategy/augustus | |
parent | dev-util/google-perftools: Version bump to 2.10 (diff) | |
download | gentoo-8863de222bd7127665fa27b8814c99a8e6464c90.tar.gz gentoo-8863de222bd7127665fa27b8814c99a8e6464c90.tar.bz2 gentoo-8863de222bd7127665fa27b8814c99a8e6464c90.zip |
games-strategy/augustus: Fix build on musl
musl doesn't provide execinfo.h, so include it only on glibc systems
Closes: https://bugs.gentoo.org/829345
Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26344
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-strategy/augustus')
-rw-r--r-- | games-strategy/augustus/augustus-3.0.1.ebuild | 1 | ||||
-rw-r--r-- | games-strategy/augustus/files/augustus-3.0.1-musl-fix-execinfo.patch | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/games-strategy/augustus/augustus-3.0.1.ebuild b/games-strategy/augustus/augustus-3.0.1.ebuild index 1adb27ab8703..e9e88193f601 100644 --- a/games-strategy/augustus/augustus-3.0.1.ebuild +++ b/games-strategy/augustus/augustus-3.0.1.ebuild @@ -26,6 +26,7 @@ RDEPEND=" PATCHES=( "${FILESDIR}/${PN}-3.0.1-desktop_rename.patch" + "${FILESDIR}/${PN}-3.0.1-musl-fix-execinfo.patch" ) src_prepare() { diff --git a/games-strategy/augustus/files/augustus-3.0.1-musl-fix-execinfo.patch b/games-strategy/augustus/files/augustus-3.0.1-musl-fix-execinfo.patch new file mode 100644 index 000000000000..e79e87702429 --- /dev/null +++ b/games-strategy/augustus/files/augustus-3.0.1-musl-fix-execinfo.patch @@ -0,0 +1,13 @@ +diff --git a/src/core/backtrace.c b/src/core/backtrace.c +index 374fcdd..daf5c71 100644 +--- 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__) && !defined(__HAIKU__) ++#if defined(__GNUC__) && defined(__GLIBC__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__vita__) && !defined(__SWITCH__) && !defined(__ANDROID__) && !defined(__HAIKU__) + + #include <execinfo.h> + |