diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /x11-terms/gnome-terminal/files/gnome-terminal-3.44.1-fix-missing-wexitcode.patch | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'x11-terms/gnome-terminal/files/gnome-terminal-3.44.1-fix-missing-wexitcode.patch')
-rw-r--r-- | x11-terms/gnome-terminal/files/gnome-terminal-3.44.1-fix-missing-wexitcode.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11-terms/gnome-terminal/files/gnome-terminal-3.44.1-fix-missing-wexitcode.patch b/x11-terms/gnome-terminal/files/gnome-terminal-3.44.1-fix-missing-wexitcode.patch new file mode 100644 index 000000000000..aff2237db902 --- /dev/null +++ b/x11-terms/gnome-terminal/files/gnome-terminal-3.44.1-fix-missing-wexitcode.patch @@ -0,0 +1,21 @@ +https://gitlab.gnome.org/GNOME/vte/-/issues/72 +Someone already tried to upstream a similar patch to gnome vte that +would fix this but was rejected by maintainer. More info can be found +on the link above. + +W_EXITCODE is missing in musl thus causing gnome-terminal build to fail. +This patch checks if W_EXITCODE is not defined and then defines it. +--- a/src/terminal.cc ++++ b/src/terminal.cc +@@ -47,6 +47,11 @@ + GS_DEFINE_CLEANUP_FUNCTION0(TerminalOptions*, gs_local_options_free, terminal_options_free) + #define gs_free_options __attribute__ ((cleanup(gs_local_options_free))) + ++/* fix for musl */ ++#ifndef W_EXITCODE ++#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) ++#endif ++ + /* Wait-for-exit helper */ + + typedef struct { |