From 1189e7aacfe900927c8f3578b50ef8850a1d7bdc Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 19 Jun 2007 04:24:28 +0000 Subject: [PATCH] Clifford Wolf: Added /etc/ROCK-PROFILE hook to parse-config This is e.g. usefull for setting vm-size ulimits for the ROCK Linux build process. Some packages fail by leaking memory during the build until there is no more vm left. This takes a long time and almost freezes up the machine. Putting a 'ulimit -v N' (N beeing smaller than the real memory) in /etc/ROCK-PROFILE avoids this problem and so speeds up reference builds a lot. [2007061407442513422] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8581 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/parse-config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/parse-config b/scripts/parse-config index 0cf5423a3..985cd0aa7 100644 --- a/scripts/parse-config +++ b/scripts/parse-config @@ -158,3 +158,8 @@ if [ $stagelevel -le 1 -a "$ROCKCFG_PSEUDONATIVE" = 1 ]; then export BUILDCC="$BUILDCC -static" BUILDLD="$BUILDLD -static" fi +if [ -f /etc/ROCK-PROFILE ]; then + # this is the right place for e.g. build process ulimits + . /etc/ROCK-PROFILE +fi +