commit: cf829d50a6868b44de782d1e56b22a70ea8a4243 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Thu Jul 15 07:12:12 2021 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Thu Jul 15 07:12:12 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf829d50
dev-go/go-tools: Fix double EPREFIX Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> dev-go/go-tools/go-tools-0.1.4.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-go/go-tools/go-tools-0.1.4.ebuild b/dev-go/go-tools/go-tools-0.1.4.ebuild index 2807b22e10a..36df26227c4 100644 --- a/dev-go/go-tools/go-tools-0.1.4.ebuild +++ b/dev-go/go-tools/go-tools-0.1.4.ebuild @@ -180,8 +180,10 @@ src_test() { src_install() { # bug 558818: install binaries in $GOROOT/bin to avoid file collisions - exeinto "$(go env GOROOT)/bin" + local goroot=$(go env GOROOT) + goroot=${goroot#${EPREFIX}} + exeinto "${goroot}/bin" doexe bin/* dodir /usr/bin - ln "${ED}/$(go env GOROOT)/bin/godoc" "${ED}/usr/bin/godoc" || die + ln "${ED}/${goroot}/bin/godoc" "${ED}/usr/bin/godoc" || die }