public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rclone] epel9: Fix build with Go-1.26
@ 2026-10-11  9:46 Mikel Olasagasti Uranga
  0 siblings, 0 replies; only message in thread
From: Mikel Olasagasti Uranga @ 2026-10-11  9:46 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rclone
Branch : epel9
Commit : f771c21135de01cbca44dfd9fa55ce649dd5f0a5
Author : Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date   : 2026-01-27T14:55:09+01:00
Stats  : +35/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rclone/c/f771c21135de01cbca44dfd9fa55ce649dd5f0a5?branch=epel9

Log:
Fix build with Go-1.26

---
diff --git a/0001-fix-use-d-instead-of-q-for-ints.patch b/0001-fix-use-d-instead-of-q-for-ints.patch
new file mode 100644
index 0000000..05d97d4
--- /dev/null
+++ b/0001-fix-use-d-instead-of-q-for-ints.patch
@@ -0,0 +1,34 @@
+From 7ed4d3491b78cb22e0c2b0a8b5d6087f7b708c82 Mon Sep 17 00:00:00 2001
+From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
+Date: Fri, 23 Jan 2026 17:41:29 +0100
+Subject: [PATCH 1/2] fix: use %d instead of %q for ints
+
+Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
+---
+ fs/bwtimetable.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/fs/bwtimetable.go b/fs/bwtimetable.go
+index 0f7597d11..52e84d3cb 100644
+--- a/fs/bwtimetable.go
++++ b/fs/bwtimetable.go
+@@ -90,14 +90,14 @@ func validateHour(HHMM string) error {
+ 		return fmt.Errorf("invalid hour in time specification %q: %v", HHMM, err)
+ 	}
+ 	if hh < 0 || hh > 23 {
+-		return fmt.Errorf("invalid hour (must be between 00 and 23): %q", hh)
++		return fmt.Errorf("invalid hour (must be between 00 and 23): %d", hh)
+ 	}
+ 	mm, err := strconv.Atoi(HHMM[3:])
+ 	if err != nil {
+ 		return fmt.Errorf("invalid minute in time specification: %q: %v", HHMM, err)
+ 	}
+ 	if mm < 0 || mm > 59 {
+-		return fmt.Errorf("invalid minute (must be between 00 and 59): %q", hh)
++		return fmt.Errorf("invalid minute (must be between 00 and 59): %d", hh)
+ 	}
+ 	return nil
+ }
+-- 
+2.52.0
+

diff --git a/rclone.spec b/rclone.spec
index e1b74ef..edaefff 100644
--- a/rclone.spec
+++ b/rclone.spec
@@ -19,6 +19,7 @@ Source0:        %{gosource}
 # Generated by go-vendor-tools
 Source1:        %{archivename}-vendor.tar.bz2
 Source2:        go-vendor-tools.toml
+Patch:          0001-fix-use-d-instead-of-q-for-ints.patch
 
 BuildRequires:  go-vendor-tools
 

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

only message in thread, other threads:[~2026-10-11  9:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11  9:46 [rpms/rclone] epel9: Fix build with Go-1.26 Mikel Olasagasti Uranga

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