Update to Go 1.25.0

Set GOAMD64 to v2 to align with new architecture baselines
Modify the modify_go.env.patch to reflect GOAMD64 baseline version change to v2

Resolves: RHEL-109557
This commit is contained in:
Alejandro Sáez 2025-08-20 16:16:45 +02:00
parent f8d831129a
commit 7676ceb205
3 changed files with 16 additions and 5 deletions

2
.gitignore vendored
View File

@ -95,3 +95,5 @@
/go1.24.4.tar.gz
/go1.24.6.tar.gz
/go1.24.6-1-openssl-fips.tar.gz
/go1.25.0.tar.gz
/go1.25.0-1-openssl-fips.tar.gz

View File

@ -92,8 +92,8 @@
%global gohostarch s390x
%endif
%global go_api 1.24
%global go_version 1.24.6
%global go_api 1.25
%global go_version 1.25.0
%global version %{go_version}
%global pkg_release 1
@ -101,7 +101,7 @@
%global llvm_compiler_rt_version 18.1.8
Name: golang
Version: %{version}
Version: %{version}
Release: 1%{?dist}
Summary: The Go Programming Language
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
@ -332,6 +332,7 @@ export GOROOT_FINAL=%{goroot}
export GOHOSTOS=linux
export GOHOSTARCH=%{gohostarch}
export GOAMD64=v2
pushd src
# use our gcc options for this build, but store gcc as default for compiler
@ -341,6 +342,7 @@ export CC="gcc"
export CC_FOR_TARGET="gcc"
export GOOS=linux
export GOARCH=%{gohostarch}
export GOAMD64=v2
DEFAULT_GO_LD_FLAGS=""
%if !%{external_linker}
@ -478,6 +480,7 @@ go env
export CC="gcc"
export CFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="$RPM_LD_FLAGS"
export GOAMD64=v2
%if !%{external_linker}
export GO_LDFLAGS="-linkmode internal"
%else
@ -585,6 +588,12 @@ cd ..
%endif
%changelog
* Wed Aug 20 2025 Alejandro Sáez <asm@redhat.com> - 1.25.0-1
- Update to Go 1.25.0
- Set GOAMD64 to v2 to align with new architecture baselines
- Modify the modify_go.env.patch to reflect GOAMD64 baseline version change to v2
- Resolves: RHEL-109557
* Wed Aug 13 2025 David Benoit <dbenoit@redhat.com> - 1.24.6-1
- Update to Go 1.24.6 (fips-1)
- Resolves: RHEL-106461

View File

@ -1,3 +1,3 @@
SHA512 (go1.24.6.tar.gz) = 91984c61d19cad1444004bbe23143eee4f8170c102f353b14605b4f21a726f40a18e86fe67c7694bb3c4b5b979103e52d38d06188491f60d0e51e0ee860a6590
SHA512 (go1.24.6-1-openssl-fips.tar.gz) = a166edc8f159dee3e2771c76fc98cb66c333166645705cf4b917016cc3650952e06c67cf7021ba3e82138909b2802ac922a530be5b568a1470fdfaa9f187343c
SHA512 (go1.25.0.tar.gz) = 91619e72d04a8bc17bcb61365a01f983c350c17a60cab188169e9b478a80db7616ff8653e3a564e84799ddb79cbced690694a313a742dd9faf31a209c072218f
SHA512 (go1.25.0-1-openssl-fips.tar.gz) = 060e0d318a96585c61209cb0509d11df62ba47b0f681e3a7fc9448c5ba3f18a4dc672706bd5cf52ee8b433d7e07aaf3cf2f09ed02b69f0e49e5baaffc0cf2213
SHA512 (compiler-rt-18.1.8.src.tar.xz) = fb8795bd51c9b005c2ad1975591e9e2715740d6407ccad41379f136ef2e8d24ded8b97b01165a3ae4bd377119a6a1049ca05d3220404fc12bee86114ff2bff0d