summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-03-12 11:50:34 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-18 08:33:17 +0100
commit60dd63db42211dbbd67908fca13d196ec38dad3a (patch)
tree5079ff328221e651e9b603c1c2d310477e93b08d /eclass/eutils.eclass
parenteutils.eclass: Kill multilib inherit for EAPI 7 (diff)
downloadgentoo-60dd63db42211dbbd67908fca13d196ec38dad3a.tar.gz
gentoo-60dd63db42211dbbd67908fca13d196ec38dad3a.tar.bz2
gentoo-60dd63db42211dbbd67908fca13d196ec38dad3a.zip
eutils.eclass: prune_libtool_files, punt pointless Prefix logic
Remove the unnecessary Prefix logic from prune_libtool_files(). There is no functional difference between starting a find in ${D} and ${ED} (since ${D} is not supposed to contain other directories on a Prefix system), and using the latter implies unnecessary hackery for older EAPIs.
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index e036001dc5e1..ab226b236a37 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -898,7 +898,6 @@ prune_libtool_files() {
debug-print-function ${FUNCNAME} "$@"
local removing_all removing_modules opt
- _eutils_eprefix_init
for opt; do
case "${opt}" in
--all)
@@ -1008,7 +1007,7 @@ prune_libtool_files() {
einfo "Removing unnecessary ${f#${D%/}} (${reason})"
queue+=( "${f}" )
fi
- done < <(find "${ED}" -xtype f -name '*.la' -print0)
+ done < <(find "${D}" -xtype f -name '*.la' -print0)
if [[ ${queue[@]} ]]; then
rm -f "${queue[@]}"