summaryrefslogtreecommitdiff
authorAlejandro Mery <amery@opensde.org>2009-11-13 20:45:35 (GMT)
committer Alejandro Mery <amery@opensde.org>2010-01-18 10:00:27 (GMT)
commitf1016f20c308bc975e2fd3bdbdada912b4e88af5 (patch)
tree2c98c61e652edcacaeb43f19e63d16ce108041fe
parentc7a734c8283bc57d114c651ddc6e66142578303d (diff)
Build-Pkg: set flwrapper to skip /proc and /dev
Diffstat
-rwxr-xr-xscripts/Build-Pkg5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/Build-Pkg b/scripts/Build-Pkg
index 098e6c9..9cb5205 100755
--- a/scripts/Build-Pkg
+++ b/scripts/Build-Pkg
@@ -255,7 +255,7 @@ if [ "$SDECFG_FLIST" = "flwrapper" -a -z "$FLWRAPPER" ] ; then
export FLWRAPPER_WLOG="$builddir/fl_wrapper.wlog"
export FLWRAPPER_RLOG="$builddir/fl_wrapper.rlog"
export FLWRAPPER_BASEPID=$$
- export FLWRAPPER_FILTERDIR="/tmp/:$builddir"
+ export FLWRAPPER_FILTERDIR="/tmp/:/dev/:/proc/:$builddir"
[ "$LD_PRELOAD" ] && LD_PRELOAD="${LD_PRELOAD}:"
export FLWRAPPER="$base/build/$SDECFG_ID/TOOLCHAIN/$toolsdir/lib/fl_wrapper.so"
export LD_PRELOAD="${LD_PRELOAD}$FLWRAPPER"
@@ -661,9 +661,6 @@ abort() {
# sanitize accidental //s
sed -i -e 's,//*,/,g' $builddir/fl_wrapper.{w,r}log
- # ignore writes to /dev/(null|stderr)
- sed -i -e '/\t\/dev\/\(null\|stderr\)$/d;' $builddir/fl_wrapper.wlog
-
if [ "$toolsdir" = "tools.cross" ]; then
xbase="$( cd $xroot/ 2> /dev/null ; pwd -P )"
flistvalid="$xbase|$flistvalid"