public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
To: git-commits@fedoraproject.org
Subject: [rpms/rclone] epel9: Fix build with Go-1.26
Date: Sun, 11 Oct 2026 09:46:04 GMT [thread overview]
Message-ID: <179171196400.1.14722546099060051329.rpms-rclone-f771c21135de@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-11 9:46 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=179171196400.1.14722546099060051329.rpms-rclone-f771c21135de@fedoraproject.org \
--to=mikel@olasagasti.info \
--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