1 |
commit: 4c8b5a75fe2ccac62acf57fa0d650514157b816b |
2 |
Author: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 19 15:07:15 2021 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 19 15:07:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=4c8b5a75 |
7 |
|
8 |
media-tv/kodi: Set 2MB stacksize for musl users |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org> |
12 |
|
13 |
media-tv/kodi/kodi-19.1-r1.ebuild | 6 +++++- |
14 |
1 file changed, 5 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/media-tv/kodi/kodi-19.1-r1.ebuild b/media-tv/kodi/kodi-19.1-r1.ebuild |
17 |
index aa55fe9..17ee6e8 100644 |
18 |
--- a/media-tv/kodi/kodi-19.1-r1.ebuild |
19 |
+++ b/media-tv/kodi/kodi-19.1-r1.ebuild |
20 |
@@ -39,7 +39,7 @@ PATCHES=( |
21 |
"${FILESDIR}/musl/19.0/0005-Fix-fortify-sources.patch" |
22 |
) |
23 |
|
24 |
-inherit autotools cmake desktop linux-info pax-utils python-single-r1 xdg |
25 |
+inherit autotools cmake desktop flag-o-matic linux-info pax-utils python-single-r1 xdg |
26 |
|
27 |
DESCRIPTION="A free and open source media-player and entertainment hub" |
28 |
HOMEPAGE="https://kodi.tv/ https://kodi.wiki/" |
29 |
@@ -239,9 +239,13 @@ src_prepare() { |
30 |
"${S}"/tools/depends/native/TexturePacker/src/autogen.sh \ |
31 |
"${S}"/tools/depends/native/JsonSchemaBuilder/src/autogen.sh \ |
32 |
|| die |
33 |
+ |
34 |
+ # Required to prevent addons from crashing |
35 |
+ use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152 |
36 |
} |
37 |
|
38 |
src_configure() { |
39 |
+ filter-flags -fstack-protector-all |
40 |
local platform=() |
41 |
use gbm && platform+=( gbm ) |
42 |
use wayland && platform+=( wayland ) |