dev-lang/go: 1.12.1 bump and cross compile fix
authorWilliam Hubbs <williamh@gentoo.org>
Sun, 17 Mar 2019 02:01:21 +0000 (21:01 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Sun, 17 Mar 2019 02:02:36 +0000 (21:02 -0500)
commit7f034e782d85423a92e9b3815284ca7ff506fb83
treeba673733f539be03d4f19d9eb12f144c64a4878b
parent7acb49130d1630274903973c145e4ffcbc699742
dev-lang/go: 1.12.1 bump and cross compile fix

dev-lang/go, before this commit, failed to build in an environment
generated by sys-devel/crossdev for two reasons:

1. The bootstrap download package matched the target rather than host arch.

We can't determine the host arch based on use flags, so we need to
download all bootstrap packages.

2.  The GOROOT_BOOTSTRAP environment variable matched the host rather than
target arch.

To fix this, we need to pass CBUILD to the calls to go_os and go_arch.

This fixes both issues for a successful cross-compile.

Closes: https://bugs.gentoo.org/671394
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh@gentoo.org>
dev-lang/go/Manifest
dev-lang/go/go-1.12.1.ebuild [new file with mode: 0644]