eutils.eclass: prune_libtool_files, punt pointless Prefix logic
authorMichał Górny <mgorny@gentoo.org>
Sun, 12 Mar 2017 10:50:34 +0000 (11:50 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 18 Mar 2017 07:33:17 +0000 (08:33 +0100)
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.

eclass/eutils.eclass

index e036001dc5e1d44794e655b15f1de0fc123fa0e8..ab226b236a3787d3b25cbcb018c5d8709c1d3e8e 100644 (file)
@@ -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[@]}"