Skip to content

Commit

Permalink
go: update to 1.21.5.
Browse files Browse the repository at this point in the history
fixes #46717

Co-authored-by: dkwo <[email protected]>
  • Loading branch information
2 people authored and classabbyamp committed Dec 10, 2023
1 parent 02d0cd4 commit 12ba34d
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions srcpkgs/go/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'go'
pkgname=go
version=1.21.4
version=1.21.5
revision=1
create_wrksrc=yes
build_wrksrc=go
Expand All @@ -12,20 +12,26 @@ license="BSD-3-Clause"
homepage="https://go.dev/"
changelog="https://go.dev/doc/devel/release.html"
distfiles="https://go.dev/dl/go${version}.src.tar.gz"
checksum=47b26a83d2b65a3c1c1bcace273b69bee49a7a7b5168a7604ded3d26a37bd787
checksum=285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19
nostrip=yes
noverifyrdeps=yes
# on CI it tries to use `git submodule`, which is not part of chroot-git
make_check=ci-skip

# keep in sync with common/environment/build-style/go.sh
case "${XBPS_TARGET_MACHINE}" in
aarch64*) _goarch=arm64 ;;
arm*) _goarch=arm ;;
i686*) _goarch=386 ;;
x86_64*) _goarch=amd64 ;;
ppc64le*) _goarch=ppc64le ;;
mips*) _goarch=mips ;;
riscv64*) _goarch=riscv64 ;;
aarch64*) export GOARCH=arm64 ;;
armv5*) export GOARCH=arm; export GOARM=5 ;;
armv6*) export GOARCH=arm; export GOARM=6 ;;
armv7*) export GOARCH=arm; export GOARM=7 ;;
i686*) export GOARCH=386 ;;
x86_64*) export GOARCH=amd64 ;;
ppc64le*) export GOARCH=ppc64le ;;
ppc64*) export GOARCH=ppc64 ;;
ppc*) export GOARCH=ppc ;;
mipsel*) export GOARCH=mipsle ;;
mips*) export GOARCH=mips ;;
riscv64*) export GOARCH=riscv64 ;;
*) broken="Unsupported architecture ${XBPS_TARGET_MACHINE}" ;;
esac

Expand Down Expand Up @@ -56,7 +62,6 @@ do_build() {

export GOROOT_BOOTSTRAP="/usr/lib/go1.17.13"
export GOROOT=$PWD
export GOARCH=${_goarch}

cd "src"

Expand All @@ -76,7 +81,7 @@ do_install() {
local bindir

if [ "$CROSS_BUILD" ]; then
bindir=bin/linux_${_goarch}
bindir=bin/linux_${GOARCH}
else
bindir=bin
fi
Expand All @@ -85,7 +90,7 @@ do_install() {
vmkdir usr/lib/go
vmkdir usr/lib/go/bin
vmkdir usr/share/go
cp -d --preserve=all ${bindir}/* ${DESTDIR}/usr/lib/go/bin || true
cp -d --preserve=all ${bindir}/* ${DESTDIR}/usr/lib/go/bin
cp -a pkg src lib ${DESTDIR}/usr/lib/go
cp -r doc misc -t ${DESTDIR}/usr/share/go
ln -s /usr/share/go/doc ${DESTDIR}/usr/lib/go/doc
Expand Down

0 comments on commit 12ba34d

Please sign in to comment.