From 766fc6c805d8d9f6e78744d7a52377723b68457b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Mon, 26 Oct 2020 10:33:51 -0300 Subject: [PATCH] perl: set stack size for musl. Threaded perl programs can go over musl's default stack size, so setting a bigger one in LDFLAGS is necessary to avoid segfaults. This segfault was observed when using gscan2pdf to open an image. Also xlint. --- srcpkgs/perl/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template index 00b402b1b8e..33595c5688d 100644 --- a/srcpkgs/perl/template +++ b/srcpkgs/perl/template @@ -1,7 +1,7 @@ # Template file for 'perl' pkgname=perl version=5.30.3 -revision=1 +revision=2 _perl_cross_version=1.3.1 build_style=gnu-configure hostmakedepends="less" @@ -10,7 +10,7 @@ depends="less" checkdepends="iana-etc perl-AnyEvent perl-Test-Pod procps-ng" short_desc="Practical Extraction and Report Language" maintainer="Leah Neukirchen " -license="Artistic-1.0-perl, GPL-1.0-or-later" +license="Artistic-1.0-Perl, GPL-1.0-or-later" homepage="https://www.perl.org" distfiles="https://www.cpan.org/src/5.0/perl-${version}.tar.gz https://github.com/arsv/perl-cross/releases/download/${_perl_cross_version}/perl-cross-${_perl_cross_version}.tar.gz" @@ -164,7 +164,7 @@ do_configure() { _args+=" --target=$XBPS_CROSS_TRIPLET" fi - LDFLAGS+=" -pthread" + LDFLAGS+=" -Wl,-z,stack-size=2097152 -pthread" export HOSTLDFLAGS+=" -pthread" if [ "$XBPS_TARGET_LIBC" = "musl" ]; then