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

Ben Beasley <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Status|NEW                         |ASSIGNED
              Flags|                            |fedora-review?
           Assignee|[email protected]    |[email protected]



--- Comment #2 from Ben Beasley <[email protected]> ---
(In reply to Andreas Schneider from comment #0)
> rust2rpm.toml:
> 
> [features]
> hide = [
>     # Not packaged: rust-defmt
>     "defmt",
> ]

This was a good idea, but you still have installability problems:

Problem: conflicting requests
  - nothing provides crate(zlink-core/defmt) = 0.1.1 needed by
rust-zlink-core+embedded-devel-0.1.1-1.fc44.noarch from @commandline

This is the kind of thing that the rust2rpm.toml(5) man page warns about:

> NOTE: Care needs to be taken to only "hide" features / optional dependencies 
> that are not
> dependencies of other "non-hidden" features, otherwise the subpackages for 
> the dependent
> features will have unsatisfiable dependencies. All features that are marked 
> as "hidden"
> by this setting must be "unreachable" via feature dependencies from any 
> feature
> subpackages that are still present in the generated spec file. In some 
> circumstances,
> the only way to cleanly handle removal of unused non-default features is to 
> patch
> Cargo.toml instead.

In this case, looking at Cargo.toml.orig, you should be able to get away with
hiding defmt if you also hide the embedded feature.

[features]
hide = [
    # Not packaged: rust-defmt
    "defmt",
    # Requires the defmt feature
    "embedded",
]


-- 
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=2400480

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

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to