From 870f8145aac367e8a5df92675c55f014d33a872c Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Wed, 16 Feb 2005 15:33:14 +0000 Subject: [PATCH] Alejandro Mery: * fixed fl_wrapper.so test, from T2 Project * added sanity check on Build-Pkg if `time` crashes, from T2 Project [2005011915312017903] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@5567 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/Build-Pkg | 1 + scripts/Build-Tools | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/Build-Pkg b/scripts/Build-Pkg index b903a93e2..87d0fbfae 100755 --- a/scripts/Build-Pkg +++ b/scripts/Build-Pkg @@ -398,6 +398,7 @@ if [ $this_is_the_2nd_run = 0 ] ; then /usr/bin/time -o "$root/var/adm/cache/$xpkg.tm" \ -f 'buildtime=$(qcalc %U + %S)' $0 $options returncode=$? + [ ! -e "$root/var/adm/cache/$xpkg.tm" ] && exit $returncode qcalc() { gawk "BEGIN { printf(\"%d\n\", ($*)*100); }"; } eval "`grep -v '^Command ' < $root/var/adm/cache/$xpkg.tm`" diff --git a/scripts/Build-Tools b/scripts/Build-Tools index d15252dca..a14ec9078 100755 --- a/scripts/Build-Tools +++ b/scripts/Build-Tools @@ -263,8 +263,8 @@ EOT echo_status "Testing $toolsdir/lib/fl_wrapper.so." if ! sh -c "LD_PRELOAD=\"\$LD_PRELOAD:build/\$ROCKCFG_ID/` - `$toolsdir/lib/fl_wrapper.so\" date ; ` - `exit $?" >/dev/null 2>&1 + `ROCK/$toolsdir/lib/fl_wrapper.so\" date ; ` + `exit \$?" >/dev/null 2>&1 then echo_error "Detected a problem with the flist" \ "wrapper lib on your system."