Bug 2437510 - sccache built without support for most remote storage backends, esp. S3-style storage
Summary: sccache built without support for most remote storage backends, esp. S3-style...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: rust-sccache
Version: 45
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact:
URL:
Whiteboard:
Depends On: 2577066 2419806
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-02-07 14:23 UTC by Marcus Müller
Modified: 2026-11-23 13:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marcus Müller 2026-02-07 14:23:39 UTC
sccache is *the* choice over ccache when one needs a different artifact storage than a local directory (for all cases that are just local directories, ccache works fine). 

Shipping an sccache with at least the S3-style storage feature explicitly disabled (it's enabled in the default cargo build) is hence making the packaging less-than-useful, I'm afraid

Reproducible: Always

Steps to Reproduce:
1. Install sccache package in your CI infrastructure on F43 (whereas on F42, you had to manually install)
2. expect caches to be populated, as with the upstream binaries
3. spend time digging
4. finally run `sccache --help` to see that storage backends are disabled
Actual Results:
no support for s3 or redis

Expected Results:
same s3 support as upstream binaries

Additional Information:
actually costs GNU Radio's CI quite some CPU hours because I expected the Fedora 43 packaging to be feature-comparable to default cargo builds.

Comment 1 Fabio Valentini 2026-02-07 15:46:20 UTC
> I expected the Fedora 43 packaging to be feature-comparable to default cargo builds.

I agree that this is usually a reasonable expectation. In this case, enabling additional storage backends pulls in dozens and dozens of additional dependencies, and adding them to Fedora is work that just has not happened yet.

Comment 2 Andreas Schneider 2026-02-07 18:20:25 UTC
Option A: Package all of sccache requirements first before packaging sccache
Option B: Don't package sccache at all
Option C: Package sccache with the least requirements.

I choose Option C and it took me already quite some time to package opendal and the dependencies for a local working sccache. If you support for S3-style storage in sccache, please help packaging. Looking opendal, rust-crc32c is missing. We seem to have the required reqwuest 0.12 packages. Then we could try to build opendal with s3-service support and then try it in sccache.

Comment 3 Marcus Müller 2026-02-07 18:48:19 UTC
@asn oh absolutely; I frankly failed at making my own RPM for F42 when I wanted to use it, so your effort is super appreciated!

I was just superficially walking through sccache's Cargo.toml and took away from it that with opendal packaging solved, the blocker for the S3 backend was gone. Let me give rust-crc32c a try. Thanks!

Comment 4 Fabio Valentini 2026-02-07 18:51:07 UTC
It was already submitted for review here:
https://bugzilla.redhat.com/show_bug.cgi?id=2419806

Comment 5 Andreas Schneider 2026-02-07 18:56:20 UTC
I will try building once we have rust-crc32c in the distro.

Comment 6 Marcus Müller 2026-02-07 20:00:59 UTC
@asn thanks; I've tried, but just removing "services-s3" from rust2rpm in opendal and running `rust2rpm -r` should fail without the crc32c dependency (and if that new package works, it should succeed with the review COPR repo included in mock), but in fact it seems to build; not sure how to proceed here, because I have no insight into how build features are specified if that doesn't make it fail; the rust2rpm man page has no indication and the spec is blissfully short.

Anyways, as said, very much appreciated that you look into this; my skill level at rust packaging might simply not suffice here.

Comment 7 Andreas Schneider 2026-03-25 08:11:11 UTC
OpenDAL reports:

Problem: conflicting requests
  - nothing provides (crate(reqsign/reqwest_request) > 0.16.5 with crate(reqsign/reqwest_request) < 0.20.0~) needed by rust-opendal+services-s3-devel-0.55.0-2.fc45.noarch from @commandline
  - nothing provides (crate(reqsign/services-aws) > 0.16.5 with crate(reqsign/services-aws) < 0.20.0~) needed by rust-opendal+services-s3-devel-0.55.0-2.fc45.noarch from @commandline

rust-reqsign in Fedora doesn't provide those (yet).

Comment 8 Andreas Schneider 2026-03-25 10:26:30 UTC
Looks like reqsign dropped services-aws in version 0.17:

https://lib.rs/crates/reqsign/versions

Comment 9 Andreas Schneider 2026-03-25 10:34:38 UTC
OpenDAL rewrote the code in the main branch to use:

reqsign-aws-v4 = { version = "3.0.0", default-features = false }
reqsign-core = { version = "3.0.0", default-features = false }
reqsign-file-read-tokio = { version = "3.0.0", default-features = false }

a) We need to wait till those are updated to version 3.0 in Fedora
b) We need a new opendal release

Comment 10 Andreas Schneider 2026-07-30 16:46:19 UTC
I haven't forgotten this.

See https://github.com/mozilla/sccache/pull/2786

Comment 11 Aoife Moloney 2026-11-10 19:11:25 UTC
This message is a reminder that Fedora Linux 43 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 43 on 2026-12-02.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '43'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 43 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 12 Avi Kivity 2026-11-23 12:32:15 UTC
(In reply to Andreas Schneider from comment #10)
> I haven't forgotten this.
> 
> See https://github.com/mozilla/sccache/pull/2786

Apparently merged as part of https://github.com/mozilla/sccache/pull/2715

Comment 13 Marcus Müller 2026-11-23 12:44:00 UTC
Just anti-auto-closure: Still present on F45 and today's rawhide,

podman run --it --rm sh -c fedora:rawhide 'dnf install --refresh -y sccache && sccache --help' | tail -n10
Enabled features:
    S3:        false
    Redis:     false
    Memcached: true
    GCS:       false
    GHA:       false
    Azure:     false
    WebDAV:    true
    OSS:       false
    COS:       false

Comment 14 Andreas Schneider 2026-11-23 13:09:51 UTC
opendal has been split into several packages. So it needs new package reviews etc. The process is slow. I hope to get it done in the next weeks.

https://bugzilla.redhat.com/show_bug.cgi?id=2577066 is looking for review.


Note You need to log in before you can comment on or make changes to this bug.