public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: David Benoit <dbenoit@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/golang] eln: Update Go to 1.27.3 (hostfips-1)
Date: Wed, 21 Oct 2026 13:26:19 GMT	[thread overview]
Message-ID: <179258917911.1.17439680506546105199.rpms-golang-0f5b52bf8ae8@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/golang
            Branch : eln
            Commit : 0f5b52bf8ae8b276f1eb04b6c3467ae35716a5a8
            Author : David Benoit <dbenoit@redhat.com>
            Date   : 2026-10-20T04:26:29-04:00
            Stats  : +72/-4 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/golang/c/0f5b52bf8ae8b276f1eb04b6c3467ae35716a5a8?branch=eln

            Log:
            Update Go to 1.27.3 (hostfips-1)

Remove experimental ML-DSA nofips package copy.
Set default GOFIPS140=inprocess, to support ML-DSA.
Disable AutoProv in golang-tests package.

Related: RHEL-281449

---
diff --git a/.gitignore b/.gitignore
index 6ce3cd1..567c873 100644
--- a/.gitignore
+++ b/.gitignore
@@ -191,3 +191,5 @@
 /go1.26.7-1-openssl-fips.tar.gz
 /go1.27.2.src.tar.gz
 /go1.27.2-1-hostfips-release.tar.gz
+/go1.27.3.src.tar.gz
+/go1.27.3-1-hostfips-release.tar.gz

diff --git a/fips140-inprocess-snap.patch b/fips140-inprocess-snap.patch
new file mode 100644
index 0000000..7ba6478
--- /dev/null
+++ b/fips140-inprocess-snap.patch
@@ -0,0 +1,56 @@
+diff --git a/patches/001-host-fips-auto.patch b/patches/001-host-fips-auto.patch
+index b1472e7..0a0a454 100644
+--- a/patches/001-host-fips-auto.patch
++++ b/patches/001-host-fips-auto.patch
+@@ -7,7 +7,7 @@ index 78d55bec55..52630593a0 100644
+  	b = os.Getenv("GOFIPS140")
+  	if b == "" {
+ -		b = "off"
+-+		b = "certified"
+++		b = "inprocess"
+  	}
+  	gofips140 = b
+  
+diff --git a/scripts/crypto-test.sh b/scripts/crypto-test.sh
+index 2324726..1a7c853 100755
+--- a/scripts/crypto-test.sh
++++ b/scripts/crypto-test.sh
+@@ -2,6 +2,8 @@
+ 
+ set -euo pipefail
+ 
++DEFAULT_FIPS140=inprocess
++
+ SUITES=crypto,tls
+ MODES=all
+ VERBOSE=
+@@ -52,7 +54,7 @@ export GOCACHE=/tmp/go-cache
+ 
+ # The matrix owns these settings. In particular, inherited -run, -skip, -short,
+ # or build tags in GOFLAGS must not silently remove tests from an "all" run.
+-export GOFLAGS= GOEXPERIMENT= GODEBUG= GOFIPS140=certified
++export GOFLAGS= GOEXPERIMENT= GODEBUG= GOFIPS140=${DEFAULT_FIPS140}
+ export GOLANG_NATIVE_HOSTFIPS_OVERRIDE=0 GOTOOLCHAIN=local
+ unset ACVP_WRAPPER GOENTROPYSOURCEACVP GONOPAAPAI
+ 
+@@ -234,7 +236,7 @@ run_build_defaults() (
+   unset GOFIPS140
+   export GOENV=off
+   local info snapshot
+-  snapshot=$(cat "$GOROOT/lib/fips140/certified.txt") || return 1
++  snapshot=$(cat "$GOROOT/lib/fips140/${DEFAULT_FIPS140}.txt") || return 1
+   "$GO" test -c -o "$WORK/sha256.test" crypto/sha256 || return 1
+   info=$("$GO" version -m "$WORK/sha256.test") || return 1
+   printf '%s\n' "$info"
+@@ -251,9 +253,9 @@ run_build_defaults() (
+ run_cmd_go() {
+   local info snapshot
+   info=$("$GO" version -m "$GO") || return 1
+-  snapshot=$(cat "$GOROOT/lib/fips140/certified.txt") || return 1
++  snapshot=$(cat "$GOROOT/lib/fips140/${DEFAULT_FIPS140}.txt") || return 1
+   if [[ "$info" != *"DefaultGODEBUG=fips140=auto"* || "$info" != *"GOFIPS140=$snapshot"* ]]; then
+-    echo "FAIL: toolchain must embed auto FIPS and the certified snapshot" >&2
++    echo "FAIL: toolchain must embed auto FIPS and the ${DEFAULT_FIPS140} snapshot" >&2
+     printf '%s\n' "$info"
+     return 1
+   fi

diff --git a/golang.spec b/golang.spec
index e3725eb..00c0109 100644
--- a/golang.spec
+++ b/golang.spec
@@ -116,7 +116,7 @@
 %global go_api 1.27
 # Use only for prerelease versions
 #global go_prerelease rc3
-%global go_patch 2
+%global go_patch 3
 %global go_version %{go_api}%{?go_patch:.%{go_patch}}%{?go_prerelease:~%{go_prerelease}}
 %global go_source %{go_api}%{?go_patch:.%{go_patch}}%{?go_prerelease}
 # Go FIPS package release
@@ -148,6 +148,9 @@ Source1:        https://github.com/golang-fips/go/archive/refs/tags/go%{go_sourc
 Source2:        fedora.go
 Source3:       https://github.com/llvm/llvm-project/releases/download/llvmorg-%{llvm_compiler_rt_version}/compiler-rt-%{llvm_compiler_rt_version}.src.tar.xz
 
+# To support ML-DSA, we will use fips snapshot v1.26.0 (inprocess).
+Source4: 	fips140-inprocess-snap.patch
+
 # The compiler is written in Go. Needs go(1.4+) compiler for build.
 %if !%{golang_bootstrap}
 BuildRequires:  gcc-go >= 5
@@ -256,6 +259,9 @@ BuildArch:     noarch
 Summary:       Golang compiler tests for stdlib
 Requires:      %{name} = %{version}-%{release}
 BuildArch:     noarch
+# testdata contains ELF files (e.g. debug/elf/testdata/libtiffxx.so_)
+# whose SONAMEs would otherwise be picked up as spurious library provides
+AutoProv:      no
 
 %description   tests
 %{summary}.
@@ -375,11 +381,15 @@ rm -rf src/crypto/internal/boring/syso
     echo "Preparing FIPS patches"
     pushd ..
     tar -xf %{SOURCE1}
-    popd
+    pushd go-go%{version}-%{pkg_release}-hostfips-release
+    # Apply fips140 inprocess module patch
+    patch -p1 < %{SOURCE4}
+    popd;popd
     # TODO Check here, this is failing due to the external linker flag? maybe, but it's clearly related to that according tho this commit:
     # https://github.com/golang-fips/go/blob/main/patches/000-initial-setup.patch#L48
     # Add --no-backup-if-mismatch option to avoid creating .orig temp files
     patch_dir="../go-go%{version}-%{pkg_release}-hostfips-release/patches"
+
     for p in "$patch_dir"/*.patch; do
       echo "Applying $p"
       patch --no-backup-if-mismatch -p1 < $p

diff --git a/sources b/sources
index e00cf95..b91d1a9 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (go1.27.2.src.tar.gz) = c6b7d28bf670cd01ddb0612e18e639719c423c2891da626393b58038b8fa99afd1511a7cfb8bfe8f4934cb7ddb7bd2b82a3d151fbd3be419d52e86157309a359
-SHA512 (go1.27.2-1-hostfips-release.tar.gz) = 699d58675d29401e013816760dcb6558011ee9bd0342d5c863bfa87965f8e8b796850427b42fdbf3e98c0877e5f6e931ae2e8d39d764bee8285a0aadf6e844cc
+SHA512 (go1.27.3.src.tar.gz) = dc84444e0e5e5d4f7bc00f4323ac88c2efa0ce2af4a6e3b3e60325a694389c7ec85ff3aaa9d80df9ff07a2c32620ba57b0c787475f44d80c57c0d22b5c63844c
+SHA512 (go1.27.3-1-hostfips-release.tar.gz) = df58645ad863be7f78a7a8d49aeb812ef421ab75c77f6cc5b331cbf1b816782bdc5379ac82e13b5b30ae80713b6186d1e3bcbc37084ab5a9c4f538d283dd30ce
 SHA512 (compiler-rt-18.1.8.src.tar.xz) = fb8795bd51c9b005c2ad1975591e9e2715740d6407ccad41379f136ef2e8d24ded8b97b01165a3ae4bd377119a6a1049ca05d3220404fc12bee86114ff2bff0d

                 reply	other threads:[~2026-10-21 13:26 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=179258917911.1.17439680506546105199.rpms-golang-0f5b52bf8ae8@fedoraproject.org \
    --to=dbenoit@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