Author: jfrederic.clere(a)jboss.com
Date: 2007-12-20 18:03:59 -0500 (Thu, 20 Dec 2007)
New Revision: 1267
Modified:
trunk/build/unix/build.sh
trunk/build/unix/util/buildroot.linux2.sh
Log:
use su -b otherwise it doesn't in batch mode.
Modified: trunk/build/unix/build.sh
===================================================================
--- trunk/build/unix/build.sh 2007-12-20 16:41:13 UTC (rev 1266)
+++ trunk/build/unix/build.sh 2007-12-20 23:03:59 UTC (rev 1267)
@@ -875,10 +875,10 @@
fi
# generate a list of dependencies
-override ${build_top}/util/builddep $build_output_dir
${PACKAGE}.${build_version}.${BUILD_SYS}.${BUILD_CPU}.depends ${build_working_dir}
+override ${build_top}/util/builddep $build_output_dir
${PACKAGE}.${build_version}.${BUILD_SYS}.${BUILD_CPU}.depends ${package_output_dir}
# create a chrootable environment for testing:
-override ${build_top}/util/buildroot $build_output_dir
+override ${build_top}/util/buildroot ${package_output_dir}
# run a test
-override ${build_top}/buildtest.${PACKAGE}.sh $build_output_dir
+override ${build_top}/buildtest.${PACKAGE}.sh ${package_output_dir}
Modified: trunk/build/unix/util/buildroot.linux2.sh
===================================================================
--- trunk/build/unix/util/buildroot.linux2.sh 2007-12-20 16:41:13 UTC (rev 1266)
+++ trunk/build/unix/util/buildroot.linux2.sh 2007-12-20 23:03:59 UTC (rev 1267)
@@ -39,7 +39,7 @@
# $2 : The executable file to process.
Processlibs()
{
- for lib in `sudo /usr/bin/ldd $2 | awk 'NF==4 { print $3 } ' | sort -u`
+ for lib in `sudo -b /usr/bin/ldd $2 | awk 'NF==4 { print $3 } ' | sort -u`
do
Processfile $1 $lib
done
@@ -53,7 +53,7 @@
{
dir=`dirname $2`
mkdir -p $1/$dir
- sudo cp $2 $1/$dir
+ sudo -b cp $2 $1/$dir
}
#
@@ -82,9 +82,9 @@
# mount proc
mkdir -p $root/proc
-sudo mount -t proc proc $root/proc
+sudo -b mount -t proc proc $root/proc
# Create needed device
mkdir -p $root/dev
-sudo mknod $root/dev/null c 1 3
-sudo mknod $root/dev/random c 1 8
+sudo -b mknod $root/dev/null c 1 3
+sudo -b mknod $root/dev/random c 1 8