Add support for riscv64

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2020-12-01 21:55:51 +02:00
parent 27a8ad3859
commit b1e6e9eeb2
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,7 @@
%bcond_with bootstrap
# temporalily ignore test failures
# due to https://github.com/golang/go/issues/39466
%ifarch aarch64
%ifarch aarch64 riscv64
%bcond_without ignore_tests
%else
%bcond_with ignore_tests
@ -39,14 +39,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
@ -104,13 +104,16 @@
%ifarch s390x
%global gohostarch s390x
%endif
%ifarch riscv64
%global gohostarch riscv64
%endif
%global go_api 1.15
%global go_version 1.15.5
Name: golang
Version: 1.15.5
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
Summary: The Go Programming Language
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
License: BSD and Public Domain
@ -536,7 +539,7 @@ export CGO_ENABLED=0
#endif
# make sure to not timeout
export GO_TEST_TIMEOUT_SCALE=2
export GO_TEST_TIMEOUT_SCALE=20
%if %{fail_on_tests}
./run.bash --no-rebuild -v -v -v -k
@ -608,6 +611,9 @@ fi
%endif
%changelog
* Tue Dec 01 2020 David Abdurachmanov <david.abdurachmanov@sifive.com> - 1.15.5-1.0.riscv64
- Add support for riscv64
* Fri Nov 13 2020 Jakub Čajka <jcajka@redhat.com> - 1.15.5-1
- Rebase to go1.15.5
- Security fix for CVE-2020-28362, CVE-2020-28367 and CVE-2020-28366