Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 211949 | Differences between
and this patch

Collapse All | Expand All

(-)bin/ebuild.sh (-3 / +7 lines)
Lines 1384-1392 Link Here
1384
1384
1385
# @FUNCTION: filter_readonly_variables
1385
# @FUNCTION: filter_readonly_variables
1386
# @DESCRIPTION: [--filter-sandbox] [--allow-extra-vars]
1386
# @DESCRIPTION: [--filter-sandbox] [--allow-extra-vars]
1387
# Read an environment from stdin and echo to stdout while filtering readonly
1387
# Read an environment from stdin and echo to stdout while filtering variables
1388
# variables.
1388
# with names that are known to cause interference:
1389
#
1389
#
1390
#   * some specific variables for which bash does not allow assignment
1391
#   * any variables with names containing a hyphen (not allowed by bash)
1392
#   * some specific variables that affect portage or sandbox behavior
1393
#
1390
# --filter-sandbox causes all SANDBOX_* variables to be filtered, which
1394
# --filter-sandbox causes all SANDBOX_* variables to be filtered, which
1391
# is only desired in certain cases, such as during preprocessing or when
1395
# is only desired in certain cases, such as during preprocessing or when
1392
# saving environment.bz2 for a binary or installed package.
1396
# saving environment.bz2 for a binary or installed package.
Lines 1414-1420 Link Here
1414
		SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
1418
		SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
1415
		SANDBOX_LOG SANDBOX_ON"
1419
		SANDBOX_LOG SANDBOX_ON"
1416
	filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS}
1420
	filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS}
1417
		BASH_[_[:alnum:]]* PATH"
1421
		BASH_[_[:alnum:]]* PATH [-_[:alnum:]]*-[-_[:alnum:]]*"
1418
	if hasq --filter-sandbox $* ; then
1422
	if hasq --filter-sandbox $* ; then
1419
		filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*"
1423
		filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*"
1420
	else
1424
	else

Return to bug 211949