summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/prepallstrip
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-07 22:22:31 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-07 22:22:31 -0800
commitff52f9dc31004becb8022e6437088d01917f413c (patch)
tree0f333c6bf4c09f751d993ef843089f8b5c80ef2e /bin/ebuild-helpers/prepallstrip
parentc93a46851c43f7e8539a67b2376dc8f55af41789 (diff)
downloadportage-ff52f9dc31004becb8022e6437088d01917f413c.tar.gz
portage-ff52f9dc31004becb8022e6437088d01917f413c.tar.bz2
portage-ff52f9dc31004becb8022e6437088d01917f413c.zip
Make USE=prefix enable EPREFIX in all EAPIs.
This is safe because the prefix flag should be masked in all non-prefix profiles, and older EAPIs would otherwise be useless with prefix configurations. This brings compatibility with the prefix branch of portage, which also supports EPREFIX for all EAPIs (for obvious reasons).
Diffstat (limited to 'bin/ebuild-helpers/prepallstrip')
-rwxr-xr-xbin/ebuild-helpers/prepallstrip3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/prepallstrip b/bin/ebuild-helpers/prepallstrip
index e9f5f8e3e..6032b48c9 100755
--- a/bin/ebuild-helpers/prepallstrip
+++ b/bin/ebuild-helpers/prepallstrip
@@ -2,6 +2,7 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-case "$EAPI" in 0|1|2) ED=${D} ;; esac
+[[ " ${USE} " == *" prefix "* ]] || \
+ case "$EAPI" in 0|1|2) ED=${D} ;; esac
exec prepstrip "${ED}"