public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sccache] rawhide: Update to version 0.20.1
@ 2026-12-02 8:21 Andreas Schneider
0 siblings, 0 replies; only message in thread
From: Andreas Schneider @ 2026-12-02 8:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-sccache
Branch : rawhide
Commit : 0a749c9be88190d781ddac8aa9d5b434f8875af0
Author : Andreas Schneider <asn@redhat.com>
Date : 2026-12-02T07:03:23+01:00
Stats : +103/-61 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rust-sccache/c/0a749c9be88190d781ddac8aa9d5b434f8875af0?branch=rawhide
Log:
Update to version 0.20.1
- resolves: rhbz#2535560
- resolves: rhbz#2437510
---
diff --git a/rust-sccache.spec b/rust-sccache.spec
index 4068639..0ec9830 100644
--- a/rust-sccache.spec
+++ b/rust-sccache.spec
@@ -7,7 +7,7 @@
%global crate sccache
Name: rust-sccache
-Version: 0.17.0
+Version: 0.20.1
Release: %autorelease
Summary: Sccache is a ccache-like tool
@@ -19,13 +19,14 @@ Patch: sccache-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
# * Edited default features
# * Removed dist-server feature and rouille dependency
-# * Allow opendal 0.55
+# * Allow opendal 0.59
# * Allow which version 8
-# * Unpin serde_json, allowing < 2.0; pinned upstream only for MSRV
-# * Allow tokio-serde version < 1.0
# * Allow shlex version 2: https://github.com/mozilla/sccache/pull/2836
-# * Allow typed-path 0.13: https://github.com/mozilla/sccache/pull/2924
Patch: sccache-fix-metadata.diff
+# * Rename a test case description that is a Rust keyword: test-case 3.3.1,
+# which Fedora ships, uses the description alone as the function name, so
+# `static` fails to compile; test-case 3.4 prefixes the name
+Patch10: sccache-test-case-keyword-name.patch
BuildRequires: cargo-rpm-macros >= 26
@@ -115,6 +116,9 @@ rm -f tests/oauth.rs
# * Skip tests which use test-crate which isn't part of the source crate.
# * Skip tests using ar crate
# * Skip tests trying to use rustup
+# * Skip tests which assert that reqwest fails to build a client without native
+# CA files: reqwest as built in Fedora does not fail, so the precondition does
+# not hold
%{cargo_test -- -- %{shrink:
--skip test_rust_cargo_build
--skip test_rust_cargo_build_readonly
@@ -126,6 +130,12 @@ rm -f tests/oauth.rs
--skip test_cache_hit_rate
--skip test_generate_hash_key
--skip test_rlib_dep_reader_call
+ --skip test_rust_cargo_dep_info_from_other_checkout
+ --skip test_rust_cargo_incremental_cached
+ --skip test_rust_cargo_incremental_allowed_deps_cached
+ --skip test_rust_cargo_incremental_refused_by_default
+ --skip http_transport_builds_with_invalid_native_ca_paths
+ --skip blocking_http_client_builds_with_invalid_native_ca_paths
}}
%endif
diff --git a/rust2rpm.toml b/rust2rpm.toml
index cf74ede..aebc848 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -2,15 +2,19 @@
cargo-toml-patch-comments = [
"Edited default features",
"Removed dist-server feature and rouille dependency",
- "Allow opendal 0.55",
+ "Allow opendal 0.59",
"Allow which version 8",
- "Unpin serde_json, allowing < 2.0; pinned upstream only for MSRV",
- "Allow tokio-serde version < 1.0",
"Allow shlex version 2: https://github.com/mozilla/sccache/pull/2836",
- "Allow typed-path 0.13: https://github.com/mozilla/sccache/pull/2924",
]
cargo-install-lib = false
+[[package.extra-patches]]
+number = 10
+file = "sccache-test-case-keyword-name.patch"
+comments = [
+ "Rename a test case description that is a Rust keyword: test-case 3.3.1, which Fedora ships, uses the description alone as the function name, so `static` fails to compile; test-case 3.4 prefixes the name",
+]
+
[scripts.prep]
post = [
"rm -f tests/oauth.rs",
@@ -21,6 +25,7 @@ comments = [
"Skip tests which use test-crate which isn't part of the source crate.",
"Skip tests using ar crate",
"Skip tests trying to use rustup",
+ "Skip tests which assert that reqwest fails to build a client without native CA files: reqwest as built in Fedora does not fail, so the precondition does not hold",
]
skip = [
"test_rust_cargo_build",
@@ -33,4 +38,10 @@ skip = [
"test_cache_hit_rate",
"test_generate_hash_key",
"test_rlib_dep_reader_call",
+ "test_rust_cargo_dep_info_from_other_checkout",
+ "test_rust_cargo_incremental_cached",
+ "test_rust_cargo_incremental_allowed_deps_cached",
+ "test_rust_cargo_incremental_refused_by_default",
+ "http_transport_builds_with_invalid_native_ca_paths",
+ "blocking_http_client_builds_with_invalid_native_ca_paths",
]
diff --git a/sccache-fix-metadata-auto.diff b/sccache-fix-metadata-auto.diff
index 0ee2256..036c327 100644
--- a/sccache-fix-metadata-auto.diff
+++ b/sccache-fix-metadata-auto.diff
@@ -1,6 +1,6 @@
---- sccache-0.17.0/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ sccache-0.17.0/Cargo.toml 2026-10-20T11:21:39.704388+00:00
-@@ -477,17 +477,6 @@
+--- sccache-0.20.1/Cargo.toml 2006-07-24T01:21:28+00:00
++++ sccache-0.20.1/Cargo.toml 2026-11-26T09:00:36.955665+00:00
+@@ -539,17 +539,6 @@
[target."cfg(unix)".dependencies.daemonix]
version = "0.1"
@@ -18,7 +18,7 @@
[lints.clippy]
cloned_instead_of_copied = "warn"
cloned_ref_to_slice_refs = "warn"
-@@ -507,3 +496,4 @@
+@@ -573,3 +562,4 @@
[profile.test]
debug = 0
diff --git a/sccache-fix-metadata.diff b/sccache-fix-metadata.diff
index abe3df8..f51fbc3 100644
--- a/sccache-fix-metadata.diff
+++ b/sccache-fix-metadata.diff
@@ -1,5 +1,5 @@
---- sccache-0.17.0/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ sccache-0.17.0/Cargo.toml 2026-10-20T11:21:49.140333+00:00
+--- sccache-0.20.1/Cargo.toml 2006-07-24T01:21:28+00:00
++++ sccache-0.20.1/Cargo.toml 2026-11-26T09:00:36.965495+00:00
@@ -27,7 +27,7 @@
"command-line-utilities",
"development-tools::build-utils",
@@ -9,8 +9,8 @@
repository = "https://github.com/mozilla/sccache/"
[package.metadata.binstall]
-@@ -64,7 +64,12 @@
- "reqsign",
+@@ -66,7 +66,13 @@
+ "opendal-http-transport-reqwest",
"reqwest",
]
-default = ["all"]
@@ -18,12 +18,13 @@
+ "dist-client",
+ "memcached",
+ "native-zlib",
++ "s3",
+ "webdav"
+]
dist-client = [
"flate2",
"hyper",
-@@ -74,17 +79,8 @@
+@@ -76,17 +82,7 @@
"url",
"sha2",
]
@@ -39,11 +40,10 @@
- "version-compare",
-]
+dist-server = []
-+rouille = []
dist-tests = [
"dist-client",
"dist-server",
-@@ -133,11 +129,6 @@
+@@ -152,11 +148,6 @@
name = "sccache"
path = "src/main.rs"
@@ -55,7 +55,7 @@
[[test]]
name = "cache_hit_rate"
path = "tests/cache_hit_rate.rs"
-@@ -149,10 +140,6 @@
+@@ -168,10 +159,6 @@
[[test]]
name = "logging"
path = "tests/logging.rs"
@@ -66,7 +66,32 @@
[[test]]
name = "sccache_args"
-@@ -346,12 +333,6 @@
+@@ -342,20 +329,20 @@
+ version = "0.40"
+
+ [dependencies.opendal]
+-version = "0.58.1"
++version = "0.59"
+ optional = true
+ default-features = false
+
+ [dependencies.opendal-http-transport-reqwest]
+-version = "0.58.1"
++version = "0.59"
+ optional = true
+
+ [dependencies.opendal-layer-logging]
+-version = "0.58.1"
++version = "0.59"
+ optional = true
+
+ [dependencies.opendal-layer-timeout]
+-version = "0.58.1"
++version = "0.59"
+ optional = true
+
+ [dependencies.openssl]
+@@ -382,12 +369,6 @@
]
optional = true
@@ -79,43 +104,17 @@
[dependencies.semver]
version = "1.0"
-@@ -360,14 +341,14 @@
- features = ["derive"]
-
- [dependencies.serde_json]
--version = ">=1.0, <1.0.147"
-+version = ">=1.0, <2.0"
-
- [dependencies.sha2]
- version = "0.10.8"
+@@ -403,7 +384,7 @@
optional = true
[dependencies.shlex]
--version = "1.3.0"
-+version = ">=1.3.0, <3.0.0"
+-version = "2.0.1"
++version = "2.0"
[dependencies.strip-ansi-escapes]
version = "0.2"
-@@ -394,7 +375,7 @@
- ]
-
- [dependencies.tokio-serde]
--version = "0.9"
-+version = ">=0.8, <1.0"
-
- [dependencies.tokio-util]
- version = "0.7.18"
-@@ -411,7 +392,7 @@
- version = "0.3"
-
- [dependencies.typed-path]
--version = "0.12.0"
-+version = ">=0.12.0, <0.14.0"
-
- [dependencies.url]
- version = "2"
-@@ -429,8 +410,10 @@
- version = "2"
+@@ -472,8 +453,10 @@
+ optional = true
[dependencies.which]
-version = "6"
@@ -126,9 +125,13 @@
+# real-sys feature.
[dependencies.zip]
- version = "0.6"
-@@ -446,17 +429,13 @@
- version = "1.0"
+ version = "9"
+@@ -486,14 +469,10 @@
+ version = "2.0.13"
+
+ [dev-dependencies.cc]
+-version = "1.9"
++version = "1.4"
[dev-dependencies.chrono]
-version = "0.4.42"
@@ -140,6 +143,8 @@
[dev-dependencies.filetime]
version = "0.2"
+@@ -503,7 +482,7 @@
+ features = ["write"]
[dev-dependencies.predicates]
-version = "=3.1.0"
@@ -147,13 +152,18 @@
[dev-dependencies.serial_test]
version = "3.1"
-@@ -466,9 +445,6 @@
+@@ -516,14 +495,6 @@
[dev-dependencies.test-case]
version = "3.3.1"
-
-[dev-dependencies.thirtyfour]
--version = "0.36"
+-version = "0.38.1"
+-features = [
+- "reqwest",
+- "rustls",
+-]
+-default-features = false
- [target.'cfg(not(target_os = "freebsd"))'.dependencies.libmount]
- version = "0.1.15"
+ [dev-dependencies.tokio]
+ version = "1"
diff --git a/sccache-test-case-keyword-name.patch b/sccache-test-case-keyword-name.patch
new file mode 100644
index 0000000..2555afb
--- /dev/null
+++ b/sccache-test-case-keyword-name.patch
@@ -0,0 +1,11 @@
+--- a/src/compiler/rust.rs
++++ b/src/compiler/rust.rs
+@@ -3781,7 +3781,7 @@
+ /// `-l` reaches rustc as it was given. In particular a library without a kind must not
+ /// become `dylib`: rustc picks the kind per target (e.g. static with `crt-static`).
+ #[test_case("bar" ; "without kind")]
+- #[test_case("static=bar" ; "static")]
++ #[test_case("static=bar" ; "static kind")]
+ #[test_case("static:-bundle=bar" ; "static with modifiers")]
+ #[test_case("dylib=bar" ; "dylib")]
+ fn test_parse_arguments_link_library_is_passed_unchanged(lib: &str) {
diff --git a/sources b/sources
index 3f91ca3..967af0c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sccache-0.17.0.crate) = 40db4c0abe2302ab9eee2fb8c59681721cdc700daec6b066fed7094cf009270c2f7a2dc165d599b34233153d604f4f827bc598af4290c9c0db6a53967c2c1df5
+SHA512 (sccache-0.20.1.crate) = 8874305c7aac0172b4d5a96c81d9c698e4ae41941c95fda6fdce624425cd43f522d105613ef41f6b06a0bfd8ef3c3fa2eeb014924583c7f83b9723cee968fdf5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-02 8:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 8:21 [rpms/rust-sccache] rawhide: Update to version 0.20.1 Andreas Schneider
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox