Bug 1167881
Summary: | [RFE] DNF group install should automatically exclude packages that conflict and are marked as "optional" or "default" in comps | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Stephen Gallagher <sgallagh> |
Component: | dnf | Assignee: | Michal Luscon <mluscon> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 21 | CC: | akozumpl, awilliam, ignatenko, jsilhan, jzeleny, mattdm, mls, mluscon, pnemade, pspacek, tim.lauridsen |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-04 21:10:49 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: | |||
Bug Depends On: | 1146487, 1167719 | ||
Bug Blocks: |
Description
Stephen Gallagher
2014-11-25 14:53:46 UTC
After conversation in IRC, I realize I need to clarify the "Expected results" as it was apparently ambiguous. The precondition is this: a user has installed a system using Fedora Workstation. This means that they already have installed the environment group "Fedora Workstation", which includes a mandatory package named "fedora-release-workstation". The user has decided that they also want the packages from the "Development and Creative Workstation" environment group. This group contains the package "fedora-release-nonproduct" which conflicts with "fedora-release-workstation". The "Development and Creative Workstation" environment group lists "fedora-release-nonproduct" as "<packagereq type=default>". The expected outcome here is that all of the packages from the "Development and Creative Workstation" environment group should be installed *except* for "fedora-release-nonproduct" due to its conflict with "fedora-release-workstation". One problem I can see is that it would require one or more additional dependency resolving resulting in more complex code base just to work around the real cause. As Radek said automatic excluding of packages would led to wrong design and harder maintainability of DNF. OTOH some other bugs (bug 1114422) request running solver twice. Michael, does libsolv have some SOLVABLE_* flag that will try to install package if possible otherwise it will just skip it and continue? Something like forcebest for solvables so mandatory packages gets always installed. You can use SOLVER_WEAK in the job. This tells libsolv that it can silently ignore the job if it is impossible to fulfill. Thanks for response, Michael. So we can solve this bug pretty easy. We should add "optional=False" argument to hawkey.Goal.install method and inside do whats in comment 4. *** Bug 1199653 has been marked as a duplicate of this bug. *** Implemented in https://github.com/rpm-software-management/dnf/pull/228 This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Per #c7 this ought to be fixed in current releases. |