From dbc8ea65c0d84f95d4fee1e1ea2047cc6ec263b1 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 27 Jan 2019 11:20:43 +0100 Subject: [PATCH] kodi: replace bigstack patch by musl-1.1.21's new stack-size feature --- srcpkgs/kodi/patches/set-default-stacksize.patch | 10 ---------- srcpkgs/kodi/template | 3 ++- 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 srcpkgs/kodi/patches/set-default-stacksize.patch diff --git a/srcpkgs/kodi/patches/set-default-stacksize.patch b/srcpkgs/kodi/patches/set-default-stacksize.patch deleted file mode 100644 index 8a79215f8b1..00000000000 --- a/srcpkgs/kodi/patches/set-default-stacksize.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- ./xbmc/threads/platform/pthreads/ThreadImpl.cpp.orig -+++ ./xbmc/threads/platform/pthreads/ThreadImpl.cpp -@@ -42,6 +42,7 @@ - { - pthread_attr_t attr; - pthread_attr_init(&attr); -+ if (!stacksize) stacksize = 1024*1024; - #if !defined(TARGET_ANDROID) // http://code.google.com/p/android/issues/detail?id=7808 - if (stacksize > PTHREAD_STACK_MIN) - pthread_attr_setstacksize(&attr, stacksize); diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template index ed4b45e1244..21b557ace5c 100644 --- a/srcpkgs/kodi/template +++ b/srcpkgs/kodi/template @@ -1,7 +1,7 @@ # Template file for 'kodi' pkgname=kodi version=17.6 -revision=4 +revision=5 _codename="Krypton" wrksrc="xbmc-${version}-${_codename}" build_wrksrc=project/cmake @@ -14,6 +14,7 @@ homepage="http://www.kodi.tv/" distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz" checksum=c8312fe92e5bab1cdac1da93d60baed88fa1574146c50c44e3c86d01671c2b1d patch_args="-Np1" +LDFLAGS+=" -Wl,-z,stack-size=1048576" lib32disabled=yes only_for_archs="i686 i686-musl x86_64 x86_64-musl aarch64 aarch64-musl"