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.
Fails when binhost reports a 404:
!! Error fetching binhost package info from 'http://builds.developer.core-os.net/sdk/amd64/668.0.0/pkgs/'
Traceback (most recent call last):
File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
retval = emerge_main()
File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1154, in emerge_main
return run_action(emerge_config)
File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 2818, in run_action
getbinpkgs="--getbinpkg" in emerge_config.opts)
File "/usr/lib64/python2.7/site-packages/portage/dbapi/bintree.py", line 633, in populate
self._populate(getbinpkgs)
File "/usr/lib64/python2.7/site-packages/portage/dbapi/bintree.py", line 1034, in _populate
_encodings["stdio"], errors="replace"))
TypeError: coercing to Unicode: need string or buffer, HTTPError found