diff --git a/go.be0 b/go.be0 index dde392157..d3f2b5df9 100755 --- a/go.be0 +++ b/go.be0 @@ -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" @@ -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 +#}