Commit 3e5b83bf authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated go to 1.12.6

parent 338bfc1e
current_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
temporary:
tar xf go1.8.7.src.tar.gz
# FIXME: go tests failure! Cannot successfully complete all.bash
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
swapon swap
mkdir -p /tmp/gocache
tar xf go1.12.6.src.tar.gz
if [ "$(HOSTTYPE)" = "aarch64" ]; then \
tar xf go-linux-arm64-bootstrap.tbz ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-arm64-bootstrap ./make.bash ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-arm64-bootstrap GOCACHE=/tmp/gocache ./all.bash ; \
rm -rf $(current_dir)go-linux-arm64-bootstrap ; \
elif [ "$(HOSTTYPE)" = "x86_64" ]; then \
tar xf go-linux-amd64-bootstrap.tbz ; \
ln -s /lib /lib64 ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-amd64-bootstrap ./make.bash ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-amd64-bootstrap GOCACHE=/tmp/gocache ./all.bash ; \
rm -rf /lib64 ; \
rm -rf $(current_dir)go-linux-amd64-bootstrap ; \
else \
tar xf go-linux-arm-bootstrap.tbz ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-arm-bootstrap ./make.bash ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-arm-bootstrap GOCACHE=/tmp/gocache ./all.bash ; \
rm -rf $(current_dir)go-linux-arm-bootstrap ; \
fi
rm -rf /tmp/gocache
swapoff swap
rm -rf swap
......@@ -8,7 +8,7 @@
<exec executable="./make.bash" dir="${makedir}/src"/>
<move file="${builddir}/go" tofile="${builddir}/go1.4"/>
<exec executable="tar" failonerror="true">
<arg line="xf ${basedir}/packages/go/go1.8.7.src.tar.gz -C ${builddir}"/>
<arg line="xf ${basedir}/packages/go/go1.12.6.src.tar.gz -C ${builddir}"/>
</exec>
<exec executable="./bootstrap.bash" dir="${makedir}/src">
<env key="GOROOT_BOOTSTRAP" path="${builddir}/go1.4"/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment