Bug 2161128
Summary: | The feature based dependency does not support format `[dependencies.foo]` | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Gris Ge <fge> |
Component: | rust-packaging | Assignee: | Rust SIG <rust-sig> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | decathorpe, igor.raits, rust-sig |
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: | 2023-01-16 20:25:32 UTC | 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
Gris Ge
2023-01-16 03:43:19 UTC
The workaround I use is : ``` [features] default = ["query_apply"] query_apply = ["dep:nispor"] ``` Then manually define `Requires: (crate(nispor/default) >= 1.2.9 with crate(nispor/default) < 2.0)` The problem is not `[dependencies.foo]`, but `["dep:nispor"]` format. It's not yet supported by our tools, but I'm working on it. *** This bug has been marked as a duplicate of bug 2152697 *** This should be fixed when generating a spec file with rust2rpm >= 24 and building with cargo-rpm-macros >= 24, can you confirm that? Sorry for the late response. Yes the `dep:<opt_dep_name` work as expected. Thank you! |