]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3812] Fix Meson segfault on Alpine caused by low stack size
authorAndrei Pavel <andrei@isc.org>
Tue, 1 Apr 2025 12:56:30 +0000 (15:56 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 17 Apr 2025 11:37:22 +0000 (14:37 +0300)
hammer.py

index dd8f6b9f9b01bbd3d6b558bb5f256e91362732bb..4ba6070f9a39eeefe1b2fc48b5b4f2c7dc6936a7 100755 (executable)
--- 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: