Skip to content

Commit

Permalink
dev-go/go-tools: fix "tipgodoc does not exist" error (bug 572650)
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
zmedico committed Jan 22, 2016
1 parent fbbd1c6 commit 2ead2b6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dev-go/go-tools/go-tools-0_pre20160121.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,16 @@ src_install() {

# bug 558818: install binaries in $GOROOT/bin to avoid file collisions
exeinto "$(go env GOROOT)/bin"
doexe bin/* "${T}/goroot/bin/godoc" "${T}/gopath/bin/tipgodoc"
doexe bin/* "${T}/goroot/bin/godoc"
# Since tipgodoc has been known to be installed in either
# GOROOT or GOPATH, handle either case (bug 572650). It likely
# depends on what is currently installed, as is often the case
# for weird issues like this with go.
if [[ -e ${T}/gopath/bin/tipgodoc ]]; then
doexe "${T}/gopath/bin/tipgodoc"
else
doexe "${T}/goroot/bin/tipgodoc"
fi
dodir /usr/bin
ln "${ED}$(go env GOROOT)/bin/godoc" "${ED}usr/bin/godoc" || die

Expand Down

0 comments on commit 2ead2b6

Please sign in to comment.