dev-lang/go: sync live ebuild
authorWilliam Hubbs <williamh@gentoo.org>
Fri, 10 Mar 2017 01:29:23 +0000 (19:29 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Fri, 10 Mar 2017 01:30:35 +0000 (19:30 -0600)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-lang/go/go-9999.ebuild

index 11d1819c35f90437b552cf8fdadccf6979c1a81a..1137d737fef51b25fcb3c32e887a02911624a9a9 100644 (file)
@@ -162,10 +162,12 @@ src_compile()
        export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
        if use gccgo; then
                mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
-               local go_binary=$(gcc-config --get-bin-path)/go-5
+               local go_binary=$(gcc-config --get-bin-path)/go-$(gcc-major-version)
                [[ -x ${go_binary} ]] || go_binary=$(
-                       find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-5 | sort -V | tail -n1)
-               [[ -x ${go_binary} ]] || die "go-5: command not found"
+                       find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-$(gcc-major-version) |
+                               sort -V | tail -n1)
+               [[ -x ${go_binary} ]] ||
+                       die "go-$(gcc-major-version): command not found"
                ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
        fi
        export GOROOT_FINAL="${EPREFIX}"/usr/lib/go