public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/golang] f43: Update provides
@ 2026-06-03 18:05
0 siblings, 0 replies; only message in thread
From: @ 2026-06-03 18:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/golang
Branch : f43
Commit : dd38d69ff26379cd60c0a28979918f44f77f225e
Author : Alejandro Sáez <asm@redhat.com>
Date : 2026-06-03T17:50:42+02:00
Stats : +132/-13 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/golang/c/dd38d69ff26379cd60c0a28979918f44f77f225e?branch=f43
Log:
Update provides
---
diff --git a/golang.spec b/golang.spec
index 1aa73a5..ef90a0b 100644
--- a/golang.spec
+++ b/golang.spec
@@ -135,20 +135,21 @@ BuildRequires: pcre2-devel, glibc-static, perl-interpreter, procps-ng
Provides: go = %{version}-%{release}
# Bundled/Vendored provides generated by bundled-deps.sh based on the in tree module data
-Provides: bundled(golang(github.com/google/pprof)) = 0.0.0.20250208200701.d0013a598941
-Provides: bundled(golang(github.com/ianlancetaylor/demangle)) = 0.0.0.20240912202439.0a2b6291aafd
-Provides: bundled(golang(golang.org/x/arch)) = 0.18.1.0.20250605182141.b2f4e2807dec
-Provides: bundled(golang(golang.org/x/build)) = 0.0.0.20250606033421.8c8ff6f34a83
-Provides: bundled(golang(golang.org/x/crypto)) = 0.39.0
-Provides: bundled(golang(golang.org/x/mod)) = 0.25.0
-Provides: bundled(golang(golang.org/x/net)) = 0.41.0
-Provides: bundled(golang(golang.org/x/sync)) = 0.15.0
-Provides: bundled(golang(golang.org/x/sys)) = 0.33.0
-Provides: bundled(golang(golang.org/x/telemetry)) = 0.0.0.20250606142133.60998feb31a8
-Provides: bundled(golang(golang.org/x/term)) = 0.32.0
-Provides: bundled(golang(golang.org/x/text)) = 0.26.0
+Provides: bundled(golang(github.com/google/pprof)) = 0.0.0.20251114195745.4902fdda35c8
+Provides: bundled(golang(github.com/ianlancetaylor/demangle)) = 0.0.0.20250417193237.f615e6bd150b
+Provides: bundled(golang(golang.org/x/arch)) = 0.23.0
+Provides: bundled(golang(golang.org/x/build)) = 0.0.0.20251128064159.b9bfd88b30e8
+Provides: bundled(golang(golang.org/x/crypto)) = 0.46.1.0.20251210140736.7dacc380ba00
+Provides: bundled(golang(golang.org/x/mod)) = 0.30.1.0.20251115032019.269c237cf350
+Provides: bundled(golang(golang.org/x/net)) = 0.47.1.0.20251128220604.7c360367ab7e
+Provides: bundled(golang(golang.org/x/net)) = 0.47.1.0.20260417193450.705de46f8788
+Provides: bundled(golang(golang.org/x/sync)) = 0.19.0
+Provides: bundled(golang(golang.org/x/sys)) = 0.39.0
+Provides: bundled(golang(golang.org/x/telemetry)) = 0.0.0.20251128220624.abf20d0e57ec
+Provides: bundled(golang(golang.org/x/term)) = 0.38.0
+Provides: bundled(golang(golang.org/x/text)) = 0.32.0
Provides: bundled(golang(golang.org/x/tools)) = 0.27.0
-Provides: bundled(golang(golang.org/x/tools)) = 0.34.0
+Provides: bundled(golang(golang.org/x/tools)) = 0.39.1.0.20260323181443.4f499ecaa91d
Provides: bundled(golang(rsc.io/markdown)) = 0.0.0.20240306144322.0bf8f97ee8ef
Requires: %{name}-bin = %{version}-%{release}
diff --git a/update-bundled-provides.sh b/update-bundled-provides.sh
new file mode 100755
index 0000000..3e55a73
--- /dev/null
+++ b/update-bundled-provides.sh
@@ -0,0 +1,118 @@
+#!/bin/bash
+# update-bundled-provides.sh - Automate bundled dependency updates for golang package
+#
+# This script automates the workflow of extracting Go sources, running
+# bundled-deps.sh, and updating the bundled provides section in golang.spec.
+# It's designed to work both in Packit automation and as a manual tool for
+# maintainers of this package. It's clearly not package agnostic. Please use
+# with caution.
+#
+# Usage: ./update-bundled-provides.sh [SPEC_FILE]
+#
+# Copyright (C) 2026 Alejandro Sáez
+# License: GPLv2+
+
+set -euo pipefail
+
+SPEC_FILE="${1:-golang.spec}"
+MARKER="# Bundled/Vendored provides generated by bundled-deps.sh"
+
+# Step 1: Check if sources are extracted by looking for modules.txt files
+if ! find . -name "modules.txt" -type f 2>/dev/null | grep -q .; then
+ echo "INFO: Sources not extracted, extracting now..."
+
+ # Use fedpkg to download and extract sources
+ # This handles the lookaside cache and source extraction properly
+ if ! fedpkg sources 2>&1; then
+ echo "ERROR: Failed to download sources with fedpkg sources"
+ exit 1
+ fi
+
+ # Extract sources using fedpkg prep
+ if ! fedpkg prep 2>&1; then
+ echo "ERROR: Failed to extract sources with fedpkg prep"
+ exit 1
+ fi
+
+ echo "INFO: Sources extracted successfully"
+fi
+
+# Step 2: Generate bundled provides (strip blank lines from output)
+echo "INFO: Running bundled-deps.sh to generate provides..."
+PROVIDES=$(./bundled-deps.sh | sed '/^$/d')
+
+# Step 3: Validate output
+if [ -z "$PROVIDES" ]; then
+ echo "ERROR: bundled-deps.sh produced no output"
+ exit 1
+fi
+
+if ! echo "$PROVIDES" | grep -q "Provides: bundled"; then
+ echo "ERROR: bundled-deps.sh output does not contain 'Provides: bundled'"
+ echo "Output was: $PROVIDES"
+ exit 1
+fi
+
+# Step 4: Verify marker comment exists in spec file
+if ! grep -q "$MARKER" "$SPEC_FILE"; then
+ echo "ERROR: Marker comment not found in $SPEC_FILE"
+ echo "Expected: $MARKER"
+ exit 1
+fi
+
+# Step 5: Update spec file using awk to replace the bundled provides section
+echo "INFO: Updating $SPEC_FILE with new bundled provides..."
+
+TEMP_FILE=$(mktemp)
+
+awk -v marker="$MARKER" -v provides="$PROVIDES" '
+ BEGIN {
+ in_section = 0
+ }
+
+ # When we find the marker, print it and the new provides
+ $0 ~ marker {
+ print marker " based on the in tree module data"
+ print provides
+ in_section = 1
+ next
+ }
+
+ # Skip lines in the bundled provides section until we hit a blank line
+ in_section && /^$/ {
+ print ""
+ in_section = 0
+ next
+ }
+
+ # Skip other lines in the section
+ in_section {
+ next
+ }
+
+ # Print all other lines unchanged
+ !in_section {
+ print
+ }
+' "$SPEC_FILE" > "$TEMP_FILE"
+
+# Verify the temp file is not empty
+if [ ! -s "$TEMP_FILE" ]; then
+ echo "ERROR: awk processing produced empty output"
+ rm -f "$TEMP_FILE"
+ exit 1
+fi
+
+# Verify the marker still exists in the output
+if ! grep -q "$MARKER" "$TEMP_FILE"; then
+ echo "ERROR: Marker comment lost during processing"
+ rm -f "$TEMP_FILE"
+ exit 1
+fi
+
+# Replace the spec file with the updated version
+mv "$TEMP_FILE" "$SPEC_FILE"
+
+# Count how many provides were added
+PROVIDES_COUNT=$(echo "$PROVIDES" | wc -l)
+echo "INFO: Successfully updated $SPEC_FILE with $PROVIDES_COUNT bundled provides"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 18:05 [rpms/golang] f43: Update provides
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox