Bug 2180042

Summary: unbundle cbindgen: latest version is available from Fedora repos
Product: [Fedora] Fedora Reporter: Fabio Valentini <decathorpe>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: MODIFIED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: erack, gecko-bugs-nobody, jhorak, klaas, pjasicek, rstrode, sandmann, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Fabio Valentini 2023-03-20 15:41:37 UTC
It looks like firefox bundles cbindgen + its dependencies just to build the "cbindgen" binary, which is then only used during the build process but not shipped.

This should not be necessary: cbindgen has been packaged for Fedora for a while, and the latest version is available from the repositories (the "cbindgen" package provides "/usr/bin/cbindgen"):
https://src.fedoraproject.org/rpms/rust-cbindgen/

Dropping the vendor tarball for cbindgen + its dependencies and using /usr/bin/cbindgen from the cbindgen package directly should also slightly reduce build times for firefox (on the order of ~15 minutes).

Comment 1 Martin Stransky 2023-03-21 09:46:49 UTC
Do you mind to attach a patch for it?
Thanks.

Comment 2 Fabio Valentini 2023-03-22 23:20:33 UTC
I can try :)

Comment 3 Fedora Release Engineering 2023-08-16 07:12:01 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.