[Bug 2310497] Review Request: rust-rdrand - Rust library for x86 RDRAND/RDSEED instructions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2310497



--- Comment #12 from Fabio Valentini <decathorpe@xxxxxxxxx> ---
> ExclusiveArch: x86_64

This is the correct way to handle architecture-specific stuff for
*applications*, but for Rust crates, they're a bit different ...

Due to the way repositories are set up in koji, noarch packages are present in
repos for *all* architectures.
And since Rust library packages (rust-*-devel) *are* noarch packages, they need
to have satisfiable dependencies regardless of architecture.

In this case, I would recommend to use a rust2rpm.toml config file (see
rust2rpm.toml(5) man page) with these contents, and to regenerate the package:

```
[package]
supported-arches = ["x86_64"]
```

That setting causes rust2rpm to generate a .spec file that builds the library
on all architectures, but only actually runs "cargo build" and "cargo test" on
supported architectures. This works around the problem of
architecture-independent noarch packages in fedora infrastructure, and avoids
creating broken dependencies.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2310497

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202310497%23c12

-- 
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux