public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rclone] epel9: Apply 1.75 commits in EPEL9
@ 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 : 5e248e56f45f968199c4d5e37e97e17d58192697
Author : Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date   : 2026-10-11T11:45:45+02:00
Stats  : +111/-5 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/rclone/c/5e248e56f45f968199c4d5e37e97e17d58192697?branch=epel9

Log:
Apply 1.75 commits in EPEL9

---
diff --git a/.gitignore b/.gitignore
index 2085ad1..ef0531b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,3 +52,9 @@
 /rclone-1.74.2-vendor.tar.bz2
 /rclone-1.74.3.tar.gz
 /rclone-1.74.3-vendor.tar.bz2
+/rclone-1.75.0.tar.gz
+/rclone-1.75.0-vendor.tar.bz2
+/rclone-1.75.1.tar.gz
+/rclone-1.75.1-vendor.tar.bz2
+/rclone-1.75.2.tar.gz
+/rclone-1.75.2-vendor.tar.bz2

diff --git a/0001-protondrive-fix-Go-1.27-vet-warning-in-retry-test.patch b/0001-protondrive-fix-Go-1.27-vet-warning-in-retry-test.patch
new file mode 100644
index 0000000..4edccdc
--- /dev/null
+++ b/0001-protondrive-fix-Go-1.27-vet-warning-in-retry-test.patch
@@ -0,0 +1,28 @@
+From 478a69b9a976193a0dabe50d6442c0227410a40b Mon Sep 17 00:00:00 2001
+From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
+Date: Thu, 27 Aug 2026 23:28:33 +0200
+Subject: [PATCH] protondrive: fix Go 1.27 vet warning in retry test
+
+Pass the wrapped API error through the error-typed test helper so the
+%w operand satisfies Go 1.27's printf analyzer without changing test
+behavior.
+---
+ backend/protondrive/protondrive_internal_test.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/backend/protondrive/protondrive_internal_test.go b/backend/protondrive/protondrive_internal_test.go
+index d1ef4224d..651d848e3 100644
+--- a/backend/protondrive/protondrive_internal_test.go
++++ b/backend/protondrive/protondrive_internal_test.go
+@@ -86,7 +86,7 @@ func TestShouldRetry(t *testing.T) {
+ 		{"rate limit Status=429 (handled by SDK, not retried here)", ctx, apiErr(429, 0), false},
+ 		{"client error Status=400", ctx, apiErr(400, 0), false},
+ 		{"client error Status=404", ctx, apiErr(404, 0), false},
+-		{"wrapped API error retried via errors.As", ctx, fmt.Errorf("wrapped: %w", &proton.APIError{Status: 500}), true},
++		{"wrapped API error retried via errors.As", ctx, fmt.Errorf("wrapped: %w", apiErr(500, 0)), true},
+ 		{"non-API error falls back to fserrors.ShouldRetry", ctx, errors.New("plain error"), false},
+ 	} {
+ 		t.Run(tc.name, func(t *testing.T) {
+-- 
+2.55.0
+

diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml
index 2b9f3d6..95b2cd7 100644
--- a/go-vendor-tools.toml
+++ b/go-vendor-tools.toml
@@ -1,7 +1,12 @@
 [archive]
+post_commands = [
+    ["rm", "-rf", "vendor/github.com/zeebo/blake3/LICENSE"]
+]
 
 [archive.dependency_overrides]
 "github.com/cronokirby/saferith" = "1f11f94"
+"github.com/zeebo/blake3" = "b032e7b6def0"
+
 [licensing]
 detector = "askalono"
 [[licensing.licenses]]

diff --git a/rclone.spec b/rclone.spec
index a1a56e8..f74ceed 100644
--- a/rclone.spec
+++ b/rclone.spec
@@ -3,7 +3,7 @@
 
 # https://github.com/rclone/rclone
 %global goipath         github.com/rclone/rclone
-Version:                1.74.3
+Version:                1.75.2
 
 %gometa -L -f
 
@@ -13,13 +13,13 @@ Release:        %autorelease
 Summary:        Rsync for cloud storage
 
 # Generated by go-vendor-tools
-License:        0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC AND LGPL-3.0-only AND MIT AND MPL-2.0 AND (Apache-2.0 OR MIT)
+License:        0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND LGPL-3.0-only AND MIT AND MPL-2.0 AND (Apache-2.0 OR MIT)
 URL:            %{gourl}
 Source0:        %{gosource}
 # Generated by go-vendor-tools
 Source1:        %{archivename}-vendor.tar.bz2
 Source2:        go-vendor-tools.toml
-Patch:          0001-Fix-test-with-1.25.patch
+Patch:          0001-protondrive-fix-Go-1.27-vet-warning-in-retry-test.patch
 
 BuildRequires:  go-vendor-tools
 

diff --git a/sources b/sources
index ad4bc61..a8ae984 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (rclone-1.74.3.tar.gz) = 72bc16c1899f09d862f5c0095c27bf111f2b5d1d481746c069d8fa7207466a807deb19d568d175bbf6194072e5cf1d35c781db64359321d82417ffd3464f97e8
-SHA512 (rclone-1.74.3-vendor.tar.bz2) = 5e3b1cd67c2d3db9a63cf4e05de701599e216c594debfe2e45667910d0edd99f73156802b0e2c54b59ccc1a9dbcee37a46cda00cd66eb353917b94c9b686d541
+SHA512 (rclone-1.75.2.tar.gz) = 0b05b09176d7a90dc47494b0cf827b35d9dc3ffa7f9d27d48efd563ae18ca7e7f6610426f23a53962246c8beee4b26482e982ce9200f62262859126ab1436907
+SHA512 (rclone-1.75.2-vendor.tar.bz2) = dfe66a9b43937c0f739b3ee9b3b534b3589fdf5b1a3523fa7dc2ff56876884bb7542208ecb0a274928ea1b5cdf0ee5376722d099df258976aa9a608078438945

diff --git a/0001-Fix-test-with-1.25.patch b/0001-Fix-test-with-1.25.patch
new file mode 100644
index 0000000..136bf05
--- /dev/null
+++ b/0001-Fix-test-with-1.25.patch
@@ -0,0 +1,67 @@
+From 2096915ad6a91f193f3815deb71180d026253816 Mon Sep 17 00:00:00 2001
+From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
+Date: Sat, 2 May 2026 00:20:43 +0200
+Subject: [PATCH] Fix test with 1.25
+
+Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
+---
+ backend/huaweidrive/huaweidrive_test.go | 18 ++++++++++++++----
+ fs/mimetype.go                          |  1 +
+ 2 files changed, 15 insertions(+), 4 deletions(-)
+
+diff --git a/backend/huaweidrive/huaweidrive_test.go b/backend/huaweidrive/huaweidrive_test.go
+index a5285f2ab..71a16c9a6 100644
+--- a/backend/huaweidrive/huaweidrive_test.go
++++ b/backend/huaweidrive/huaweidrive_test.go
+@@ -427,14 +427,24 @@ func TestMimeTypeDetection(t *testing.T) {
+ 
+ 	for _, tc := range testCases {
+ 		t.Run(tc.filename, func(t *testing.T) {
+-			detected := mime.TypeByExtension(path.Ext(tc.filename))
++			ext := path.Ext(tc.filename)
++			raw := mime.TypeByExtension(ext)
++			detected := raw
+ 			if detected == "" {
+ 				detected = "application/octet-stream"
+ 			}
+ 
+-			// Check if detected MIME type is in the list of expected types
++			// Go 1.25 and earlier use a small builtin extension table; types such as .txt and .zip
++			// come from the OS MIME DB (/usr/share/mime/globs2, /etc/mime.types). Minimal RPM
++			// buildroots often have no mapping, so TypeByExtension returns "". That matches
++			// huaweidrive upload logic, which keeps application/octet-stream when lookup is empty.
++			acceptable := append([]string(nil), tc.expectedMimes...)
++			if raw == "" && ext != "" {
++				acceptable = append(acceptable, "application/octet-stream")
++			}
++
+ 			found := false
+-			for _, expected := range tc.expectedMimes {
++			for _, expected := range acceptable {
+ 				if detected == expected {
+ 					found = true
+ 					break
+@@ -442,7 +452,7 @@ func TestMimeTypeDetection(t *testing.T) {
+ 			}
+ 
+ 			if !found {
+-				t.Errorf("expected one of MIME types %v for %q, got %q", tc.expectedMimes, tc.filename, detected)
++				t.Errorf("expected one of MIME types %v for %q, got %q", acceptable, tc.filename, detected)
+ 			}
+ 		})
+ 	}
+diff --git a/fs/mimetype.go b/fs/mimetype.go
+index 44d423738..7185db777 100644
+--- a/fs/mimetype.go
++++ b/fs/mimetype.go
+@@ -15,6 +15,7 @@ func init() {
+ 		mimeType   string
+ 		extensions string
+ 	}{
++		{"text/plain", ".txt"},
+ 		{"audio/flac", ".flac"},
+ 		{"audio/mpeg", ".mpga,.mpega,.mp2,.mp3,.m4a"},
+ 		{"audio/ogg", ".oga,.ogg,.opus,.spx"},
+-- 
+2.54.0
+

^ 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: Apply 1.75 commits in EPEL9 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