Compare commits

...
Sign in to create a new pull request.

45 commits

Author SHA1 Message Date
Alejandro Sáez
30f6caf69b Update Packit references 2026-01-02 09:36:58 +01:00
Alejandro Sáez
102c91d7b1 Update to 1.26rc1 2025-12-17 14:47:53 +01:00
Packit
d9efef266e Update to 1.25.5 upstream release
- Resolves: rhbz#2419205

Upstream tag: go1.25.5
Upstream commit: fefb02ad

Commit authored by Packit automation (https://packit.dev/)
2025-12-05 11:49:33 +00:00
David Abdurachmanov
7f14ad762b Skip lsan tests on riscv64
These tests are failing the same way on riscv64 too.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2025-12-02 19:10:53 +01:00
Packit
abe2807b6d Update to 1.25.4 upstream release
- Resolves: rhbz#2412967

Upstream tag: go1.25.4
Upstream commit: f2cd93aa

Commit authored by Packit automation (https://packit.dev/)
2025-11-05 21:35:52 +00:00
Packit
ff6333f2c1 Update to 1.25.3 upstream release
- Resolves: rhbz#2403668

Upstream tag: go1.25.3
Upstream commit: 28622c19

Commit authored by Packit automation (https://packit.dev/)
2025-10-14 00:15:00 +00:00
Alejandro Sáez
4a9bd423ee rebuild 2025-10-10 17:09:35 +02:00
Packit
5d71cf066b Update to 1.25.2 upstream release
- Resolves: rhbz#2402368

Upstream tag: go1.25.2
Upstream commit: bed6c81c

Commit authored by Packit automation (https://packit.dev/)
2025-10-07 20:06:02 +00:00
Mikel Olasagasti Uranga
5180b46602 Drop check for old Releases and recommend git-core
`git-core` package provides `git` command and doesn't require the extra
modules `git` package provides to work with remote modules, avoiding
having to install multiple depenencies.
2025-09-04 07:40:28 +00:00
Mikel Olasagasti Uranga
4479594a30 Drop old check on RHEL6 and Fedora 2025-09-04 07:40:28 +00:00
Mikel Olasagasti Uranga
e2a58b1cf3 Remove unused patch 2025-09-04 07:40:28 +00:00
Packit
c1d0accc88 Update to 1.25.1 upstream release
- Resolves: rhbz#2392955

Upstream tag: go1.25.1
Upstream commit: 56ebf80e

Commit authored by Packit automation (https://packit.dev/)
2025-09-03 19:40:28 +00:00
Alejandro Sáez
56d6b65b5b Add Fedora 43 2025-08-13 08:24:19 +02:00
Alejandro Sáez
d0bdcaaac7 Update to Go 1.25.0
revert go_version change made by Packit
2025-08-13 08:06:53 +02:00
Packit
ecc9df192f Update to 1.25.0 upstream release
- Resolves: rhbz#2388116

Upstream tag: go1.25.0
Upstream commit: 6e676ab2

Commit authored by Packit automation (https://packit.dev/)
2025-08-12 21:38:21 +00:00
Maxwell G
1a696ebca1
Partially restore the downstream go.env patch
- Keep the GOPROXY and GOSUMDB defaults but add additional explanatory comments.
- Restore GOTOOLCHAIN=local
- Set GOEXPERIMENT=nodwarf5
2025-07-24 12:25:32 -05:00
Fedora Release Engineering
dc534e467c Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 22:55:49 +00:00
Alejandro Sáez
8afc7c4228 Update to Go 1.25rc2
Update .packit.yaml for Fedora 41
Add skip_lsan_tests.patch
Remove 0001-Modify-go.env.patch
2025-07-19 20:41:32 +02:00
Packit
7d06f9cac2 Update to 1.24.5 upstream release
- Resolves: rhbz#2378705

Upstream tag: go1.24.5
Upstream commit: 9d828e80

Commit authored by Packit automation (https://packit.dev/)
2025-07-08 18:00:29 +00:00
Packit
7711622737 Update to 1.24.4 upstream release
- Resolves: rhbz#2370501

Upstream tag: go1.24.4
Upstream commit: 6796ebb2

Commit authored by Packit automation (https://packit.dev/)
2025-06-05 20:53:19 +00:00
Alejandro Sáez
5d3dfa13bf Add wasm and fips140 libs to the installation
Resolves: rhbz#2356269
2025-05-08 11:36:24 +02:00
Alejandro Sáez
fe8033479f Update bundled dependencies 2025-05-08 10:53:30 +02:00
Alejandro Sáez
9be033775a Remove patch 2025-05-07 09:32:09 +02:00
Packit
ad2442f5a0 Update to 1.24.3 upstream release
- Resolves: rhbz#2364602

Upstream tag: go1.24.3
Upstream commit: 34c8b14c

Commit authored by Packit automation (https://packit.dev/)
2025-05-07 07:26:47 +00:00
Alejandro Sáez
782a531812 Backport of upstream issue 73144 2025-04-22 17:26:28 +02:00
Alejandro Sáez
ac1089821f Fedora 40 now follows Go 1.23
Reference: https://pagure.io/fesco/issue/3372
2025-04-14 12:23:00 +02:00
Packit
6483580d3f Update to 1.24.2 upstream release
- Resolves: rhbz#2356701

Upstream tag: go1.24.2
Upstream commit: 49860cf9

Commit authored by Packit automation (https://packit.dev/)
2025-04-01 18:03:11 +00:00
Packit
bfa1718f05 Update to 1.24.1 upstream release
- Resolves: rhbz#2344988

Upstream tag: go1.24.1
Upstream commit: 339c903a

Commit authored by Packit automation (https://packit.dev/)
2025-03-06 10:38:53 +00:00
Alejandro Sáez
d02739b52d Update to 1.24.0
Resolves: rhbz#2344988
2025-02-14 10:33:19 +01:00
Alejandro Sáez
9fdfa10de7 Fix tags 2025-02-07 18:02:26 +00:00
Packit
a5f7a9b770 Update to 1.24rc3 upstream release
Upstream tag: go1.24rc3
Upstream commit: 18068cb9

Commit authored by Packit automation (https://packit.dev/)
2025-02-07 18:02:26 +00:00
Alejandro Sáez
38634fa123 Remove F39, is EOL 2025-02-06 09:21:54 +01:00
Alejandro Sáez
d60b1a1b18 Update to go1.24rc2
Remove combined_commits_2025-01-08.patch
2025-01-17 17:29:40 +01:00
Fedora Release Engineering
5b44ac9a9d Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 23:10:27 +00:00
Alejandro Sáez
31bbb1cda0 Add reference to a patch
I realized that I didn't document correctly the
fix_cgo_panic-with-gcc15-in-368.patch patch and it's a complex one.
I included the gcc issue related to the solution:
https://gcc.gnu.org/PR118497
2025-01-15 23:12:58 +01:00
Alejandro Sáez
f423a13953 Add a patch to fix issue with gcc15 in x86 2025-01-15 22:41:57 +01:00
Alejandro Sáez
5f0561a120 Update to Go 1.24rc1
Add license to fedora.go due to TestCopyright
Update .packit.yaml
Due to the lack of rc2 tag, I included a *huge* patch to make it work
for several different reasons.
2025-01-15 11:19:14 +01:00
Alejandro Sáez
b06cd97cc3 Remove TestPIESize patch 2024-12-05 11:20:41 +01:00
Packit
7ca0d2e749 Update to 1.23.4 upstream release
- Resolves: rhbz#2330231

Upstream tag: go1.23.4
Upstream commit: 194de8fb

Commit authored by Packit automation (https://packit.dev/)
2024-12-04 13:33:04 +00:00
Alejandro Sáez
bc105c11fb Skip TestPIESize on i386 and s390x due to Fedora CI issues 2024-11-12 23:34:25 +01:00
Packit
56fb3337e3 Update to 1.23.3 upstream release
- Resolves: rhbz#2324496

Upstream tag: go1.23.3
Upstream commit: c390a1c2

Commit authored by Packit automation (https://packit.dev/)
2024-11-07 22:52:25 +00:00
Alejandro Sáez
4310f1b21b Update vendored dependencies 2024-10-04 13:50:21 +02:00
Packit
1355105706 Update to 1.23.2 upstream release
- Resolves: rhbz#2315984

Upstream tag: go1.23.2
Upstream commit: ed07b321

Commit authored by Packit automation (https://packit.dev/)
2024-10-03 08:33:30 +00:00
Alejandro Sáez
e173be4ed8 Update .packit.yaml content
Now Fedora 39 follows 1.22, like Fedora 40
2024-09-13 12:01:43 +02:00
Packit
502fcb8295 Update to 1.23.1 upstream release
- Resolves: rhbz#2310262

Upstream tag: go1.23.1
Upstream commit: 69234ded

Commit authored by Packit automation (https://packit.dev/)
2024-09-05 16:26:08 +00:00
9 changed files with 139 additions and 57 deletions

22
.gitignore vendored
View file

@ -153,3 +153,25 @@
/go1.23rc1.src.tar.gz
/go1.23rc2.src.tar.gz
/go1.23.0.src.tar.gz
/go1.23.1.src.tar.gz
/go1.23.2.src.tar.gz
/go1.23.3.src.tar.gz
/go1.23.4.src.tar.gz
/go1.24rc1.src.tar.gz
/go1.24rc2.src.tar.gz
/go1.24rc3.src.tar.gz
/go1.24.0.src.tar.gz
/go1.24.1.src.tar.gz
/go1.24.2.src.tar.gz
/go1.24.3.src.tar.gz
/go1.24.4.src.tar.gz
/go1.24.5.src.tar.gz
/go1.25rc1.src.tar.gz
/go1.25rc2.src.tar.gz
/go1.25.0.src.tar.gz
/go1.25.1.src.tar.gz
/go1.25.2.src.tar.gz
/go1.25.3.src.tar.gz
/go1.25.4.src.tar.gz
/go1.25.5.src.tar.gz
/go1.26rc1.src.tar.gz

View file

@ -12,29 +12,23 @@ actions:
- bash -c "echo - New release ${PACKIT_PROJECT_VERSION}"
jobs:
# Fedora 39 follows Go 1.21
# Fedora 42 follows Go 1.24
- job: pull_from_upstream
trigger: release
dist_git_branches: fedora-39
upstream_tag_include: "^go1.21.+"
dist_git_branches: fedora-42
upstream_tag_include: "^go1.24.+"
# Fedora 40 follows Go 1.22
# Fedora 43 follows Go 1.25
- job: pull_from_upstream
trigger: release
dist_git_branches: fedora-40
upstream_tag_include: "^go1.22.+"
# Fedora 41 follows Go 1.23
- job: pull_from_upstream
trigger: release
dist_git_branches: fedora-41
upstream_tag_include: "^go1.23.+"
dist_git_branches: fedora-43
upstream_tag_include: "^go1.25.+"
# Fedora Rawhide follows the latest version
- job: pull_from_upstream
trigger: release
dist_git_branches: fedora-rawhide
upstream_tag_include: "^go1.23.+"
upstream_tag_include: "^go1.26.+"
# Run Koji builds when Packit pull requests are merged
- job: koji_build

View file

@ -1,30 +1,42 @@
From 52d9cfec8124a9c7382bed5284246d9b18a21eb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
Date: Wed, 16 Aug 2023 07:06:38 +0200
From 39432f71436c41201450a523dc41035c92d27569 Mon Sep 17 00:00:00 2001
From: Maxwell G <maxwell@gtmx.me>
Date: Thu, 24 Jul 2025 12:23:59 -0500
Subject: [PATCH] Modify go.env
Change GOPROXY, GOSUMDB, and GOTOOLCHAIN
---
go.env | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
go.env | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/go.env b/go.env
index 6ff2b921d4..087208cd7c 100644
index 6ff2b92..5508440 100644
--- a/go.env
+++ b/go.env
@@ -4,9 +4,9 @@
@@ -4,9 +4,24 @@
# Use the Go module mirror and checksum database by default.
# See https://proxy.golang.org for details.
-GOPROXY=https://proxy.golang.org,direct
-GOSUMDB=sum.golang.org
+GOPROXY=direct
+GOSUMDB=off
+#
+# NOTE(downstream): We used to disable the Google Go proxy with GOPROXY=direct and
+# disable the GOSUMDB for historical and priavcy reasons, but it caused severe
+# performance degradations, so we reverted to the default upstream configuration.
+# as of https://fedoraproject.org/wiki/Changes/golang1.25.
+# To preserve the previous behavior, set "GOPROXY=direct" and "GOSUMDB=off".
GOPROXY=https://proxy.golang.org,direct
GOSUMDB=sum.golang.org
# Automatically download newer toolchains as directed by go.mod files.
# See https://go.dev/doc/toolchain for details.
-GOTOOLCHAIN=auto
+#
+# NOTE(downstream): We change this default from auto to local so that the
+# distribution-packaged Go toolchain is always used and go doesn't
+# automatically download pre-compiled alternative versions.
+GOTOOLCHAIN=local
+
+# NOTE(downstream): https://sourceware.org/bugzilla/show_bug.cgi?id=33204
+# The dwarf5 data emitted by default in Go 1.25+ is incompatible with debugedit
+# and breaks debugdata collection.
+GOEXPERIMENT=nodwarf5
--
2.41.0
2.50.1

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.100.1.
The file was generated using packit 1.12.0.post1.dev20+g7d30dac21.

View file

@ -1,5 +1,9 @@
//go:build rpm_crashtraceback
// +build rpm_crashtraceback
// Copyright 2017 The Fedora Project Contributors. All rights reserved.
// Use of this source code is governed by the MIT license.
package runtime
func init() {

View file

@ -0,0 +1,25 @@
From 5f566346b70403891cfc52d0c807d72335691708 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
Date: Wed, 15 Jan 2025 21:45:33 +0100
Subject: [PATCH] Fix _cgo_panic with gcc15 in 368
---
src/cmd/link/internal/x86/asm.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/link/internal/x86/asm.go b/src/cmd/link/internal/x86/asm.go
index d535e5fb4d..c4253a8c08 100644
--- a/src/cmd/link/internal/x86/asm.go
+++ b/src/cmd/link/internal/x86/asm.go
@@ -184,7 +184,7 @@ func adddynrel(target *ld.Target, ldr *loader.Loader, syms *ld.ArchSyms, s loade
return true
}
- if r.Off() >= 2 && sData[r.Off()-2] == 0xff && sData[r.Off()-1] == 0xb3 {
+ if r.Off() >= 2 && sData[r.Off()-2] == 0xff && sData[r.Off()-1] >= 0xb0 && sData[r.Off()-1] <= 0xb7 {
su.MakeWritable()
// turn PUSHL of GOT entry into PUSHL of symbol itself.
// use unnecessary SS prefix to keep instruction same length.
--
2.47.1

View file

@ -99,13 +99,13 @@
%endif
# Comment out go_prerelease and go_patch as needed
%global go_api 1.23
#global go_prerelease rc2
%global go_patch 0
%global go_api 1.26
%global go_prerelease rc1
#global go_patch 1
%global go_version %{go_api}%{?go_patch:.%{go_patch}}%{?go_prerelease:~%{go_prerelease}}
%global go_source %{go_api}%{?go_patch:.%{go_patch}}%{?go_prerelease}
Name: golang
Version: %{go_version}
Release: %autorelease
@ -123,11 +123,7 @@ BuildRequires: gcc-go >= 5
%else
BuildRequires: golang > 1.4
%endif
%if 0%{?rhel} > 6 || 0%{?fedora} > 0
BuildRequires: hostname
%else
BuildRequires: net-tools
%endif
# for tests
BuildRequires: pcre2-devel, glibc-static, perl-interpreter, procps-ng
@ -135,19 +131,20 @@ BuildRequires: pcre2-devel, glibc-static, perl-interpreter, procps-ng
Provides: go = %{version}-%{release}
# Bundled/Vendored provides generated by bundled-deps.sh based on the in tree module data
Provides: bundled(golang(github.com/google/pprof)) = 0.0.0.20240528025155.186aa0362fba
Provides: bundled(golang(github.com/ianlancetaylor/demangle)) = 0.0.0.20240312041847.bd984b5ce465
Provides: bundled(golang(golang.org/x/arch)) = 0.8.0
Provides: bundled(golang(golang.org/x/build)) = 0.0.0.20240603162849.5dfbda438323
Provides: bundled(golang(golang.org/x/crypto)) = 0.23.1.0.20240603234054.0b431c7de36a
Provides: bundled(golang(golang.org/x/mod)) = 0.19.0
Provides: bundled(golang(golang.org/x/net)) = 0.25.1.0.20240603202750.6249541f2a6c
Provides: bundled(golang(golang.org/x/sync)) = 0.7.0
Provides: bundled(golang(golang.org/x/sys)) = 0.22.0
Provides: bundled(golang(golang.org/x/telemetry)) = 0.0.0.20240717194752.0b706e19b701
Provides: bundled(golang(golang.org/x/term)) = 0.20.0
Provides: bundled(golang(golang.org/x/text)) = 0.16.0
Provides: bundled(golang(golang.org/x/tools)) = 0.22.1.0.20240618181713.f2d2ebe43e72
Provides: bundled(golang(github.com/google/pprof)) = 0.0.0.20251114195745.4902fdda35c8
Provides: bundled(golang(github.com/ianlancetaylor/demangle)) = 0.0.0.20250417193237.f615e6bd150b
Provides: bundled(golang(golang.org/x/arch)) = 0.23.0
Provides: bundled(golang(golang.org/x/build)) = 0.0.0.20251128064159.b9bfd88b30e8
Provides: bundled(golang(golang.org/x/crypto)) = 0.46.1.0.20251210140736.7dacc380ba00
Provides: bundled(golang(golang.org/x/mod)) = 0.30.1.0.20251115032019.269c237cf350
Provides: bundled(golang(golang.org/x/net)) = 0.47.1.0.20251128220604.7c360367ab7e
Provides: bundled(golang(golang.org/x/sync)) = 0.19.0
Provides: bundled(golang(golang.org/x/sys)) = 0.39.0
Provides: bundled(golang(golang.org/x/telemetry)) = 0.0.0.20251128220624.abf20d0e57ec
Provides: bundled(golang(golang.org/x/term)) = 0.38.0
Provides: bundled(golang(golang.org/x/text)) = 0.32.0
Provides: bundled(golang(golang.org/x/tools)) = 0.27.0
Provides: bundled(golang(golang.org/x/tools)) = 0.39.1.0.20251205000126.062ef7b6ced2
Provides: bundled(golang(rsc.io/markdown)) = 0.0.0.20240306144322.0bf8f97ee8ef
Requires: %{name}-bin = %{version}-%{release}
@ -155,8 +152,12 @@ Requires: %{name}-src = %{version}-%{release}
Requires: go-filesystem
Patch1: 0001-Modify-go.env.patch
Patch5: 0005-Skip-TestCrashDumpsAllThreads.patch
Patch6: 0006-Default-to-ld.bfd-on-ARM64.patch
Patch5: 0005-Skip-TestCrashDumpsAllThreads.patch
Patch6: 0006-Default-to-ld.bfd-on-ARM64.patch
# Related to https://gcc.gnu.org/PR118497
Patch8: fix_cgo_panic-with-gcc15-in-368.patch
# Related to https://github.com/golang/go/issues/74476
Patch9: skip_lsan_tests.patch
# Having documentation separate was broken
Obsoletes: %{name}-docs < 1.1-4
@ -251,11 +252,8 @@ Requires(preun): %{_sbindir}/update-alternatives
# This is an odd issue, still looking for a better fix.
Requires: glibc
Requires: gcc
%if 0%{?rhel} && 0%{?rhel} < 8
Requires: git, subversion, mercurial
%else
Recommends: git, subversion, mercurial
%endif
Recommends: git-core, subversion, mercurial
%description bin
%{summary}
@ -395,7 +393,7 @@ echo "== 4 =="
echo "%%{goroot}/$file" >> $shared_list
echo "%%{golibdir}/$(basename $file)" >> $shared_list
done
find pkg/*_dynlink/ -type d -printf '%%%dir %{goroot}/%p\n' >> $shared_list
find pkg/*_dynlink/ ! -type d -printf '%{goroot}/%p\n' >> $shared_list
%endif
@ -500,6 +498,8 @@ fi
%dir %{goroot}
%{goroot}/api/
%{goroot}/lib/time/
%{goroot}/lib/wasm/
%{goroot}/lib/fips140/
# ensure directory ownership, so they are cleaned up if empty
%dir %{gopath}

25
skip_lsan_tests.patch Normal file
View file

@ -0,0 +1,25 @@
From 958f06663d81dd4b946fce963b9f985f68da6212 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
Date: Wed, 16 Jul 2025 13:14:03 +0200
Subject: [PATCH] Skip lsan_test.go in aarch64
Reference: https://github.com/golang/go/issues/74476
---
src/cmd/cgo/internal/testsanitizers/lsan_test.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/cgo/internal/testsanitizers/lsan_test.go b/src/cmd/cgo/internal/testsanitizers/lsan_test.go
index 4dde3d20ec..3bcf0eba51 100644
--- a/src/cmd/cgo/internal/testsanitizers/lsan_test.go
+++ b/src/cmd/cgo/internal/testsanitizers/lsan_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build linux || (freebsd && amd64)
+//go:build (linux && !(arm64 || riscv64)) || (freebsd && amd64)
package sanitizers_test
--
2.50.1

View file

@ -1 +1 @@
SHA512 (go1.23.0.src.tar.gz) = 5822124ca570662ac8dcec32a79196520ce355fe421d83372f8b8a97b3811de0739edcd7080a23f845cf700a6a26f3af6c93278f6ce485b93120afdd4f6c4f47
SHA512 (go1.26rc1.src.tar.gz) = 6696ee765dcde64b830b14e20a5fdf6324916211bff80a62d0db0cbef58bb0856f02e88e95b2f1a3ad6d9282ebd04a377a0b000d56849576caedbd526c9a7923