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 authored and classabbyamp committed Feb 24, 2024
1 parent 7e1a6bf commit f60cc7f
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.22-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.22.0"
export GOROOT=$PWD

cd "src"
Expand Down
51 changes: 51 additions & 0 deletions srcpkgs/go1.22-bootstrap/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Template file for 'go1.22-bootstrap'
pkgname=go1.22-bootstrap
version=1.22.0
revision=1
archs="x86_64* i686* armv[67]l* aarch64* ppc64le*"
short_desc="Go 1.22 (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="f6c8a87aa03b92c4b0bf3d558e28ea03006eb29db78917daec5cfb6ec1046265"
;;
i686*)
_dist_arch="386"
checksum="1e209c4abde069067ac9afb341c8003db6a210f8173c77777f02d3a524313da3"
;;
arm*)
_dist_arch="armv6l"
checksum="0525f92f79df7ed5877147bce7b955f159f3962711b69faac66bc7121d36dcc4"
;;
aarch64*)
_dist_arch="arm64"
checksum="6a63fef0e050146f275bf02a0896badfe77c11b6f05499bb647e7bd613a45a10"
;;
ppc64le*)
_dist_arch="ppc64le"
checksum="0e57f421df9449066f00155ce98a5be93744b3d81b00ee4c2c9b511be2a31d93"
;;
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 f60cc7f

Please sign in to comment.