Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-01-18 16:02:05 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-01-18 16:02:05 +0100
commitdef4983ac2939e85aeaca476f9eb21f0c6c4edd4 (patch)
tree3540cf754051ed300faff6876d1327f0dd8fd817
parent2af1f74f4c98aab65695aa424650fd147dbcd16d (diff)
community/virtualbox: added vm.mmap_min_addr=0 to avoid mmap problems when compiling SOAP webserver
-rw-r--r--community/virtualbox/PKGBUILD24
1 files changed, 23 insertions, 1 deletions
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 '