PORTAGE_BIN_PATH="${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"
PORTAGE_PYM_PATH="${PORTAGE_PYM_PATH:-@PORTAGE_BASE@/pym}"
-export SANDBOX_PREDICT="${SANDBOX_PREDICT:+${SANDBOX_PREDICT}:}/proc/self/maps:/dev/console:/dev/random"
-export SANDBOX_WRITE="${SANDBOX_WRITE:+${SANDBOX_WRITE}:}/dev/shm:/dev/stdout:/dev/stderr:${PORTAGE_TMPDIR}"
-export SANDBOX_READ="${SANDBOX_READ:+${SANDBOX_READ}:}/:/dev/shm:/dev/stdin:${PORTAGE_TMPDIR}"
# Don't use sandbox's BASH_ENV for new shells because it does
# 'source /etc/profile' which can interfere with the build
# environment by modifying our PATH.
unset PORTAGE_ROOTPATH
fi
-if [ ! -z "${PORTAGE_GPG_DIR}" ]; then
- SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_GPG_DIR}"
-fi
-
# These two functions wrap sourcing and calling respectively. At present they
# perform a qa check to make sure eclasses and ebuilds and profiles don't mess
# with shell opts (shopts). Ebuilds/eclasses changing shopts should reset them
adddeny() { _sb_append_var DENY "$@" ; }
addpredict() { _sb_append_var PREDICT "$@" ; }
+addwrite "${PORTAGE_TMPDIR}"
+addread "/:${PORTAGE_TMPDIR}"
+[[ -n ${PORTAGE_GPG_DIR} ]] && addpredict "${PORTAGE_GPG_DIR}"
+
lchown() {
chown -h "$@"
}
usev() {
if useq ${1}; then
- echo "${1}"
+ echo "${1#!}"
return 0
fi
return 1
if [[ -n ${PORTAGE_LOG_FILE} && -r ${PORTAGE_LOG_FILE} ]] ; then
local m msgs=(
": warning: dereferencing type-punned pointer will break strict-aliasing rules$"
+ ": warning: dereferencing pointer .* does break strict-aliasing rules$"
": warning: implicit declaration of function "
": warning: incompatible implicit declaration of built-in function "
": warning: is used uninitialized in this function$" # we'll ignore "may" and "might"