diff options
author | davidovski <david@davidovski.xyz> | 2022-03-10 11:59:16 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-03-10 11:59:16 +0000 |
commit | bb499959d88da1b3937c23b5405089c907188a81 (patch) | |
tree | d9ddba6d0c8f1152c3919067a52250c6bf0759f9 /repo/devel/go.xibuild | |
parent | 3602ce227f784f1c6233ef6ad3cd8f5ccad28e66 (diff) |
added and patched broken packages
Diffstat (limited to 'repo/devel/go.xibuild')
-rw-r--r-- | repo/devel/go.xibuild | 47 |
1 files changed, 37 insertions, 10 deletions
diff --git a/repo/devel/go.xibuild b/repo/devel/go.xibuild index 9673f12..9a5f1b7 100644 --- a/repo/devel/go.xibuild +++ b/repo/devel/go.xibuild @@ -1,26 +1,53 @@ #!/bin/sh -MAKEDEPS="make" +# Ensure we have gcc-go +MAKEDEPS="make gcc" DEPS="" PKG_VER=1.17.7 SOURCE=https://go.dev/dl/go$PKG_VER.src.tar.gz + +BOOTSTRAP="go1.4-bootstrap-20171003" +ADDITIONAL=" + https://dl.google.com/go/$BOOTSTRAP.tar.gz +" + DESC="Core compiler tools for the Go programming language" +prepare () { + export TMPDIR=/tmp + tar -xvf $BOOTSTRAP.tar.gz + mv go $BOOTSTRAP +} + build () { - export GOARCH=amd64 - export GOAMD64=v1 # make sure we're building for the right x86-64 version - export GOROOT_FINAL=/usr/lib/go - export GOROOT_BOOTSTRAP=/usr/lib/go - - cd src - ./make.bash -v - cd .. + export sourceroot=$(pwd) + export GOARCH=amd64 + export GOAMD64=v1 # make sure we're building for the right x86-64 version + export GOOS="linux" + + cd $BOOTSTRAP + cd src + echo "~~~~BUILDING BOOTSTRAP" + CGO_ENABLED=0 ./make.bash -v + + cd $sourceroot + export GOROOT_FINAL=/usr/lib/go + export GOROOT_BOOTSTRAP="$(pwd)/$BOOTSTRAP" + + echo "~~~~BUILDING GOLANG" + cd src + if [ ! -z "${GOROOT_BOOTSTRAP}" ]; then + ./bootstrap.bash -v + fi + ./make.bash -v + cd .. } package () { install -d "$PKG_DEST/usr/bin" "$PKG_DEST/usr/lib/go" "$PKG_DEST/usr/share/doc/go" \ - "$PKG_DEST/usr/lib/go/pkg/linux_amd64_"{dynlink,race} + "$PKG_DEST/usr/lib/go/pkg/linux_amd64_"dynlink \ + "$PKG_DEST/usr/lib/go/pkg/linux_amd64_"race cp -a bin pkg src lib misc api test "$PKG_DEST/usr/lib/go" cp -r doc/* "$PKG_DEST/usr/share/doc/go" |