From 54eae609a1e4647f70e241e03ba4a475ed0caad8 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 26 Aug 2015 15:23:42 -0700 Subject: [PATCH] eclass/coreos-go: Fill out go_get_arch Add more arches to the go_get_arch() routine. Signed-off-by: Geoff Levand --- .../src/third_party/coreos-overlay/eclass/coreos-go.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass index 3aab6ce0c8..b4dd001dc1 100644 --- a/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass +++ b/sdk_container/src/third_party/coreos-overlay/eclass/coreos-go.eclass @@ -18,7 +18,12 @@ DEPEND="dev-lang/go" # @FUNCTION: go_get_arch # @USAGE: export GOARCH=$(go_get_arch) go_get_arch() { - echo ${ARCH} + # By chance most portage arch names match Go + local portage_arch=$(tc-arch ${CHOST}) + case "${portage_arch}" in + x86) echo 386;; + *) echo "${portage_arch}";; + esac } # @FUNCTION: go_build