summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/go-cross
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2015-10-06 14:41:13 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-10-13 11:29:57 -0400
commitd0ef47396d1ea7c67b27898f6d0401cbcef45281 (patch)
tree7cd0dae545e97c5a278e4961db6811026aa053e5 /recipes-devtools/go-cross
parent7817649098ea61e8d3e31600a589e856fc254006 (diff)
downloadmeta-virtualization-d0ef47396d1ea7c67b27898f6d0401cbcef45281.tar.gz
Enable go-cross 1.3 to coexist with later versions
Since we need go 1.3 to co-exist with later versions (ie 1.4), package go-cross_1.3 as go-cross-1.3_1.3. go 1.3 will be installed to a different path than go-cross, this requires go packages needing go 1.3 to set its PATH to: export PATH=${STAGING_BINDIR_NATIVE}/${HOST_SYS}/go-1.3:$PATH Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-devtools/go-cross')
-rw-r--r--recipes-devtools/go-cross/go-cross-1.3_1.3.bb (renamed from recipes-devtools/go-cross/go-cross_1.3.bb)11
1 files changed, 6 insertions, 5 deletions
diff --git a/recipes-devtools/go-cross/go-cross_1.3.bb b/recipes-devtools/go-cross/go-cross-1.3_1.3.bb
index 1fb48700..775e28f3 100644
--- a/recipes-devtools/go-cross/go-cross_1.3.bb
+++ b/recipes-devtools/go-cross/go-cross-1.3_1.3.bb
@@ -25,7 +25,7 @@ SRC_URI += "\
25 25
26do_compile() { 26do_compile() {
27 ## Setting `$GOBIN` doesn't do any good, looks like it ends up copying binaries there. 27 ## Setting `$GOBIN` doesn't do any good, looks like it ends up copying binaries there.
28 export GOROOT_FINAL="${SYSROOT}${libdir}/go" 28 export GOROOT_FINAL="${SYSROOT}${libdir}/go-1.3"
29 29
30 export GOHOSTOS="linux" 30 export GOHOSTOS="linux"
31 export GOOS="linux" 31 export GOOS="linux"
@@ -61,11 +61,12 @@ do_compile() {
61do_install() { 61do_install() {
62 ## It should be okay to ignore `${WORKDIR}/go/bin/linux_arm`... 62 ## It should be okay to ignore `${WORKDIR}/go/bin/linux_arm`...
63 ## Also `gofmt` is not needed right now. 63 ## Also `gofmt` is not needed right now.
64 install -d "${D}${bindir}" 64 install -d "${D}${bindir}/go-1.3"
65 install -m 0755 "${WORKDIR}/go/bin/go" "${D}${bindir}" 65 install -m 0755 "${WORKDIR}/go/bin/go" "${D}${bindir}/go-1.3/"
66 install -d "${D}${libdir}/go" 66 install -d "${D}${libdir}/go-1.3"
67
67 ## TODO: use `install` instead of `cp` 68 ## TODO: use `install` instead of `cp`
68 for dir in include lib pkg src test 69 for dir in include lib pkg src test
69 do cp -a "${WORKDIR}/go/${dir}" "${D}${libdir}/go/" 70 do cp -a "${WORKDIR}/go/${dir}" "${D}${libdir}/go-1.3/"
70 done 71 done
71} 72}