Bug 1184808
| Summary: | [weak deps] help on usage of weak dependencies | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Parag Nemade <pnemade> |
| Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 22 | CC: | akozumpl, hhorak, jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-07-14 09:50:14 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
Parag Nemade
2015-01-22 10:20:45 UTC
oops let me correct the link Copr builds -> https://copr.fedoraproject.org/coprs/pnemade/weakdeps/builds/ Thanks for the report and workground. Seems like weak deps tags are not contained in metadata from COPR. Moreover after downloading RPM packages itself Supplements tag is ignored during resolution in depsolver (tag is saved in internal structure) -> will will look at that. I did some testing on using supplements tag. If a package contains only one supplements in spec file then it works but If I need more complex way of using supplements like in foobar.spec ( here consider if xyz already installed then install abc also) supplements: abc AND xyz then its not working. I then split this as supplements: abc supplements: xyz still then "dnf repoquery --supplements foobar" failed to show output as abc yyz Rich dependencies are not supported even in RPM yet. Would you mind sharing the code (PR) implementing `--supplements` option so we can figure out whats wrong here? I first need to understand if following usage is correct? supplements: abc AND xyz Using AND to make sure if xyz is already installed on the system then only install abc. Not sure how to achieve this. I have never seen AND used for any Requires: or Provides: tag. This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 (In reply to Parag from comment #5) > I first need to understand if following usage is correct? > supplements: abc AND xyz it should be correct > Using AND to make sure if xyz is already installed on the system then only > install abc. Not sure how to achieve this. I have never seen AND used for > any Requires: or Provides: tag. AND is part of rich dependencies - not already in current rpm AFAIK but it's supported by libsolv. The guideline with use cases should be revealed soon, by Florian Festi. The bug request is for [1]. I believe this should be closed. At the time of creation of this report, the Fedora servers didn't support weak deps (in rpm from f21). Now dnf should handle them from COPR or from official Fedora repo. For rich dependencies you would have to probably wait. [1] https://fedoraproject.org/wiki/Packaging:WeakDependencies |