dev-lang/go: prefer go over go-bootstrap for building
authorWilliam Hubbs <william.hubbs@sony.com>
Thu, 23 Jan 2020 17:27:02 +0000 (11:27 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Thu, 23 Jan 2020 17:27:57 +0000 (11:27 -0600)
Signed-off-by: William Hubbs <williamh@gentoo.org>
dev-lang/go/go-9999.ebuild

index 82c9facbd671119029bdc359aafeb0f7ebd85653..e72c431625b799151e74057161f447f9687cdd50 100644 (file)
@@ -145,10 +145,10 @@ src_compile()
                [[ -x ${go_binary} ]] ||
                        die "go-$(gcc-major-version): command not found"
                ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
-       elif has_version -b dev-lang/go-bootstrap; then
-               export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
        elif has_version -b dev-lang/go; then
                export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
+       elif has_version -b dev-lang/go-bootstrap; then
+               export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
        else
                eerror "Go cannot be built without go or go-bootstrap installed"
                die "Should not be here, please report a bug"