Skip to content

go: update to 1.13.4 #1454

Merged
merged 1 commit into from
Nov 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
#}