Enable riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
a076d7e3bb
commit
5a663c2cf8
18
golang.spec
18
golang.spec
|
@ -1,7 +1,7 @@
|
||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
# temporalily ignore test failures
|
# temporalily ignore test failures
|
||||||
# due to https://github.com/golang/go/issues/39466
|
# due to https://github.com/golang/go/issues/39466
|
||||||
%ifarch aarch64
|
%ifarch aarch64 riscv64
|
||||||
%bcond_without ignore_tests
|
%bcond_without ignore_tests
|
||||||
%else
|
%else
|
||||||
%bcond_with ignore_tests
|
%bcond_with ignore_tests
|
||||||
|
@ -39,14 +39,14 @@
|
||||||
# Golang build options.
|
# Golang build options.
|
||||||
|
|
||||||
# Build golang using external/internal(close to cgo disabled) linking.
|
# 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
|
%global external_linker 1
|
||||||
%else
|
%else
|
||||||
%global external_linker 0
|
%global external_linker 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Build golang with cgo enabled/disabled(later equals more or less to internal linking).
|
# 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
|
%global cgo_enabled 1
|
||||||
%else
|
%else
|
||||||
%global cgo_enabled 0
|
%global cgo_enabled 0
|
||||||
|
@ -101,6 +101,9 @@
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
%global gohostarch s390x
|
%global gohostarch s390x
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch riscv64
|
||||||
|
%global gohostarch riscv64
|
||||||
|
%endif
|
||||||
|
|
||||||
# Comment out go_prerelease and go_patch as needed
|
# Comment out go_prerelease and go_patch as needed
|
||||||
%global go_api 1.20
|
%global go_api 1.20
|
||||||
|
@ -115,7 +118,7 @@
|
||||||
|
|
||||||
Name: golang
|
Name: golang
|
||||||
Version: %{go_version}
|
Version: %{go_version}
|
||||||
Release: %{baserelease}%{?dist}
|
Release: %{baserelease}.0.riscv64%{?dist}
|
||||||
Summary: The Go Programming Language
|
Summary: The Go Programming Language
|
||||||
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
|
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
|
||||||
License: BSD and Public Domain
|
License: BSD and Public Domain
|
||||||
|
@ -466,7 +469,11 @@ export CGO_ENABLED=0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# make sure to not timeout
|
# make sure to not timeout
|
||||||
|
%ifnarch riscv64
|
||||||
export GO_TEST_TIMEOUT_SCALE=2
|
export GO_TEST_TIMEOUT_SCALE=2
|
||||||
|
%else
|
||||||
|
export GO_TEST_TIMEOUT_SCALE=20
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{fail_on_tests}
|
%if %{fail_on_tests}
|
||||||
./run.bash --no-rebuild -v -v -v -k
|
./run.bash --no-rebuild -v -v -v -k
|
||||||
|
@ -535,6 +542,9 @@ fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 23 2023 David Abdurachmanov <davidlt@rivosinc.com> - 1.20.1.0.riscv64
|
||||||
|
- Enable riscv64
|
||||||
|
|
||||||
* Wed Feb 15 2023 Alejandro Sáez <asm@redhat.com> - 1.20.1
|
* Wed Feb 15 2023 Alejandro Sáez <asm@redhat.com> - 1.20.1
|
||||||
- Update to go1.20.1
|
- Update to go1.20.1
|
||||||
- Resolves: rhbz#2169896
|
- Resolves: rhbz#2169896
|
||||||
|
|
Loading…
Reference in New Issue