Bug 2546648

Summary: wprof: vendored Rust crates are not declared as bundled(crate(...)) Provides
Product: [Fedora] Fedora Reporter: Michel Lind <michel>
Component: wprofAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: michel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wprof-0.7.1-1.fc46 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-10-14 19:10:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michel Lind 2026-10-06 16:02:21 UTC
wprof vendors its Rust dependencies through three "cargo vendor"
tarballs, and declares none of them:

  Source100: blazesym-%{blazesym_version}-vendor.tar.gz
  Source101: wprof-demangle-%{version}-vendor.tar.gz
  Source102: wprof-wpb-%{version}-vendor.tar.gz

  %cargo_prep -v vendor     (three times, one per vendored component)

  $ fedrq subpkgs -b rawhide -F provides -- wprof | grep -c 'bundled(crate('
  0

The Rust packaging guidelines make this a MUST, and name this exact
consequence as the reason:

  "Whenever vendored / bundled crate dependencies are used (no matter
  which mechanism is used for the purpose), all bundled crate
  dependencies MUST be declared with virtual Provides in the format
  Provides: bundled(crate($crate)) = $version in the subpackage that
  contains the Rust component. For example, these virtual Provides are
  used to determine the impact of security vulnerabilities on packages
  that use vendored Rust dependencies."

  https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_vendored_dependencies

What it costs in practice: a CVE in a vendored crate cannot be judged
against this package at all. Nothing records which version is compiled
into the binary — the provides are absent and the buildroot never had
the crate, because it came out of the vendor tarball — so a security
tracker filed here has to be answered by reading the spec and the
tarball by hand.

The fix should need no manual list, since cargo-rpm-macros generates
the provides:

  %cargo_vendor_manifest

writes cargo-vendor.txt (every vendored crate and its version), and
shipping that file as %license makes the provides appear by itself, via

  /usr/lib/rpm/fileattrs/cargo_vendor.attr
    %__cargo_vendor_provides /usr/bin/cargo2rpm parse-vendor-manifest
    %__cargo_vendor_path     ^%{_defaultlicensedir}(/[^/]+)+/cargo-vendor.txt$

One manifest per vendored component (blazesym, demangle, wpb).

For contrast, retsnoop — which bundles libbpf and bpftool rather than
crates — declares its bundles and builds its Rust side against packaged
crates, so it is not affected by this.

Comment 1 Fedora Update System 2026-10-14 19:07:06 UTC
FEDORA-2026-75b37e8b56 (wprof-0.7.1-1.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-75b37e8b56

Comment 2 Fedora Update System 2026-10-14 19:10:13 UTC
FEDORA-2026-75b37e8b56 (wprof-0.7.1-1.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.