aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-04-17 10:28:39 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-04-17 10:29:22 +0200
commitc633d2ea210c647d497191e87b7ffda9efc28b94 (patch)
tree8a1e432ee471bc951c90ac51dd66a446a693e94d /testing
parent16c93bf8f75c10cbb3ef7683cb20d874b6b8d05c (diff)
downloadaports-c633d2ea210c647d497191e87b7ffda9efc28b94.tar.bz2
aports-c633d2ea210c647d497191e87b7ffda9efc28b94.tar.xz
testing/kodi: set default stacksize
kodi crashes when trying to use any of its addons
Diffstat (limited to 'testing')
-rw-r--r--testing/kodi/APKBUILD19
-rw-r--r--testing/kodi/set-default-stacksize.patch10
2 files changed, 23 insertions, 6 deletions
diff --git a/testing/kodi/APKBUILD b/testing/kodi/APKBUILD
index f465c884ba..6586f77e4e 100644
--- a/testing/kodi/APKBUILD
+++ b/testing/kodi/APKBUILD
@@ -3,7 +3,7 @@
pkgname=kodi
pkgver=14.2
_realname=Helix
-pkgrel=1
+pkgrel=2
pkgdesc="A software media player and entertainment hub for digital media"
url="http://kodi.tv"
arch="x86 x86_64"
@@ -23,7 +23,7 @@ depends_dev="gettext-dev boost-dev mesa-dev glew-dev glu-dev mariadb-dev
libcec-dev x264-dev bsd-compat-headers curl-dev"
makedepends="$depends_dev automake autoconf m4 libtool swig findutils openjdk7-jre-base
boost-thread zip gperf cmake coreutils nasm tar pkgconfig"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
install=""
replaces="xbmc"
options="ldpath-recursive"
@@ -35,7 +35,8 @@ source="https://github.com/xbmc/xbmc/archive/$pkgver-$_realname.zip
fortify-source-fix.patch
remove-av_read_frame_flush.patch
remove-filewrap.patch
- add-missing-includes.patch"
+ add-missing-includes.patch
+ set-default-stacksize.patch"
_builddir="$srcdir/xbmc-$pkgver-$_realname"
@@ -88,7 +89,9 @@ md5sums="b926659a946368ec983cbdfcb8289b0c 14.2-Helix.zip
a769a0018f58cb4f5ea865dcabbe2bed fortify-source-fix.patch
e87c3d8170ad5448a6cf19d1509ab415 remove-av_read_frame_flush.patch
cb116c5b55438222db308d4b6b7bc6ff remove-filewrap.patch
-ed12b2515c259c87ea622e04df78dfe5 add-missing-includes.patch"
+ed12b2515c259c87ea622e04df78dfe5 add-missing-includes.patch
+01bb94d5e0ec0b8c7341c47bd59706d8 f8c9cfa756f1e4a3fc0baf5eba1c8cce3e344b7f.patch
+deff09ba18d3bc4674d1c195a40ea399 set-default-stacksize.patch"
sha256sums="5573938e95c6f1ff44c212e30ad912121468bd5c4cdcc4f644b5b130fb5da354 14.2-Helix.zip
3c04c2cd6909cfb587b194e6c5a3025f1a3f03a0c5178ad70541ff7e69915935 no-snesapu.patch
c07906ae884919cce64abae77f9facbb1aa68ba214ae7ec3195c260ae1a15c27 fix-musl.patch
@@ -97,7 +100,9 @@ e5de7cf5e781de9288f362c9d1c88d226297ba4aae3f75e5980f0a7cfc2258f0 fix-rsxs.patch
b5b6636e77dc11bd3a78d811e60cd98b6929e018b8f32ae2ee100a00e5535bea fortify-source-fix.patch
29f5c17585a0fc05e8e4d548c4deddefc9fc6b742d873658ce299bab9244eeed remove-av_read_frame_flush.patch
11f537c6d5a2089053c80600b4dc1d6530faaee2141eba1a7eb0b941385ba9f1 remove-filewrap.patch
-0ea70141b3b80ac586e941c97806f819b562f1d5166d0fe045e28dff0b62d739 add-missing-includes.patch"
+0ea70141b3b80ac586e941c97806f819b562f1d5166d0fe045e28dff0b62d739 add-missing-includes.patch
+f97d614f8f51636a635d5bfb04e996dc49dee8631fde17d0c0035e47315f0abc f8c9cfa756f1e4a3fc0baf5eba1c8cce3e344b7f.patch
+212cb3d9861b2b57d9929c2046917c5789d4bacf7849ec3f7c5a4740693349b2 set-default-stacksize.patch"
sha512sums="102c079a307ecdb5e9f6f9cd23df58c8c09b786d096b9d73edfd15c74c6dbf3c61dd1f8c6192758c4f5f5024e8fadcfba49ff7c8206fe8f26e0b3612b429f4cf 14.2-Helix.zip
8b2b3159b536719bad7c00f2eb51c4778f8e6c049cfe07e2555a530ad8587ca7b83623e1b5f40220d2e490e38442f893f87496620aa94da27d37a8bddc72f434 no-snesapu.patch
ddcd22512656607dd077135f95c7342081fbbeb9f78f8dc7e55e4a3a98b19d7c046faebb2925443c27dbd1cd7889e054a43a36e1efdbb8df2817997876c35513 fix-musl.patch
@@ -106,4 +111,6 @@ e1ed2e2e53c20b59f2ea926e9097e99438fdaed9b9d4c0133567bd1c8dc26b003961ad045ce4aaba
5e972e6f6ad13f5dc8ac5e9d593171988e0cc93879178aa7621af44d41b89b5b86429af4d0c2e6516b626d042f247bcf0b1f957f647138a03ce73c5c7b3311b9 fortify-source-fix.patch
5e54cf4e77b3d12923a88c18f268b069f28cbf26069217d76ab4685e1ec67bddc1f374b60eaffa653caa8b7fd6916037f47df8547f012b46d6653c4d1debf5b4 remove-av_read_frame_flush.patch
cdac558134441633a83a346c2d5f5d69a1dea10276d5a46d18433d5c94937528610a662749db0909685e6bf42277e1318726409b572390f3b8ebea61209ee5c9 remove-filewrap.patch
-378a0e8fd9676dd76cfb30d62085b953625dd0185e2673de2331fc7ae0802dae4f56d0b74e878e4d313942fda8831e9669bff284dbe974db5ad16fe07af884d6 add-missing-includes.patch"
+378a0e8fd9676dd76cfb30d62085b953625dd0185e2673de2331fc7ae0802dae4f56d0b74e878e4d313942fda8831e9669bff284dbe974db5ad16fe07af884d6 add-missing-includes.patch
+ffa14ee3ce499a855e7890aaedb5f4fc5a23975dc0f8dabff6bf83aa759d85470303ef41f7ff5e403438d286df60057e092ec0b0ca293b645ae9729a6217a8b9 f8c9cfa756f1e4a3fc0baf5eba1c8cce3e344b7f.patch
+3fd97e9fa22e59b3cd30fdad19474e177a9d062598765fa8ba4955f1da4e10581ff1463dd0794d3ee3cefebf753007a4d445b2bc47a257574d3927c1408b8876 set-default-stacksize.patch"
diff --git a/testing/kodi/set-default-stacksize.patch b/testing/kodi/set-default-stacksize.patch
new file mode 100644
index 0000000000..8a79215f8b
--- /dev/null
+++ b/testing/kodi/set-default-stacksize.patch
@@ -0,0 +1,10 @@
+--- ./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);