index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-01-18 16:02:05 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-01-18 16:02:05 +0100 |
commit | def4983ac2939e85aeaca476f9eb21f0c6c4edd4 (patch) | |
tree | 3540cf754051ed300faff6876d1327f0dd8fd817 | |
parent | 2af1f74f4c98aab65695aa424650fd147dbcd16d (diff) |
-rw-r--r-- | community/virtualbox/PKGBUILD | 24 |
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 ' |