summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mozes <hydrapolic@gmail.com>2019-03-19 07:06:09 +0100
committerZac Medico <zmedico@gentoo.org>2019-03-28 10:39:07 -0700
commit00e497d111d51817d243ca7892b6f5d995f423bf (patch)
treed96002cba01354d888ec1180fd5126229bf9bf11 /app-admin/mongo-tools
parentapp-admin/mongo-tools: bump to 3.6.11 (diff)
downloadgentoo-00e497d111d51817d243ca7892b6f5d995f423bf.tar.gz
gentoo-00e497d111d51817d243ca7892b6f5d995f423bf.tar.bz2
gentoo-00e497d111d51817d243ca7892b6f5d995f423bf.zip
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 <hydrapolic@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-admin/mongo-tools')
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.6.10.ebuild2
1 files changed, 1 insertions, 1 deletions
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
}