summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-01 08:04:46 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-01 08:04:46 +0000
commite4c2dc27aa228c9714c02efaa853e745510755ab (patch)
tree944519cb40ef0add4074939434e186a2a0a04e77 /bin/isolated-functions.sh
parent* whitelist PREROOTPATH in config.environ() (diff)
downloadportage-multirepo-e4c2dc27aa228c9714c02efaa853e745510755ab.tar.gz
portage-multirepo-e4c2dc27aa228c9714c02efaa853e745510755ab.tar.bz2
portage-multirepo-e4c2dc27aa228c9714c02efaa853e745510755ab.zip
When die has been called and ${T}/environment does not exist,
dump the current environment to ${T}/die.env in case it helps for debugging. svn path=/main/trunk/; revision=8783
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 9ac0d2f3..0147a0b1 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -98,8 +98,15 @@ diefunc() {
eerror "If you need support, post the topmost build error, and the call stack if relevant."
[[ -n ${PORTAGE_LOG_FILE} ]] \
&& eerror "A complete build log is located at '${PORTAGE_LOG_FILE}'."
- [ -f "${T}/environment" ] && \
+ if [ -f "${T}/environment" ] ; then
eerror "The ebuild environment file is located at '${T}/environment'."
+ elif [ -d "${T}" ] ; then
+ {
+ set
+ export
+ } > "${T}/die.env"
+ eerror "The ebuild environment file is located at '${T}/die.env'."
+ fi
if [[ -n ${EBUILD_OVERLAY_ECLASSES} ]] ; then
eerror "This ebuild used the following eclasses from overlays:"
local x