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

Collapse All | Expand All

(-)bin/ebuild.sh.orig (-1 / +2 lines)
Lines 1207-1213 Link Here
1207
		umask 002
1207
		umask 002
1208
		(	echo 'unset ENV'
1208
		(	echo 'unset ENV'
1209
			set | egrep -v '^(BASH_VERSINFO|EUID|PPID|SHELLOPTS|UID)='
1209
			set | egrep -v '^(BASH_VERSINFO|EUID|PPID|SHELLOPTS|UID)='
1210
			export -p | grep -v 'declare -rx'
1210
			export -p | sed -e 's:^declare -rx:declare -x:'
1211
			shopt -p
1211
			shopt -p
1212
			echo "export PS1='EBUILD ${PN} $1 \$ '" 
1212
			echo "export PS1='EBUILD ${PN} $1 \$ '" 
1213
			echo 'unset ENV'
1213
			echo 'unset ENV'
Lines 1215-1220 Link Here
1215
			# it needs to be 'export VAR=val'.
1215
			# it needs to be 'export VAR=val'.
1216
			# is this a bash-bug or intentional ?
1216
			# is this a bash-bug or intentional ?
1217
			echo "trap 'umask 002; ( set ; export -p | sed -e \"s:declare -x:export:\" ) > ${T}/ebuildshell-environment-outcome' 0"
1217
			echo "trap 'umask 002; ( set ; export -p | sed -e \"s:declare -x:export:\" ) > ${T}/ebuildshell-environment-outcome' 0"
1218
			echo "type $1"
1218
		) > ${T}/ebuildshell-environment
1219
		) > ${T}/ebuildshell-environment
1219
		chown portage:portage "${T}/ebuildshell-environment" &>/dev/null
1220
		chown portage:portage "${T}/ebuildshell-environment" &>/dev/null
1220
		chmod g+w "${T}/ebuildshell-environment" &>/dev/null
1221
		chmod g+w "${T}/ebuildshell-environment" &>/dev/null

Return to bug 155161