From bd82578520ddfd1e3f75f26e1ffe9e3ab42002eb Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Tue, 1 Apr 2025 15:56:30 +0300 Subject: [PATCH] [#3812] Fix Meson segfault on Alpine caused by low stack size --- hammer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hammer.py b/hammer.py index dd8f6b9f9b..4ba6070f9a 100755 --- a/hammer.py +++ b/hammer.py @@ -2087,8 +2087,11 @@ def install_packages_local(system, revision, features, check_times, ignore_error # prepare alpine elif system == 'alpine': - packages.extend(['bison', 'boost-libs', 'boost-dev', 'flex', 'gcc', 'g++', 'gzip', 'log4cplus', - 'log4cplus-dev', 'make', 'openssl-dev', 'procps', 'tar']) + if 0 != execute("grep -E '^ulimit -s unlimited$' ~/.profile", quiet=True, raise_error=False): + execute("echo 'ulimit -s unlimited' >> ~/.profile") + packages.extend(['bison', 'boost-libs', 'boost-dev', 'build-base', 'flex', 'gcompat', 'gcc', 'g++', 'gzip', + 'log4cplus', 'log4cplus-dev', 'make', 'musl-dev', 'openssl-dev', 'procps', 'python3-dev', + 'tar']) deferred_functions.append(pyinstall_meson) if 'docs' in features: