From def4983ac2939e85aeaca476f9eb21f0c6c4edd4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 18 Jan 2018 16:02:05 +0100 Subject: community/virtualbox: added vm.mmap_min_addr=0 to avoid mmap problems when compiling SOAP webserver --- community/virtualbox/PKGBUILD | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'community/virtualbox/PKGBUILD') diff --git a/community/virtualbox/PKGBUILD b/community/virtualbox/PKGBUILD index 8632f058..f61f4ce3 100644 --- a/community/virtualbox/PKGBUILD +++ b/community/virtualbox/PKGBUILD @@ -1,11 +1,33 @@ -# Parallel builds lead to "virtual memory exhausted"? +# avoid "virtual memory exhausted: Operation not permitted" +# note: proper sudo rights for the user running the build slave are necessare +eval "$( + declare -f build | \ + sed ' + /source/ i \ sudo sysctl vm.mmap_min_addr=0 + ' +)" + +# restore the default after building vboxwebsrv +# (On Arch 65536 seems to be the boot-default) +eval "$( + declare -f build | \ + sed ' + /kmk.*packing/ a \ sudo sysctl vm.mmap_min_addr=65536 + ' +)" +# Parallel builds lead to "virtual memory exhausted"? +# not sure, if still needed (or in fact, working) eval "$( declare -f build | \ sed ' s|kmk|kmk -j 1| '; )" + +# let's not use too much memory, gcc tmpfiles can in this +# case also be put on a real /tmp (instead of tmpfs) to reduce +# preasure on the RAM eval "$( declare -f build | \ sed ' -- cgit v1.2.3-70-g09d2