summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-03-20 09:47:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-22 11:35:21 +0000
commitc8e8e50bc3a517740087902f5fdbf30cc2c73818 (patch)
treec7821e8c15e2492de77e76d11fd1de1c0f7bf4a8 /meta/recipes-devtools/go
parent63bdd90acc3423901bb905d5d751ef80d0dab7b8 (diff)
downloadpoky-c8e8e50bc3a517740087902f5fdbf30cc2c73818.tar.gz
go-native: Install bootstrap binaries with 1.4 suffix
Currently, bin/go and bin/gofmt collide between go-native and go-bootstrap-native packages, these are scripts anyway which call the go compiler proper from right install, in this case create go1.4 and gofmt1.4 names for these scripts to avoid namespace collision (From OE-Core rev: c46faa132d39d3dc235a019d9abf6e46f74e3bae) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go')
-rw-r--r--meta/recipes-devtools/go/go-native.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-devtools/go/go-native.inc b/meta/recipes-devtools/go/go-native.inc
index c1ada5121a..c21f8fda78 100644
--- a/meta/recipes-devtools/go/go-native.inc
+++ b/meta/recipes-devtools/go/go-native.inc
@@ -22,14 +22,14 @@ do_compile() {
22} 22}
23 23
24make_wrapper() { 24make_wrapper() {
25 rm -f ${D}${bindir}/$2 25 rm -f ${D}${bindir}/$2$3
26 cat <<END >${D}${bindir}/$2 26 cat <<END >${D}${bindir}/$2$3
27#!/bin/bash 27#!/bin/bash
28here=\`dirname \$0\` 28here=\`dirname \$0\`
29export GOROOT="${GOROOT:-\`readlink -f \$here/../lib/go\`}" 29export GOROOT="${GOROOT:-\`readlink -f \$here/../lib/go$3\`}"
30\$here/../lib/go/bin/$1 "\$@" 30\$here/../lib/go$3/bin/$1 "\$@"
31END 31END
32 chmod +x ${D}${bindir}/$2 32 chmod +x ${D}${bindir}/$2$3
33} 33}
34 34
35do_install() { 35do_install() {
@@ -45,7 +45,7 @@ do_install() {
45 do 45 do
46 base=`basename $f` 46 base=`basename $f`
47 install -m755 $f ${D}${libdir}/go${BOOTSTRAP}/bin 47 install -m755 $f ${D}${libdir}/go${BOOTSTRAP}/bin
48 make_wrapper $base $base 48 make_wrapper $base $base ${BOOTSTRAP}
49 done 49 done
50} 50}
51 51