|
|
@ -70,11 +70,8 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Pre build std lib with -race enabled
|
|
|
|
# Pre build std lib with -race enabled
|
|
|
|
%ifarch x86_64
|
|
|
|
# Disabled due to 1.20 new cache usage, see 1.20 upstream release notes
|
|
|
|
%global race 1
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%global race 0
|
|
|
|
%global race 0
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
%ifarch x86_64
|
|
|
|
%global gohostarch amd64
|
|
|
|
%global gohostarch amd64
|
|
|
@ -95,10 +92,10 @@
|
|
|
|
%global gohostarch s390x
|
|
|
|
%global gohostarch s390x
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global go_api 1.19
|
|
|
|
%global go_api 1.20
|
|
|
|
%global go_version 1.19.13
|
|
|
|
%global go_version 1.20.10
|
|
|
|
%global version %{go_version}
|
|
|
|
%global version %{go_version}
|
|
|
|
%global pkg_release 2
|
|
|
|
%global pkg_release 1
|
|
|
|
|
|
|
|
|
|
|
|
Name: golang
|
|
|
|
Name: golang
|
|
|
|
Version: %{version}
|
|
|
|
Version: %{version}
|
|
|
@ -158,6 +155,9 @@ Obsoletes: %{name}-docs < 1.1-4
|
|
|
|
# RPM can't handle symlink -> dir with subpackages, so merge back
|
|
|
|
# RPM can't handle symlink -> dir with subpackages, so merge back
|
|
|
|
Obsoletes: %{name}-data < 1.1.1-4
|
|
|
|
Obsoletes: %{name}-data < 1.1.1-4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# We don't build golang-race anymore, rhbz#2230705
|
|
|
|
|
|
|
|
Obsoletes: golang-race < 1.20.0
|
|
|
|
|
|
|
|
|
|
|
|
# These are the only RHEL/Fedora architectures that we compile this package for
|
|
|
|
# These are the only RHEL/Fedora architectures that we compile this package for
|
|
|
|
ExclusiveArch: %{golang_arches}
|
|
|
|
ExclusiveArch: %{golang_arches}
|
|
|
|
|
|
|
|
|
|
|
@ -238,6 +238,16 @@ Requires: %{name} = %{version}-%{release}
|
|
|
|
%{summary}
|
|
|
|
%{summary}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n go-toolset
|
|
|
|
|
|
|
|
Summary: Package that installs go-toolset
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
|
|
|
Requires: delve
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n go-toolset
|
|
|
|
|
|
|
|
This is the main package for go-toolset.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n go-go%{version}
|
|
|
|
%setup -q -n go-go%{version}
|
|
|
|
|
|
|
|
|
|
|
@ -247,7 +257,7 @@ popd
|
|
|
|
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/000-initial-setup.patch
|
|
|
|
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/000-initial-setup.patch
|
|
|
|
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/001-initial-openssl-for-fips.patch
|
|
|
|
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/001-initial-openssl-for-fips.patch
|
|
|
|
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/002-strict-fips-runtime-detection.patch
|
|
|
|
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/002-strict-fips-runtime-detection.patch
|
|
|
|
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/003-h2-bundle-fix-CVE-2023-39325.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configure crypto tests
|
|
|
|
# Configure crypto tests
|
|
|
|
pushd ../go-go%{version}-%{pkg_release}-openssl-fips
|
|
|
|
pushd ../go-go%{version}-%{pkg_release}-openssl-fips
|
|
|
@ -255,12 +265,7 @@ ln -s ../go-go%{version} go
|
|
|
|
./scripts/configure-crypto-tests.sh
|
|
|
|
./scripts/configure-crypto-tests.sh
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%patch2 -p1
|
|
|
|
%autopatch -p1
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%patch221 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%patch1939923 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp %{SOURCE2} ./src/runtime/
|
|
|
|
cp %{SOURCE2} ./src/runtime/
|
|
|
|
|
|
|
|
|
|
|
@ -344,12 +349,11 @@ cwd=$(pwd)
|
|
|
|
src_list=$cwd/go-src.list
|
|
|
|
src_list=$cwd/go-src.list
|
|
|
|
pkg_list=$cwd/go-pkg.list
|
|
|
|
pkg_list=$cwd/go-pkg.list
|
|
|
|
shared_list=$cwd/go-shared.list
|
|
|
|
shared_list=$cwd/go-shared.list
|
|
|
|
race_list=$cwd/go-race.list
|
|
|
|
|
|
|
|
misc_list=$cwd/go-misc.list
|
|
|
|
misc_list=$cwd/go-misc.list
|
|
|
|
docs_list=$cwd/go-docs.list
|
|
|
|
docs_list=$cwd/go-docs.list
|
|
|
|
tests_list=$cwd/go-tests.list
|
|
|
|
tests_list=$cwd/go-tests.list
|
|
|
|
rm -f $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list $race_list
|
|
|
|
rm -f $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list
|
|
|
|
touch $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list $race_list
|
|
|
|
touch $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list
|
|
|
|
pushd $RPM_BUILD_ROOT%{goroot}
|
|
|
|
pushd $RPM_BUILD_ROOT%{goroot}
|
|
|
|
find src/ -type d -a \( ! -name testdata -a ! -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $src_list
|
|
|
|
find src/ -type d -a \( ! -name testdata -a ! -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $src_list
|
|
|
|
find src/ ! -type d -a \( ! -ipath '*/testdata/*' -a ! -name '*_test*.go' \) -printf '%{goroot}/%p\n' >> $src_list
|
|
|
|
find src/ ! -type d -a \( ! -ipath '*/testdata/*' -a ! -name '*_test*.go' \) -printf '%{goroot}/%p\n' >> $src_list
|
|
|
@ -380,13 +384,6 @@ pushd $RPM_BUILD_ROOT%{goroot}
|
|
|
|
find pkg/*_dynlink/ ! -type d -printf '%{goroot}/%p\n' >> $shared_list
|
|
|
|
find pkg/*_dynlink/ ! -type d -printf '%{goroot}/%p\n' >> $shared_list
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{race}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find pkg/*_race/ -type d -printf '%%%dir %{goroot}/%p\n' >> $race_list
|
|
|
|
|
|
|
|
find pkg/*_race/ ! -type d -printf '%{goroot}/%p\n' >> $race_list
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find test/ -type d -printf '%%%dir %{goroot}/%p\n' >> $tests_list
|
|
|
|
find test/ -type d -printf '%%%dir %{goroot}/%p\n' >> $tests_list
|
|
|
|
find test/ ! -type d -printf '%{goroot}/%p\n' >> $tests_list
|
|
|
|
find test/ ! -type d -printf '%{goroot}/%p\n' >> $tests_list
|
|
|
|
find src/ -type d -a \( -name testdata -o -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $tests_list
|
|
|
|
find src/ -type d -a \( -name testdata -o -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $tests_list
|
|
|
@ -447,7 +444,7 @@ export CGO_ENABLED=0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# make sure to not timeout
|
|
|
|
# make sure to not timeout
|
|
|
|
export GO_TEST_TIMEOUT_SCALE=20
|
|
|
|
export GO_TEST_TIMEOUT_SCALE=2
|
|
|
|
|
|
|
|
|
|
|
|
export GO_TEST_RUN=""
|
|
|
|
export GO_TEST_RUN=""
|
|
|
|
%ifarch aarch64
|
|
|
|
%ifarch aarch64
|
|
|
@ -463,9 +460,9 @@ export GOLANG_FIPS=1
|
|
|
|
export OPENSSL_FORCE_FIPS_MODE=1
|
|
|
|
export OPENSSL_FORCE_FIPS_MODE=1
|
|
|
|
pushd crypto
|
|
|
|
pushd crypto
|
|
|
|
# Run all crypto tests but skip TLS, we will run FIPS specific TLS tests later
|
|
|
|
# Run all crypto tests but skip TLS, we will run FIPS specific TLS tests later
|
|
|
|
go test $(go list ./... | grep -v tls) -v
|
|
|
|
go test -timeout 50m $(go list ./... | grep -v tls) -v
|
|
|
|
# Check that signature functions have parity between boring and notboring
|
|
|
|
# Check that signature functions have parity between boring and notboring
|
|
|
|
CGO_ENABLED=0 go test $(go list ./... | grep -v tls) -v
|
|
|
|
CGO_ENABLED=0 go test -timeout 50m $(go list ./... | grep -v tls) -v
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
# Run all FIPS specific TLS tests
|
|
|
|
# Run all FIPS specific TLS tests
|
|
|
|
pushd crypto/tls
|
|
|
|
pushd crypto/tls
|
|
|
@ -527,40 +524,46 @@ cd ..
|
|
|
|
%files -f go-shared.list shared
|
|
|
|
%files -f go-shared.list shared
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{race}
|
|
|
|
%files -n go-toolset
|
|
|
|
%files -f go-race.list race
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Oct 12 2023 Derek Parker <deparker@redhat.com> - 1.19.13-1
|
|
|
|
* Fri Oct 13 2023 David Benoit <dbenoit@redhat.com> - 1.20.10-1
|
|
|
|
|
|
|
|
- Update to Go 1.20.10
|
|
|
|
- Fix CVE-2023-39325
|
|
|
|
- Fix CVE-2023-39325
|
|
|
|
- Resolves: RHEL-12622
|
|
|
|
- Midstream patches
|
|
|
|
|
|
|
|
- Resolves: RHEL-12623
|
|
|
|
* Wed Sep 13 2023 Archana Ravindar <aravinda@redhat.com> - 1.19.12-2
|
|
|
|
|
|
|
|
- Add strict fips runtime detection patch
|
|
|
|
* Wed Sep 27 2023 Alejandro Sáez <asm@redhat.com> - 1.20.8-1
|
|
|
|
- Related: rhbz#2223637
|
|
|
|
- Rebase to Go 1.20.8
|
|
|
|
|
|
|
|
- Remove fix-memory-leak-evp-sign-verify.patch as it is already included in the source
|
|
|
|
* Fri Sep 1 2023 Archana Ravindar <aravinda@redhat.com> - 1.19.12-1
|
|
|
|
- Resolves: RHEL-2775
|
|
|
|
- Update to Go 1.19.12
|
|
|
|
|
|
|
|
- Resolves: rhbz#2223637
|
|
|
|
* Mon Aug 14 2023 Alejandro Sáez <asm@redhat.com> - 1.20.6-5
|
|
|
|
|
|
|
|
- Retire golang-race package
|
|
|
|
* Tue Jun 6 2023 David Benoit <dbenoit@redhat.com> - 1.19.10-1
|
|
|
|
- Resolves: rhbz#2230705
|
|
|
|
- Update to Go 1.19.10
|
|
|
|
|
|
|
|
- Resolves: rhbz#2217626
|
|
|
|
* Tue Jul 18 2023 Alejandro Sáez <asm@redhat.com> - 1.20.6-1
|
|
|
|
- Resolves: rhbz#2217612
|
|
|
|
- Rebase to Go 1.20.6
|
|
|
|
- Resolves: rhbz#2217584
|
|
|
|
- Change to autopatch
|
|
|
|
|
|
|
|
- Resolves: rhbz#2222313
|
|
|
|
* Tue May 23 2023 Alejandro Sáez <asm@redhat.com> - 1.19.9-2
|
|
|
|
|
|
|
|
- Fix TestEncryptOAEP and TLS failures in FIPS mode
|
|
|
|
* Fri Jun 23 2023 Alejandro Sáez <asm@redhat.com> - 1.20.4-3
|
|
|
|
- Resolves: rhbz#2204476
|
|
|
|
- Increase the timeout in the tests
|
|
|
|
|
|
|
|
- Related: rhbz#2204477
|
|
|
|
* Wed May 17 2023 Alejandro Sáez <asm@redhat.com> - 1.19.9-1
|
|
|
|
|
|
|
|
- Rebase to Go 1.19.9
|
|
|
|
* Fri Jun 09 2023 Carl George <carl@redhat.com> - 1.20.4-2
|
|
|
|
- Resolves: rhbz#2204476
|
|
|
|
- Add go-toolset subpackage to ensure golang and go-toolset are published together
|
|
|
|
|
|
|
|
- Resolves: rhbz#2117248
|
|
|
|
* Wed Mar 29 2023 David Benoit <dbenoit@redhat.com> - 1.19.6-2
|
|
|
|
|
|
|
|
- Rebuild without changes
|
|
|
|
* Mon May 29 2023 Alejandro Sáez <asm@redhat.com> - 1.20.4-1
|
|
|
|
- Related: rhbz#2175174
|
|
|
|
- Rebase to Go 1.20.4
|
|
|
|
|
|
|
|
- Resolves: rhbz#2204477
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 11 2023 David Benoit <dbenoit@redhat.com> - 1.20.3-1
|
|
|
|
|
|
|
|
- Rebase to Go 1.20.3
|
|
|
|
|
|
|
|
- Remove race archives
|
|
|
|
|
|
|
|
- Update static test patches
|
|
|
|
|
|
|
|
- Resolves: rhbz#2185259
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 01 2023 David Benoit <dbenoit@redhat.com> - 1.19.6-1
|
|
|
|
* Wed Mar 01 2023 David Benoit <dbenoit@redhat.com> - 1.19.6-1
|
|
|
|
- Rebase to Go 1.19.6
|
|
|
|
- Rebase to Go 1.19.6
|
|
|
|