Compare commits

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

75 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
Alejandro Sáez
cde14f05d1 Update .packit.yml 2024-08-18 11:53:07 +02:00
Alejandro Sáez
ddb1900637 Update to Go 1.23.0
Packit overwrote the version variables incorrectly.
2024-08-14 16:56:02 +02:00
Packit
9575176dd0 Update to 1.23.0 upstream release
- Resolves: rhbz#2295486

Upstream tag: go1.23.0
Upstream commit: 6885bad7

Commit authored by Packit automation (https://packit.dev/)
2024-08-13 19:57:11 +00:00
Alejandro Sáez
3627d737b3 Update to 1.23rc2 2024-07-31 20:56:18 +02:00
Edjunior Machado
f6ac8e28fb Move tests to tests/golang namespace 2024-07-19 12:08:48 +00:00
Fedora Release Engineering
45353bf1e5 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 03:24:51 +00:00
Alejandro Sáez
3c46e5bedc Update vendored dependencies 2024-07-07 13:21:35 +02:00
Packit
f19fb05ec5 Update to 1.23rc1 upstream release
Upstream tag: go1.23rc1
Upstream commit: 7dff7439

Commit authored by Packit automation (https://packit.dev/)
2024-07-07 10:20:36 +00:00
Alejandro Sáez
33fa330954 Update .packit.yaml with 1.23 reference 2024-07-07 12:14:27 +02:00
Alejandro Sáez
a867bd88a6 Default to ld.bfd on ARM64
Until now, Go defaulted to ld.gold, but now, the binutils package is
deprecating gold in favor of ld.bfd.
2024-06-20 11:37:02 +02:00
Alejandro Sáez
44b6a2d47f Add new BuildRequires for aarch64 2024-06-18 13:20:44 +02:00
Neil Hanlon
5bc82c18bd enable tests for riscv64 with larger GO_TEST_TIMEOUT_SCALE 2024-06-11 07:20:10 +00:00
Packit
5eba855ef3 Update to 1.22.4 upstream release
- Resolves: rhbz#2290444

Upstream tag: go1.22.4
Upstream commit: ace5bb40

Commit authored by Packit automation (https://packit.dev/)
2024-06-04 20:47:44 +00:00
Packit
38cadf47cd Update to 1.22.3 upstream release
- Resolves: rhbz#2279598

Upstream tag: go1.22.3
Upstream commit: adbfb672

Commit authored by Packit automation (https://packit.dev/)
2024-05-08 13:29:19 +00:00
Alejandro Sáez
73e84ae14e [packit] 1.22.2 upstream release
Upstream tag: go1.22.2
Upstream commit: dddf0ae4
2024-04-04 09:16:43 +02:00
Alejandro Sáez
b67e9be341 [packit] 1.22.2 upstream release
Upstream tag: go1.22.2
Upstream commit: dddf0ae4
2024-04-04 08:54:51 +02:00
Packit
420573b518 Update to 1.22.2 upstream release
- Resolves: rhbz#2272998

Upstream tag: go1.22.2
Upstream commit: dddf0ae4

Commit authored by Packit automation (https://packit.dev/)
2024-04-03 16:33:28 +00:00
Nianqing Yao
636bf2bd56 Fix build on riscv64 2024-03-25 09:38:48 +00:00
losuler
145e523ba3 Improve readability 2024-03-11 11:20:49 +01:00
Alejandro Sáez
06c89f88b1 Update .packit.yaml
While having rules affecting several branches makes the yaml file
smaller, it is way easier to maintain if each branch has their own set
of rules. It's easier to remove old branches, and to avoid issues when
branching out new releases.
2024-03-06 09:21:46 +01:00
Packit
1ada0b2eda [packit] 1.22.1 upstream release
- Resolves rhbz#2267971

Upstream tag: go1.22.1
Upstream commit: db6097f8
2024-03-05 19:44:46 +00:00
Alejandro Sáez
286b935894 Make F38 follow Go 1.21 2024-02-14 18:09:48 +01:00
Packit
a0ae3bce4e [packit] 1.22.0 upstream release
Upstream tag: go1.22.0
Upstream commit: a10e42f2

Skip TestCrashDumpsAllThreads on s390x
2024-02-11 12:10:39 +01:00
Mike Rochefort
31f7d745bf Update to go1.22rc2 2024-01-24 11:54:46 -05:00
Fedora Release Engineering
ba5f452fd6 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 15:53:12 +00:00
Fedora Release Engineering
20d9dbe9ec Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 23:19:07 +00:00
Alejandro Sáez
180e181d7c Update to go1.22rc1 2024-01-17 14:33:06 +01:00
Packit
168cd43819 [packit] 1.21.6 upstream release
Upstream tag: go1.21.6
Upstream commit: cc85462b
2024-01-15 19:53:59 +00:00
Alejandro Sáez
eb23ad8090 Improve Packit file 2024-01-15 20:45:21 +01:00
Alejandro Sáez
d4bc01547d Update to Go 1.21.5 2023-12-05 20:43:27 +01:00
18 changed files with 272 additions and 239 deletions

34
.gitignore vendored
View file

@ -141,3 +141,37 @@
/go1.21.1.src.tar.gz
/go1.21.3.src.tar.gz
/go1.21.4.src.tar.gz
/go1.21.5.src.tar.gz
/go1.21.6.src.tar.gz
/go1.22rc1.src.tar.gz
/go1.22rc2.src.tar.gz
/go1.22.0.src.tar.gz
/go1.22.1.src.tar.gz
/go1.22.2.src.tar.gz
/go1.22.3.src.tar.gz
/go1.22.4.src.tar.gz
/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

@ -1,21 +1,41 @@
upstream_package_name: go
downstream_package_name: golang
upstream_project_url: https://github.com/golang/go
specfile_path: golang.spec
files_to_sync:
- golang.spec
- .packit.yaml
upstream_package_name: go
upstream_project_url: https://github.com/golang/go
downstream_package_name: golang
upstream_tag_template: go{version}
actions:
changelog-entry:
- bash -c "echo - New release ${PACKIT_PROJECT_VERSION}"
- bash -c "echo - New release ${PACKIT_PROJECT_VERSION}"
jobs:
# Fedora 42 follows Go 1.24
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-rawhide
- fedora-stable
dist_git_branches: fedora-42
upstream_tag_include: "^go1.24.+"
# Fedora 43 follows Go 1.25
- job: pull_from_upstream
trigger: release
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.26.+"
# Run Koji builds when Packit pull requests are merged
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-rawhide
- fedora-stable
dist_git_branches: fedora-all
# Create Bodhi updates in all Fedora stable versions
- job: bodhi_update
trigger: commit
dist_git_branches: fedora-all

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,35 +0,0 @@
From 7506da0af38aa307f45664f0c787b5767cc7a87f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
Date: Thu, 22 Jun 2023 17:19:00 +0200
Subject: [PATCH] Force gold in aarch64 until binutils 2.41 is on Fedora
---
src/cmd/link/internal/ld/lib.go | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
index 91e2d5149c..99c305530b 100644
--- a/src/cmd/link/internal/ld/lib.go
+++ b/src/cmd/link/internal/ld/lib.go
@@ -1605,15 +1605,13 @@ func (ctxt *Link) hostlink() {
// https://go.dev/issue/22040
altLinker = "gold"
- // If gold is not installed, gcc will silently switch
- // back to ld.bfd. So we parse the version information
- // and provide a useful error if gold is missing.
+ // In both cases, switch to gold if gold is available.
name, args := flagExtld[0], flagExtld[1:]
args = append(args, "-fuse-ld=gold", "-Wl,--version")
cmd := exec.Command(name, args...)
if out, err := cmd.CombinedOutput(); err == nil {
- if !bytes.Contains(out, []byte("GNU gold")) {
- log.Fatalf("ARM64 external linker must be gold (issue #15696, 22040), but is not: %s", out)
+ if bytes.Contains(out, []byte("GNU gold")) {
+ altLinker = "gold"
}
}
}
--
2.40.1

View file

@ -0,0 +1,28 @@
From c0c22e2aa7d1901c97da04f834ce9c7b9e38be80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
Date: Sun, 11 Feb 2024 12:08:35 +0100
Subject: [PATCH] Skip TestCrashDumpsAllThreads
See golang.org/issues/64650
---
src/runtime/crash_unix_test.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/runtime/crash_unix_test.go b/src/runtime/crash_unix_test.go
index 123a462423..a0034d6455 100644
--- a/src/runtime/crash_unix_test.go
+++ b/src/runtime/crash_unix_test.go
@@ -74,6 +74,10 @@ func TestCrashDumpsAllThreads(t *testing.T) {
t.Skip("skipping; SIGQUIT is blocked, see golang.org/issue/19196")
}
+ if runtime.GOOS == "linux" && runtime.GOARCH == "s390x" {
+ t.Skip("skipping; frequent TestCrashDumpsAllThreads failures on linux/s390x, see golang.org/issue/64650")
+ }
+
testenv.MustHaveGoBuild(t)
if strings.Contains(os.Getenv("GOFLAGS"), "mayMoreStackPreempt") {
--
2.43.0

View file

@ -0,0 +1,46 @@
From 46ec67413008607e2150e3395668e54e538c5b6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
Date: Wed, 19 Jun 2024 10:18:58 +0200
Subject: [PATCH] Default to ld.bfd on ARM64
---
src/cmd/link/internal/ld/lib.go | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
index eab74dc328..b401f58727 100644
--- a/src/cmd/link/internal/ld/lib.go
+++ b/src/cmd/link/internal/ld/lib.go
@@ -1620,22 +1620,16 @@ func (ctxt *Link) hostlink() {
}
if ctxt.Arch.InFamily(sys.ARM64) && buildcfg.GOOS == "linux" {
- // On ARM64, the GNU linker will fail with
- // -znocopyreloc if it thinks a COPY relocation is
- // required. Switch to gold.
- // https://sourceware.org/bugzilla/show_bug.cgi?id=19962
- // https://go.dev/issue/22040
- altLinker = "gold"
-
- // If gold is not installed, gcc will silently switch
- // back to ld.bfd. So we parse the version information
- // and provide a useful error if gold is missing.
+ // Use ld.bfd as the default linker
+ altLinker = "bfd"
+
+ // Provide a useful error if ld.bfd is missing
name, args := flagExtld[0], flagExtld[1:]
- args = append(args, "-fuse-ld=gold", "-Wl,--version")
+ args = append(args, "-fuse-ld=bfd", "-Wl,--version")
cmd := exec.Command(name, args...)
if out, err := cmd.CombinedOutput(); err == nil {
- if !bytes.Contains(out, []byte("GNU gold")) {
- log.Fatalf("ARM64 external linker must be gold (issue #15696, 22040), but is not: %s", out)
+ if !bytes.Contains(out, []byte("GNU ld")) {
+ log.Fatalf("ARM64 external linker must be ld.bfd, but is not: %s", out)
}
}
}
--
2.45.1

View file

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

View file

@ -1,4 +1,4 @@
#! /bin/bash
#!/bin/bash
# Copyright (C) 2021 Jakub Čajka jcajka@redhat.com
#
# This program is free software; you can redistribute it and/or
@ -16,7 +16,14 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
provides=""
for bundle in $(find -name modules.txt); do
provides="$provides\n$(cat "$bundle" | grep "^# " | grep -v "# explicit" | sed -r s/"^#.* => "// | sed -r "s/# //" | sed -r "s:(.*) v(.*):Provides\: bundled(golang(\1)) = \2:")"
done
provides="$provides\n$(cat "$bundle" |
grep "^# " |
grep -v "# explicit" |
sed -r s/"^#.* => "// |
sed -r "s/# //" |
sed -r "s:(.*) v(.*):Provides\: bundled(golang(\1)) = \2:" |
sed '/= .*/s/-/./g')"
done
echo -e "$provides" | sed 's/-/./g' | sort -u

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

@ -1,4 +1,5 @@
%bcond_with bootstrap
# build ids are not currently generated:
# https://code.google.com/p/go/issues/detail?id=5238
#
@ -31,14 +32,14 @@
# Golang build options.
# Build golang using external/internal(close to cgo disabled) linking.
%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x
%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x riscv64
%global external_linker 1
%else
%global external_linker 0
%endif
# Build golang with cgo enabled/disabled(later equals more or less to internal linking).
%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x
%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x riscv64
%global cgo_enabled 1
%else
%global cgo_enabled 0
@ -93,15 +94,18 @@
%ifarch s390x
%global gohostarch s390x
%endif
%ifarch riscv64
%global gohostarch riscv64
%endif
# Comment out go_prerelease and go_patch as needed
%global go_api 1.21
#global go_prerelease rc3
%global go_patch 4
%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
@ -119,35 +123,41 @@ 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
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.20221118152302.e6195bd50e26
Provides: bundled(golang(github.com/ianlancetaylor/demangle)) = 0.0.0.20220319035150.800ac71e25c2
Provides: bundled(golang(golang.org/x/arch)) = 0.4.0
Provides: bundled(golang(golang.org/x/crypto)) = 0.11.1.0.20230711161743.2e82bdd1719d
Provides: bundled(golang(golang.org/x/mod)) = 0.12.0
Provides: bundled(golang(golang.org/x/net)) = 0.12.1.0.20231027154334.5ca955b1789c
Provides: bundled(golang(golang.org/x/sync)) = 0.3.0
Provides: bundled(golang(golang.org/x/sys)) = 0.10.0
Provides: bundled(golang(golang.org/x/term)) = 0.10.0
Provides: bundled(golang(golang.org/x/text)) = 0.11.0
Provides: bundled(golang(golang.org/x/tools)) = 0.11.1.0.20230712164437.1ca21856af7b
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}
Requires: %{name}-src = %{version}-%{release}
Requires: go-filesystem
Patch1: 0001-Modify-go.env.patch
Patch4: 0004-cmd-link-use-gold-on-ARM-ARM64-only-if-gold-is-avail.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
@ -242,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}
@ -386,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
@ -455,7 +462,12 @@ export CGO_ENABLED=0
#endif
# make sure to not timeout
%ifnarch riscv64
export GO_TEST_TIMEOUT_SCALE=2
%else
# NOTE(davidlt): 20 is probably too much, but it's only for riscv and it works
export GO_TEST_TIMEOUT_SCALE=20
%endif
%if %{fail_on_tests}
./run.bash --no-rebuild -v -v -v -k
@ -486,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}

View file

@ -1,5 +1,6 @@
summary: CI Gating Plan
discover:
how: fmf
url: https://src.fedoraproject.org/tests/golang
execute:
how: tmt

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.21.4.src.tar.gz) = a6019d51876d7705f7737cddae748f9df3b4e1b40d678094465d2e81b18a4a99b93c3979d318d6c0c6d314e44554894105d07665b7d81acbbfd80203d3ed95bc
SHA512 (go1.26rc1.src.tar.gz) = 6696ee765dcde64b830b14e20a5fdf6324916211bff80a62d0db0cbef58bb0856f02e88e95b2f1a3ad6d9282ebd04a377a0b000d56849576caedbd526c9a7923

View file

@ -1,64 +0,0 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /tools/golang/Sanity/basic-smoke
# Description: basic smoke test for go
# Author: Edjunior Machado <emachado@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2019 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export TEST=/tools/golang/Sanity/basic-smoke
export TESTVERSION=1.0
BUILT_FILES=
FILES=$(METADATA) runtest.sh Makefile PURPOSE
.PHONY: all install download clean
run: $(FILES) build
./runtest.sh
build: $(BUILT_FILES)
test -x runtest.sh || chmod a+x runtest.sh
clean:
rm -f *~ $(BUILT_FILES)
include /usr/share/rhts/lib/rhts-make.include
$(METADATA): Makefile
@echo "Owner: Edjunior Machado <emachado@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: basic smoke test for go" >> $(METADATA)
@echo "Type: Sanity" >> $(METADATA)
@echo "TestTime: 5m" >> $(METADATA)
@echo "RunFor: golang" >> $(METADATA)
@echo "Requires: golang" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2+" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
@echo "Releases: -RHEL4 -RHEL6 -RHELClient5 -RHELServer5" >> $(METADATA)
@echo "Architectures: s390x x86_64 ppc64le aarch64" >> $(METADATA)
rhts-lint $(METADATA)

View file

@ -1,3 +0,0 @@
PURPOSE of /tools/golang/Sanity/basic-smoke
Description: basic smoke test for go
Author: Edjunior Machado <emachado@redhat.com>

View file

@ -1,13 +0,0 @@
summary: basic smoke test for go
description: ''
contact:
- Edjunior Machado <emachado@redhat.com>
component:
- golang
test: ./runtest.sh
framework: beakerlib
recommend:
- golang
duration: 5m
extra-summary: /tools/golang/Sanity/basic-smoke
extra-task: /tools/golang/Sanity/basic-smoke

View file

@ -1,68 +0,0 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /tools/golang/Sanity/basic-smoke
# Description: basic smoke test for go
# Author: Edjunior Machado <emachado@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2019 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="$(rpm -qf $(which go))"
# Conserve the non-zero return value through the pipe
set -o pipefail
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
rlRun "pushd $TmpDir"
rlPhaseEnd
rlPhaseStartTest
cat << EOF > $TmpDir/hello.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
EOF
rlAssertExists "$TmpDir/hello.go"
rlRun "go run $TmpDir/hello.go |& tee $TmpDir/go-run-hello.out" 0 "Testing 'go run'"
rlAssertNotDiffer <(echo 'hello world') go-run-hello.out
rlRun "go build -o $TmpDir/hello $TmpDir/hello.go" 0 "Testing 'go build'"
rlAssertExists "hello"
rlRun "$TmpDir/hello |& tee $TmpDir/hello.out" 0 "Running binary"
rlAssertNotDiffer <(echo 'hello world') hello.out
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd