#188 rust2rpm: warn when attempting to package certain blocklisted crates (i.e. winapi)?
Closed: Fixed 23 days ago by decathorpe. Opened 4 months ago by decathorpe.

It's now happened mutliple times that new packagers have attempted to package winapi, winapi-i686-pc-windows-gnu, or winapi-x86_64-pc-windows-gnu crates. This is almost certainly the wrong thing to do, unless they actually want to cross-compile windows binaries from inside the Fedora RPM package build system. Instead, these dependencies should be patched out from the package that depends on them (or, as soon as the target-specific dependency stripping is implemented), this should not happen anymore).

Maybe we could add at least those three crates to a blocklist, and refuse to run rust2rpm for them unless a --force flag is specified or something?


I think this issue should be solved with upcoming rust2rpm v22, since it will automatically remove dependencies for "foreign" targets.

Metadata Update from @decathorpe:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

23 days ago

Login to comment on this ticket.

Metadata