aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--main/perl/APKBUILD4
-rw-r--r--main/perl/musl-stack-size.patch16
2 files changed, 19 insertions, 1 deletions
diff --git a/main/perl/APKBUILD b/main/perl/APKBUILD
index ae3cd4a883..c2b96d83f3 100644
--- a/main/perl/APKBUILD
+++ b/main/perl/APKBUILD
@@ -16,6 +16,7 @@ source="https://www.cpan.org/src/5.0/perl-$pkgver.tar.gz
musl-locale.patch
musl-skip-dst-test.patch
skip-test-due-to-busybox-ps.patch
+ musl-stack-size.patch
"
# secfixes:
@@ -168,4 +169,5 @@ utils() {
sha512sums="b00f3482f6961be043349a09445227e99472a8ae804919bfa0641de5bbd683249deb607f3b5c6c44ccfcf916408eac125132f9660191d574de0a9d1f17892bc1 perl-5.32.0.tar.gz
a78b5fb1a2b6f60b401329cfd2d8349d4fdcc19628cde0e9b840b82e1a02e705f7d7413fe206aa13ed714ab93a65b62ac3d85dfd526ca8048621d5d89b22f0ef musl-locale.patch
3eaec691bc38e208ba4f34130ae45e50b6c339fa50093d0b0f6d7f24cb5b7c2a3734ca714a279c4b51173f82e46a8e7a3e70bfc7d7471a18c55a2102140e4186 musl-skip-dst-test.patch
-4e7a3be3291a851b41e484daf5b87d5bc6e372a6f1aea7ad0718fec24fda3719286baa97045255d5d7c0a327a533ff6c32e1bf4d8436550f328fb9b5e602d727 skip-test-due-to-busybox-ps.patch"
+4e7a3be3291a851b41e484daf5b87d5bc6e372a6f1aea7ad0718fec24fda3719286baa97045255d5d7c0a327a533ff6c32e1bf4d8436550f328fb9b5e602d727 skip-test-due-to-busybox-ps.patch
+c004d6612ec754e5947255a2e2d15b5581f187c32495aeeec9f4fa286919bd9f40c72b63db61e3f4004b09288af2063a6a14b67e5c289e9a8b23ebd7c216e16f musl-stack-size.patch"
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() : ()