From b1e6e9eeb2fcdb96faf6cef5536803e7a1165fd5 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Tue, 1 Dec 2020 21:55:51 +0200 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- golang.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/golang.spec b/golang.spec index e70d2d9..0234d51 100644 --- a/golang.spec +++ b/golang.spec @@ -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 - 1.15.5-1.0.riscv64 +- Add support for riscv64 + * Fri Nov 13 2020 Jakub Čajka - 1.15.5-1 - Rebase to go1.15.5 - Security fix for CVE-2020-28362, CVE-2020-28367 and CVE-2020-28366