summaryrefslogtreecommitdiffstats
path: root/bin/save-ebuild-env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/save-ebuild-env.sh')
-rw-r--r--bin/save-ebuild-env.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/save-ebuild-env.sh b/bin/save-ebuild-env.sh
index 4bf6e4e18..a6d1c61e8 100644
--- a/bin/save-ebuild-env.sh
+++ b/bin/save-ebuild-env.sh
@@ -73,6 +73,11 @@ save_ebuild_env() {
_hasg _hasgq _unpack_tar \
${QA_INTERCEPTORS}
+ case ${EAPI} in
+ 0|1|2|3|4) ;;
+ *) unset -f usex ;;
+ esac
+
# portage config variables and variables set directly by portage
unset ACCEPT_LICENSE BAD BRACKET BUILD_PREFIX COLS \
DISTCC_DIR DISTDIR DOC_SYMLINKS_DIR \