aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/repositories/gentoo/ebuild/builtin_saveenv.bash1
-rwxr-xr-xpaludis/repositories/gentoo/ebuild/ebuild.bash5
2 files changed, 5 insertions, 1 deletions
diff --git a/paludis/repositories/gentoo/ebuild/builtin_saveenv.bash b/paludis/repositories/gentoo/ebuild/builtin_saveenv.bash
index 8a4d1be..097578f 100644
--- a/paludis/repositories/gentoo/ebuild/builtin_saveenv.bash
+++ b/paludis/repositories/gentoo/ebuild/builtin_saveenv.bash
@@ -29,6 +29,7 @@ builtin_saveenv()
-e '/^\(declare -[rx]\+ \)\?SHELLOPTS/d' \
-e '/^\(declare -[rx]\+ \)\?EBUILD_KILL_PID/d' \
-e 's:^declare -rx:declare -x:' \
+ -e 's:^declare -x :export :' \
> ${PALUDIS_LOADSAVEENV_DIR}/loadsaveenv
}
diff --git a/paludis/repositories/gentoo/ebuild/ebuild.bash b/paludis/repositories/gentoo/ebuild/ebuild.bash
index 94c8a2e..69f29cf 100755
--- a/paludis/repositories/gentoo/ebuild/ebuild.bash
+++ b/paludis/repositories/gentoo/ebuild/ebuild.bash
@@ -189,7 +189,10 @@ ebuild_scrub_environment()
export -p >>"${1}"
) || return $?
- sed -i -e 's:^declare -rx:declare -x:' "${filters[@]}" "${1}"
+ sed -i \
+ -e 's:^declare -rx:declare -x:' \
+ -e 's:^declare -x :export :' \
+ "${filters[@]}" "${1}"
}
ebuild_load_environment()