Update to Go 1.26.1
Adds skip-TestTerminalSignal-in-container.patch Resolves: RHEL-153434
This commit is contained in:
parent
f52e915041
commit
8f55eff44d
3
.gitignore
vendored
3
.gitignore
vendored
@ -106,3 +106,6 @@
|
||||
/go1.25.5-1-openssl-fips.tar.gz
|
||||
/go1.25.7.tar.gz
|
||||
/go1.25.7-1-openssl-fips.tar.gz
|
||||
/go1.26.1.src.tar.gz
|
||||
/go1.26.1-1-openssl-fips.tar.gz
|
||||
/go1.26.1.tar.gz
|
||||
|
||||
14
golang.spec
14
golang.spec
@ -92,8 +92,8 @@
|
||||
%global gohostarch s390x
|
||||
%endif
|
||||
|
||||
%global go_api 1.25
|
||||
%global go_version 1.25.7
|
||||
%global go_api 1.26
|
||||
%global go_version 1.26.1
|
||||
%global version %{go_version}
|
||||
%global pkg_release 1
|
||||
|
||||
@ -156,6 +156,7 @@ Patch4: modify_go.env.patch
|
||||
Patch6: skip_TestCrashDumpsAllThreads.patch
|
||||
# Related: https://sourceware.org/bugzilla/show_bug.cgi?id=33204
|
||||
Patch7: revert_dwarf5.patch
|
||||
Patch8: skip-TestTerminalSignal-in-container.patch
|
||||
|
||||
# Having documentation separate was broken
|
||||
Obsoletes: %{name}-docs < 1.1-4
|
||||
@ -518,9 +519,10 @@ export GOLANG_FIPS=1
|
||||
export OPENSSL_FORCE_FIPS_MODE=1
|
||||
pushd crypto
|
||||
# Run all crypto tests but skip TLS, we will run FIPS specific TLS tests later
|
||||
go test -timeout 50m $(go list ./... | grep -v tls) -v -skip="TestEd25519Vectors|TestACVP"
|
||||
FIPS_SKIP="TestEd25519Vectors|TestACVP|TestGCMNoncesFIPSV126|TestGCMNoncesFIPSV1|TestWithoutEnforcement|TestCASTPasses|TestCASTFailures|TestIntegrityCheck|TestBetterTLS"
|
||||
go test -timeout 50m $(go list ./... | grep -v tls) -v -skip="$FIPS_SKIP"
|
||||
# Check that signature functions have parity between boring and notboring
|
||||
CGO_ENABLED=0 go test -timeout 50m $(go list ./... | grep -v tls) -v -skip="TestEd25519Vectors|TestACVP"
|
||||
CGO_ENABLED=0 go test -timeout 50m $(go list ./... | grep -v tls) -v -skip="$FIPS_SKIP"
|
||||
popd
|
||||
# Run all FIPS specific TLS tests
|
||||
pushd crypto/tls
|
||||
@ -599,6 +601,10 @@ cd ..
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Mar 27 2026 Alejandro Sáez <asm@redhat.com> - 1.26.1-1
|
||||
- Update to Go 1.26.1
|
||||
- Resolves: RHEL-153434
|
||||
|
||||
* Thu Feb 12 2026 dbenoit <dbenoit@redhat.com> - 1.25.7-1
|
||||
- Update to Go 1.25.7 (fips-1)
|
||||
- Resolves: RHEL-146452
|
||||
|
||||
@ -1,17 +1,8 @@
|
||||
From e90ae9076a108b83c645814f75a574c14a5a4b98 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
|
||||
Date: Wed, 27 Aug 2025 16:18:09 +0200
|
||||
Subject: [PATCH] Revert DWARF5 as default, use DWARF4
|
||||
|
||||
---
|
||||
src/internal/buildcfg/exp.go | 13 +------------
|
||||
1 file changed, 1 insertion(+), 12 deletions(-)
|
||||
|
||||
diff --git a/src/internal/buildcfg/exp.go b/src/internal/buildcfg/exp.go
|
||||
index 689ca8ce58..b2ea97481b 100644
|
||||
index aa41986..f1a8ba8 100644
|
||||
--- a/src/internal/buildcfg/exp.go
|
||||
+++ b/src/internal/buildcfg/exp.go
|
||||
@@ -67,24 +67,13 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) {
|
||||
@@ -69,21 +69,11 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) {
|
||||
regabiSupported = true
|
||||
}
|
||||
|
||||
@ -25,18 +16,12 @@ index 689ca8ce58..b2ea97481b 100644
|
||||
- // support the necessary section subtypes for DWARF-specific
|
||||
- // things like .debug_addr (needed for DWARF 5).
|
||||
- dwarf5Supported := (goos != "darwin" && goos != "ios" && goos != "aix")
|
||||
-
|
||||
baseline := goexperiment.Flags{
|
||||
RegabiWrappers: regabiSupported,
|
||||
RegabiArgs: regabiSupported,
|
||||
AliasTypeParams: true,
|
||||
SwissMap: true,
|
||||
SyncHashTrieMap: true,
|
||||
- Dwarf5: dwarf5Supported,
|
||||
+ Dwarf5: false,
|
||||
}
|
||||
|
||||
// Start with the statically enabled set of experiments.
|
||||
--
|
||||
2.51.0
|
||||
|
||||
baseline := goexperiment.Flags{
|
||||
RegabiWrappers: regabiSupported,
|
||||
RegabiArgs: regabiSupported,
|
||||
- Dwarf5: dwarf5Supported,
|
||||
+ Dwarf5: false,
|
||||
RandomizedHeapBase64: true,
|
||||
GreenTeaGC: true,
|
||||
}
|
||||
|
||||
26
skip-TestTerminalSignal-in-container.patch
Normal file
26
skip-TestTerminalSignal-in-container.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff --git a/src/os/signal/signal_cgo_test.go b/src/os/signal/signal_cgo_test.go
|
||||
index abcdef1..abcdef2 100644
|
||||
--- a/src/os/signal/signal_cgo_test.go
|
||||
+++ b/src/os/signal/signal_cgo_test.go
|
||||
@@ -17,6 +17,7 @@
|
||||
"internal/syscall/unix"
|
||||
"internal/testenv"
|
||||
"internal/testpty"
|
||||
+ "strings"
|
||||
"os"
|
||||
"os/signal"
|
||||
"runtime"
|
||||
@@ -79,6 +80,13 @@
|
||||
t.Skip("skipping: wait hangs on dragonfly; see https://go.dev/issue/56132")
|
||||
}
|
||||
|
||||
+ // Check if we're in a container environment where wait4() might hang
|
||||
+ if data, err := os.ReadFile("/proc/1/comm"); err == nil {
|
||||
+ if strings.Contains(string(data), "podman") {
|
||||
+ t.Skip("Skipping TestTerminalSignal in container environment - wait4() operations may hang")
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
scale := 1
|
||||
if s := os.Getenv("GO_TEST_TIMEOUT_SCALE"); s != "" {
|
||||
if sc, err := strconv.Atoi(s); err == nil {
|
||||
4
sources
4
sources
@ -1,3 +1,3 @@
|
||||
SHA512 (go1.25.7.tar.gz) = 5799b707aba354e80b0ca64d34221f5ca6bcbef1e4a4457cff2ccb1f0d7cfcd9172db0d7e6110e5a352e3f6106f149d32b925b8867d8fd8e443d9115a66c0fea
|
||||
SHA512 (go1.25.7-1-openssl-fips.tar.gz) = de6dd32432023b2e3509fac46d77daa1ee5edd5b9a310c4da5421d46a2c6033ecef27327eb219b46b1d7fdd2471f31c00ff920bbb59633da3e1a18e4dff6fd37
|
||||
SHA512 (go1.26.1.tar.gz) = 992c7dea6331d9a02ed219eb83b6f548c5e7320d7c2f21ac52d096ac993be20f7d4362ccecb3b675f199d20fa0052d6b8f832fc1d35b62aa585272ffd8817c94
|
||||
SHA512 (go1.26.1-1-openssl-fips.tar.gz) = 8bdc47255d85444d00ee3f5667bd3af17e0cb4df4bbbcc00d40c4ac484fdc9cae6fcd9495dd6941ef3f3ad430bacf3b1635dc28c3dd1a9488466a75670ce501b
|
||||
SHA512 (compiler-rt-18.1.8.src.tar.xz) = fb8795bd51c9b005c2ad1975591e9e2715740d6407ccad41379f136ef2e8d24ded8b97b01165a3ae4bd377119a6a1049ca05d3220404fc12bee86114ff2bff0d
|
||||
|
||||
Loading…
Reference in New Issue
Block a user