commit:     095d8c5b040eb399c245db1d3923d6a85747bbcf
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 18 15:04:02 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 18 15:16:46 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=095d8c5b

estrip: fix double prefix

The content of build-info/NEEDED is with EPREFIX, the following sed
should only prepend the paths with D.

Bug: https://bugs.gentoo.org/749624
Bug: https://bugs.gentoo.org/858818
Reference: https://github.com/gentoo/portage/pull/794
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/estrip | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/estrip b/bin/estrip
index 686afb763..1e3f21e73 100755
--- a/bin/estrip
+++ b/bin/estrip
@@ -412,7 +412,7 @@ done < <(
        (
                find "$@" -type f ! -type l -name '*.a'
                cut -d ' ' -f1 < "${PORTAGE_BUILDDIR}"/build-info/NEEDED \
-                       | sed -e "s:^:${ED}:"
+                       | sed -e "s:^:${D}:"
        ) | LC_ALL=C sort -u
 )
 else

Reply via email to