aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl/musl-stack-size.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-09-23 11:20:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2020-09-24 05:58:16 +0000
commit900b98141faf5b61283455bc5de40662be138047 (patch)
tree539054d7f680d650896b99815ec0f5ade916891e /main/perl/musl-stack-size.patch
parent3ac91b6e9e17844e7af6258b18744ca17a253a7e (diff)
downloadaports-900b98141faf5b61283455bc5de40662be138047.tar.gz
aports-900b98141faf5b61283455bc5de40662be138047.tar.bz2
aports-900b98141faf5b61283455bc5de40662be138047.tar.xz
main/perl: fix testsuite for s390x
Testsuite fails on s390x due to small stack size. Increase the stack size for the affeted test(s). upstream report https://github.com/Perl/perl5/issues/18160
Diffstat (limited to 'main/perl/musl-stack-size.patch')
-rw-r--r--main/perl/musl-stack-size.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/perl/musl-stack-size.patch b/main/perl/musl-stack-size.patch
new file mode 100644
index 0000000000..08a9ef0e81
--- /dev/null
+++ b/main/perl/musl-stack-size.patch
@@ -0,0 +1,16 @@
+Tests fails on s390x due to low thread stack size
+upstream report: https://github.com/Perl/perl5/issues/18160
+
+diff --git a/t/thread_it.pl b/t/thread_it.pl
+index f38a580..e8c450a 100644
+--- a/t/thread_it.pl
++++ b/t/thread_it.pl
+@@ -36,7 +36,7 @@ my $curr = threads->create({
+ stack_size => $^O eq 'hpux' ? 524288 :
+ $^O eq 'darwin' ? 2000000:
+ $^O eq 'VMS' ? 150000 :
+- $^O eq 'aix' ? 1500000 : 0,
++ $^O eq 'aix' ? 1500000 : 256*1024,
+ }, sub {
+ run_tests();
+ return defined &curr_test ? curr_test() : ()