Skip to content

Commit

Permalink
go: update to 1.13.4
Browse files Browse the repository at this point in the history
- bump version
- fix installation
  • Loading branch information
wwwutz committed Nov 6, 2019
1 parent 5dbf886 commit 588a8fd
Showing 1 changed file with 16 additions and 23 deletions.
39 changes: 16 additions & 23 deletions go.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION go-1.13.1-0
# BEE_VERSION go-1.13.4-1

SRCURL[0]="https://storage.googleapis.com/golang/go1.4-bootstrap-20171003.tar.gz"
SRCURL[1]="https://redirector.gvt1.com/edgedl/go/go${PKGVERSION}.src.tar.gz"
Expand Down Expand Up @@ -49,37 +49,30 @@ mee_build() {

mee_install() {
# The binaries expect /scratch/local/bee-root/go/go-1.10-0/source to be copied or moved to /usr/lib/go
mkdir -p ${D}${BINDIR}
mkdir -pv ${D}${BINDIR}

cp -r ${S}/../bin/. ${D}${BINDIR}

mkdir -p ${D}${LIBDIR}/go
cp -rv ${S}/../bin/. ${D}${BINDIR}

# strace -s 200 -e file ${S}/../bin/go install -buildmode=shared std

# Install standardlibs https://golang.org/pkg/#stdlib

LIBS="builtin context debug expvar go image io math \
path runtime strings testing unicode bufio bytes \
compress crypto encoding flag hash index mime net plugin reflect \
sort sync text unsafe archive cmd container database errors \
fmt html internal log os regexp strconv syscall time"

echo "LIBS=${LIBS}"
mkdir -pv ${D}${LIBDIR}/go/src

mkdir -p ${D}${LIBDIR}/go/src
for i in $LIBS; do
cp -r ${S}/${i} ${D}${LIBDIR}/go/src
cd ${S}
for i in *; do
if [ -d "${i}" ]; then
cp -rv ${i} ${D}${LIBDIR}/go/src
fi
done

#Install tools for go
mkdir -p ${D}${LIBDIR}/go/pkg
cp -r ${S}/../pkg/tool ${D}${LIBDIR}/go/pkg
cp -r ${S}/../pkg/include ${D}${LIBDIR}/go/pkg
cp -r ${S}/../pkg/linux_amd64 ${D}${LIBDIR}/go/pkg
mkdir -pv ${D}${LIBDIR}/go/pkg
cp -rv ${S}/../pkg/tool ${D}${LIBDIR}/go/pkg
cp -rv ${S}/../pkg/include ${D}${LIBDIR}/go/pkg
cp -rv ${S}/../pkg/linux_amd64 ${D}${LIBDIR}/go/pkg
}

mee_install_post() {
# exit
:
}
#mee_install_post() {
# exit
#}

0 comments on commit 588a8fd

Please sign in to comment.