diff options
author | brahmajit das <brahmajit.xyz@gmail.com> | 2022-07-11 19:54:25 +0530 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-18 18:39:36 +0000 |
commit | 3e173f2ec58049876cd16fe25714747932eed092 (patch) | |
tree | 026e95aaec0976cbac174ecd4b89c8c80ade93ef /games-strategy | |
parent | games-strategy/augustus: version bump (diff) | |
download | gentoo-3e173f2ec58049876cd16fe25714747932eed092.tar.gz gentoo-3e173f2ec58049876cd16fe25714747932eed092.tar.bz2 gentoo-3e173f2ec58049876cd16fe25714747932eed092.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 <listout@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26348
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/augustus/augustus-3.1.0.ebuild | 1 | ||||
-rw-r--r-- | games-strategy/augustus/files/augustus-3.1.0-musl-fix-execinfo.patch | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/games-strategy/augustus/augustus-3.1.0.ebuild b/games-strategy/augustus/augustus-3.1.0.ebuild index 1adb27ab8703..254e4efc5a77 100644 --- a/games-strategy/augustus/augustus-3.1.0.ebuild +++ b/games-strategy/augustus/augustus-3.1.0.ebuild @@ -26,6 +26,7 @@ RDEPEND=" PATCHES=( "${FILESDIR}/${PN}-3.0.1-desktop_rename.patch" + "${FILESDIR}/${PN}-3.1.0-musl-fix-execinfo.patch" ) src_prepare() { diff --git a/games-strategy/augustus/files/augustus-3.1.0-musl-fix-execinfo.patch b/games-strategy/augustus/files/augustus-3.1.0-musl-fix-execinfo.patch new file mode 100644 index 000000000000..97b96cf61e59 --- /dev/null +++ b/games-strategy/augustus/files/augustus-3.1.0-musl-fix-execinfo.patch @@ -0,0 +1,12 @@ +# Closes: https://bugs.gentoo.org/829345 +--- a/src/platform/crash_handler.c ++++ b/src/platform/crash_handler.c +@@ -7,7 +7,7 @@ + + #if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && \ + !defined(__vita__) && !defined(__SWITCH__) && !defined(__ANDROID__) && \ +- !defined(__HAIKU__) && !defined(__EMSCRIPTEN__) ++ !defined(__HAIKU__) && !defined(__EMSCRIPTEN__) && defined(__GLIBC__) + + #include <execinfo.h> + #include <signal.h> |