We currenly use ${GOPATH}/bin as the path for the compiler generated executable,
but this usage does not allow ebuilds to add additional local paths to GOPATH. To
allow for this usage, change the invocation of the compiler to use ${GOBIN}.
Signed-off-by: Geoff Levand <geoff@infradead.org>
A temporary ebuild that builds the go compiler from the latest git
checkout to get support for arm64 builds. Once go-1.5 is availilable
upstream and merged to portage-stable this ebuild can be removed.
Signed-off-by: Geoff Levand <geoff@infradead.org>
When FEATURES=splitdebug is set files from both dev-lang/go and
dev-lang/go-bootstrap have the same debug info build-id which causes a
file collision in /usr/lib/debug/.build-id.
Fix an indentation error.
Also, change the keyword ~amd64 to amd64.
This is a temporary fix until an upstream fix is available.
Signed-off-by: Geoff Levand <geoff@infradead.org>
go-bootstrap is needed to build go-1.5. Since we need a local fix, import it
to coreos-overlays. Once the fix is upstream this package can be moved to
portage-stable.
Signed-off-by: Geoff Levand <geoff@infradead.org>
To support golang cross builds add a new function go_get_arch() for ebuilds
to use as needed. Also update coreos-go_src_prepare() to set the go compiler
environment variable GOARCH to the result of go_get_arch(). The setting of
GOARCH will cause the compiler to generate the correct binary type for the
board.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Symlinks out of /etc to /usr should generally be relative, that way they
work regardless of whether you are based at / or dealing with a new
chroot you haven't entered yet, or a build root like /build/amd64-usr
Namely the absolute links break cros_sdk which copies skel into home.
Also switch to /usr/share/skel since other packages may need install
things to that directory in the future.
In the process clean up moving units from /etc to /usr, the current goo
was sloppy and sometimes missed when systemd added new things to /etc.
For example we didn't move systemd-networkd.socket, added in 219.
Existing behavior remains unchanged if symlink-usr is unset, otherwise
leave terminfo alone (if minimal is also unset) or prune terminfo down
to the set that would have been installed to /etc if minimal is set.