commit:     6c14be6fab464d3fbb38560a018a42b9c4f13f9c
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 27 14:53:35 2015 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Aug 27 14:56:09 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c14be6f

dev-go/go-tools: fix removal of cover and vet

Since binaries are being installed in $GOROOT/bin, we need to remove
cover and vet from there for newer versions of go instead of from
removing them from /usr/bin.

This fixes bug #558882.

 dev-go/go-tools/go-tools-0_pre20150823-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-go/go-tools/go-tools-0_pre20150823-r1.ebuild 
b/dev-go/go-tools/go-tools-0_pre20150823-r1.ebuild
index 887effa..030ff9e 100644
--- a/dev-go/go-tools/go-tools-0_pre20150823-r1.ebuild
+++ b/dev-go/go-tools/go-tools-0_pre20150823-r1.ebuild
@@ -94,7 +94,7 @@ src_install() {
                doexe "${T}/goroot/pkg/tool/$(go env GOOS)_$(go env 
GOARCH)/cover"
                doexe "${T}/goroot/pkg/tool/$(go env GOOS)_$(go env GOARCH)/vet"
        else
-               rm "${D}"/usr/bin/{cover,vet} ||
+               rm "${D}"$(go env GOROOT)/bin/{cover,vet} ||
                        die "unable to remove cover and vet"
        fi
 }

Reply via email to