Skip to content

Commit

Permalink
go: update to 1.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
felix committed Feb 8, 2024
1 parent 73dd1d1 commit 1b6b8de
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 217 deletions.
13 changes: 0 additions & 13 deletions srcpkgs/go/patches/fix-32bit-tests.patch

This file was deleted.

29 changes: 0 additions & 29 deletions srcpkgs/go/patches/fix-musl-tests.patch

This file was deleted.

171 changes: 0 additions & 171 deletions srcpkgs/go/patches/fix-tests.patch

This file was deleted.

8 changes: 4 additions & 4 deletions srcpkgs/go/template
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Template file for 'go'
pkgname=go
version=1.21.5
version=1.22.0
revision=1
create_wrksrc=yes
build_wrksrc=go
hostmakedepends="go1.17-bootstrap"
hostmakedepends="go1.20-bootstrap"
checkdepends="iana-etc clang gcc-fortran"
short_desc="Go Programming Language"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
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=285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19
checksum=4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c
nostrip=yes
noverifyrdeps=yes
# on CI it tries to use `git submodule`, which is not part of chroot-git
Expand Down Expand Up @@ -60,7 +60,7 @@ do_build() {
# dependency
unset CGO_CXXFLAGS CGO_ENABLED # CGO_CFLAGS

export GOROOT_BOOTSTRAP="/usr/lib/go1.17.13"
export GOROOT_BOOTSTRAP="/usr/lib/go1.20.14"
export GOROOT=$PWD

cd "src"
Expand Down
51 changes: 51 additions & 0 deletions srcpkgs/go1.20-bootstrap/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Template file for 'go1.20-bootstrap'
pkgname=go1.20-bootstrap
version=1.20.14
revision=1
archs="x86_64* i686* armv[67]l* aarch64* ppc64le*"
short_desc="Go 1.17 (bootstrap compiler)"
maintainer="Felix Hanley <felix@userspace.com.au>"
license="BSD-3-Clause"
homepage="https://golang.org"
nostrip=yes
noverifyrdeps=yes
nocross=yes
lib32disabled=yes
repository=bootstrap

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
depends+=" gcompat"
fi

case "$XBPS_TARGET_MACHINE" in
x86_64*)
_dist_arch="amd64"
checksum="ff445e48af27f93f66bd949ae060d97991c83e11289009d311f25426258f9c44"
;;
i686*)
_dist_arch="386"
checksum="9c0acad376b41292c6e9e5534e26d9432f92a214d6c40a7e4c024b0235cc30e8"
;;
arm*)
_dist_arch="armv6l"
checksum="803c112c0f14eb794af66e28ad477c2c3f5f4969fe2bed8d920fd2be4946c203"
;;
aarch64*)
_dist_arch="arm64"
checksum="2096507509a98782850d1f0669786c09727053e9fe3c92b03c0d96f48700282b"
;;
ppc64le*)
_dist_arch="ppc64le"
checksum="237b1da9b65629a9b0fcf1f3ca75b4c84ef55fca1fc3eadf1681da7bbcb2e9cd"
;;
esac

distfiles="https://dl.google.com/go/go${version}.linux-${_dist_arch}.tar.gz"

do_install() {
vmkdir usr/lib/go${version}
vcopy bin usr/lib/go${version}
vcopy src usr/lib/go${version}
vcopy pkg usr/lib/go${version}
vlicense LICENSE
}

0 comments on commit 1b6b8de

Please sign in to comment.