From: Tomas Mozes Date: Tue, 19 Mar 2019 06:06:09 +0000 (+0100) Subject: app-admin/mongo-tools: fix GOROOT for 17.1 profiles X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=00e497d111d51817d243ca7892b6f5d995f423bf;p=gentoo.git app-admin/mongo-tools: fix GOROOT for 17.1 profiles Closes: https://github.com/gentoo/gentoo/pull/11399 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Tomáš Mózes Signed-off-by: Zac Medico --- diff --git a/app-admin/mongo-tools/mongo-tools-3.6.10.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.10.ebuild index 0e317acb91c9..092d770686fb 100644 --- a/app-admin/mongo-tools/mongo-tools-3.6.10.ebuild +++ b/app-admin/mongo-tools/mongo-tools-3.6.10.ebuild @@ -61,7 +61,7 @@ src_compile() { mkdir -p bin || die for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do echo "Building $i" - GOROOT="${PREFIX}/usr/$(get_libdir)/go" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \ + GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \ -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die done }