public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/golang] eln: Set GORISCV64 for RVA23 baseline in ELN/RHEL11
Date: Tue, 24 Nov 2026 17:45:10 GMT [thread overview]
Message-ID: <179554231083.1.5945349200496944694.rpms-golang-4dc34b3832f1@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/golang
Branch : eln
Commit : 4dc34b3832f111237bf0dfed5b8a121d9c9c3107
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-11-23T11:14:08-05:00
Stats : +17/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/golang/c/4dc34b3832f111237bf0dfed5b8a121d9c9c3107?branch=eln
Log:
Set GORISCV64 for RVA23 baseline in ELN/RHEL11
https://github.com/fedora-eln/eln/issues/629
---
diff --git a/0001-Modify-go.env.patch b/0001-Modify-go.env.patch
index d50ce0e..5b3e0aa 100644
--- a/0001-Modify-go.env.patch
+++ b/0001-Modify-go.env.patch
@@ -6,6 +6,7 @@ Subject: [PATCH] Modify environment variables defaults
- Set GOTOOLCHAIN to local
- Set GOAMD64 to v3
- Set GOPPC64 to power9
+- Set GORISCV64 to rva20u64
---
go.env | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@@ -14,7 +15,7 @@ diff --git a/go.env b/go.env
index 6ff2b921d4..0bff84446c 100644
--- a/go.env
+++ b/go.env
-@@ -9,4 +9,10 @@ GOSUMDB=sum.golang.org
+@@ -9,4 +9,12 @@ GOSUMDB=sum.golang.org
# Automatically download newer toolchains as directed by go.mod files.
# See https://go.dev/doc/toolchain for details.
@@ -25,6 +26,8 @@ index 6ff2b921d4..0bff84446c 100644
+GOAMD64=v3
+# The PPC64LE baseline for RHEL10 is power9
+GOPPC64=power9
++# The RISCV64 baseline for RHEL10 is rva20u64
++GORISCV64=rva20u64
+
--
2.45.1
diff --git a/golang.spec b/golang.spec
index 9b035ff..915d0a7 100644
--- a/golang.spec
+++ b/golang.spec
@@ -103,13 +103,22 @@
%if 0%{?rhel} < 9
%global goamd64 v1
%global goppc64 power8
+%global goriscv64 rva20u64
%else
%if 0%{?rhel} < 10
%global goamd64 v2
%global goppc64 power8
+%global goriscv64 rva20u64
%else
+%if 0%{?rhel} < 11
%global goamd64 v3
%global goppc64 power9
+%global goriscv64 rva20u64
+%else
+%global goamd64 v3
+%global goppc64 power9
+%global goriscv64 rva23u64
+%endif
%endif
%endif
@@ -370,6 +379,7 @@ sed -i '1s/$/ (%{?rhel:Red Hat} %{version}-%{release})/' VERSION
sed -iE "s/^.*baseline for RHEL.*$//" go.env
sed -i "s/GOAMD64=.*/GOAMD64=%{goamd64}/" go.env
sed -i "s/GOPPC64=.*/GOPPC64=%{goppc64}/" go.env
+sed -i "s/GORISCV64=.*/GORISCV64=%{goriscv64}/" go.env
# Delete the bundled race detector objects.
find ./src/runtime/race/ -name "race_*.syso" -exec rm {} \;
@@ -464,6 +474,7 @@ export GOHOSTOS=linux
export GOHOSTARCH=%{gohostarch}
export GOAMD64=%{goamd64}
export GOPPC64=%{goppc64}
+export GORISCV64=%{goriscv64}
pushd src
# use our gcc options for this build, but store gcc as default for compiler
@@ -475,6 +486,7 @@ export GOOS=linux
export GOARCH=%{gohostarch}
export GOAMD64=%{goamd64}
export GOPPC64=%{goppc64}
+export GORISCV64=%{goriscv64}
DEFAULT_GO_LD_FLAGS=""
%if !%{external_linker}
@@ -633,6 +645,7 @@ export CFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="$RPM_LD_FLAGS"
export GOAMD64=%{goamd64}
export GOPPC64=%{goppc64}
+export GORISCV64=%{goriscv64}
%if !%{external_linker}
export GO_LDFLAGS="-linkmode internal"
%else
reply other threads:[~2026-11-24 17:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179554231083.1.5945349200496944694.rpms-golang-4dc34b3832f1@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox