public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/golang] eln: Set GORISCV64 for RVA23 baseline in ELN/RHEL11
@ 2026-11-24 17:45 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-24 17:45 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 17:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 17:45 [rpms/golang] eln: Set GORISCV64 for RVA23 baseline in ELN/RHEL11 Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox