Compare commits

...

3 Commits

Author SHA1 Message Date
David Abdurachmanov c2615cb759
Add support for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-10 09:33:40 +03:00
Packit 5db80dfbc3 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:16:57 +00:00
Packit b1a2ca6934 [packit] 1.22.1 upstream release
Upstream tag: go1.22.1
Upstream commit: db6097f8
2024-03-06 08:27:18 +00:00
4 changed files with 15 additions and 6 deletions

2
.gitignore vendored
View File

@ -146,3 +146,5 @@
/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

View File

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.90.0.post1.dev9+g1f0325d1.
The file was generated using packit 0.94.1.post1.dev6+g1c8e91f7.

View File

@ -31,14 +31,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,18 +93,21 @@
%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.22
#global go_prerelease rc2
%global go_patch 0
%global go_patch 2
%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
Release: %autorelease -e 0.riscv64
Summary: The Go Programming Language
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
License: BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
@ -457,7 +460,11 @@ export CGO_ENABLED=0
#endif
# make sure to not timeout
%ifnarch riscv64
export GO_TEST_TIMEOUT_SCALE=2
%else
export GO_TEST_TIMEOUT_SCALE=20
%endif
%if %{fail_on_tests}
./run.bash --no-rebuild -v -v -v -k

View File

@ -1 +1 @@
SHA512 (go1.22.0.src.tar.gz) = f47fdac3281463757b3db9f6ab747f86ed7263beed52c820ec2571375a578034df02c0b76912c19fab3a58df3b04d79b6aae084163d1d5847c907aeb30b936e3
SHA512 (go1.22.2.src.tar.gz) = f2491d2b5d4ef2dd86ca7820503a2534cd1860822049dc01a6cb40b556a0812cfc4196fa83173765816060253ac949f4165b0fb4b2bed5d45e30d03bb69e434d