xbps-src: sanitize path for IN_CHROOT opts too.
This commit is contained in:
parent
524485422e
commit
6405eb783a
|
@ -23,7 +23,7 @@
|
|||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#-
|
||||
readonly XBPS_SRC_BUILD_VERSION=20111117-1
|
||||
readonly XBPS_SRC_BUILD_VERSION=20111117-2
|
||||
XBPS_CONFIG_FILE=@@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
|
||||
|
||||
PROGNAME=$(basename $0)
|
||||
|
@ -323,6 +323,9 @@ if [ -z "$IN_CHROOT" ]; then
|
|||
MYPATH="$MYPATH:$XBPS_MASTERDIR/usr/local/sbin"
|
||||
export PATH="$MYPATH"
|
||||
else
|
||||
MYPATH="/tools/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
|
||||
MYPATH="$MYPATH:/usr/local/bin:/usr/lib/perl5/core_perl/bin"
|
||||
export PATH="$MYPATH"
|
||||
if [ -n "$XBPS_CCACHE" ]; then
|
||||
CCACHEPATH="/usr/lib/ccache/bin"
|
||||
if [ -n "$XBPS_HOSTDIR" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user