From: Michael Tremer Date: Thu, 19 Mar 2009 16:52:07 +0000 (+0100) Subject: Download can't be done in chroot. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f9920d81626537b91094d6f4c237f9edd3d4728;p=ipfire-3.x.git Download can't be done in chroot. --- diff --git a/tools/make-include b/tools/make-include index 57a531bb7..9f25595f1 100644 --- a/tools/make-include +++ b/tools/make-include @@ -172,9 +172,9 @@ lfsmakecommoncheck() exiterror "No such file or directory: $BASEDIR/lfs/$1" fi - unset NAME VERSION - eval $(pkg_info $1) - logger "Building $*" + local FILENAME=$1 + eval $(pkg_info $FILENAME) + logger "Building $FILENAME" shift 1 @@ -233,6 +233,11 @@ lfsmakecommoncheck() fi fi + cd $BASEDIR/lfs && make -s -f $FILENAME MACHINE=$MACHINE LFS_BASEDIR=$BASEDIR MESSAGE="$1\t " download >> $LOGFILE 2>&1 + if [ $? -ne 0 ]; then + exiterror "Download error in $1" + fi + distcc_reload & return 0 # pass all!