diff options
author | Daniel Beal <git@danb.email> | 2018-10-01 21:50:24 -0700 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-15 13:58:55 +0000 |
commit | d4fa6fe881864b95c1d42e67db58e3260eed105b (patch) | |
tree | e9be20d33bff083d5243f8d823e4b7d7ce69580c | |
parent | b3860fe0f36d76d786ed9611daccecb5284add0f (diff) | |
download | aports-d4fa6fe881864b95c1d42e67db58e3260eed105b.tar.bz2 aports-d4fa6fe881864b95c1d42e67db58e3260eed105b.tar.xz |
testing/openttd: fix crash on save due to insufficient stacksize
-rw-r--r-- | testing/openttd/APKBUILD | 9 | ||||
-rw-r--r-- | testing/openttd/fix-pthread-stacksize.patch | 15 |
2 files changed, 21 insertions, 3 deletions
diff --git a/testing/openttd/APKBUILD b/testing/openttd/APKBUILD index 12f095fd69..20344dabe5 100644 --- a/testing/openttd/APKBUILD +++ b/testing/openttd/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Adrian Siekierka <kontakt@asie.pl> pkgname=openttd pkgver=1.8.0 -pkgrel=0 +pkgrel=1 pkgdesc="Open source version of the Transport Tycoon Deluxe simulator" url="http://openttd.org" arch="all" @@ -10,7 +10,9 @@ license="GPL-2.0-only" depends="" makedepends="fontconfig-dev freetype-dev libpng-dev lzo-dev sdl-dev xz-dev zlib-dev" subpackages="$pkgname-doc $pkgname-lang::noarch" -source="https://binaries.openttd.org/releases/$pkgver/$pkgname-$pkgver-source.tar.xz" +options="!check" +source="https://binaries.openttd.org/releases/$pkgver/$pkgname-$pkgver-source.tar.xz + fix-pthread-stacksize.patch" builddir="$srcdir/$pkgname-$pkgver" build() { @@ -52,4 +54,5 @@ lang() { done } -sha512sums="a2d61b3c94a550c8f3a581127df8c3459b1ddff5ba924942c468cbc70e88e0bf4405cecb68a91243b544ead64f215aa8d489a07b38dce507ae7d59e8ec155d7a openttd-1.8.0-source.tar.xz" +sha512sums="a2d61b3c94a550c8f3a581127df8c3459b1ddff5ba924942c468cbc70e88e0bf4405cecb68a91243b544ead64f215aa8d489a07b38dce507ae7d59e8ec155d7a openttd-1.8.0-source.tar.xz +90db187919cb802ea6abddc03f09e85fe278175f5830f26e86d4a3b98f60bf233b0acaafd7e7a8f01c8e9a6bc059c171c88f8fcf36fc713624f972a8a8ad073f fix-pthread-stacksize.patch" diff --git a/testing/openttd/fix-pthread-stacksize.patch b/testing/openttd/fix-pthread-stacksize.patch new file mode 100644 index 0000000000..51a3168ce1 --- /dev/null +++ b/testing/openttd/fix-pthread-stacksize.patch @@ -0,0 +1,15 @@ +Only in openttd-1.8.0-mod: src/saveload/.saveload.cpp.swp +--- openttd-1.8.0/src/thread/thread_pthread.cpp ++++ openttd-1.8.0-mod/src/thread/thread_pthread.cpp +@@ -38,7 +38,10 @@ + self_destruct(self_destruct), + name(name) + { +- pthread_create(&this->thread, NULL, &stThreadProc, this); ++ pthread_attr_t attrs; ++ pthread_attr_init(&attrs); ++ pthread_attr_setstacksize(&attrs, 1048576); ++ pthread_create(&this->thread, &attrs, &stThreadProc, this); + } + + /* virtual */ bool Exit() |