Bug 1437884 - [RFE] Selectively ignore weak dependency when recommended by specific package
Summary: [RFE] Selectively ignore weak dependency when recommended by specific package
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-31 12:12 UTC by Vít Ondruch
Modified: 2019-06-06 14:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-18 13:45:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1278196 0 unspecified CLOSED dnf installs weak deps on update 2021-02-22 00:41:40 UTC

Internal Links: 1278196

Description Vít Ondruch 2017-03-31 12:12:15 UTC
Description of problem:
Disable installation of specific soft dependency chain. Although there is currently possible to "exclude=python-systemd-doc", this means to exclude such package forever. But I'd like to exclude the soft dependency only if it is pulled in by specific package, e.g. python3-systemd in this case. 

It is quite annoying that I need to exclude such package every time I am updating python3-systemd, but in other cases (I don't have better example in my hand right now) when it is recommended by other package, I might be interested to pull this package in.


Version-Release number of selected component (if applicable):
$ rpm -q dnf
dnf-2.1.0_1-28g5145f58.fc27.noarch


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
The weak dependencies must be disabled again and again.


Expected results:
I'd like to be able to specify that if package A recommends package B, I'd like to always ignore such recommendation. But I might want to consider installation of B when package C recommends it.


Additional info:

Comment 1 Jaroslav Mracek 2017-04-18 13:45:40 UTC
I am sorry Vit, but I have to disappoint you. I have tried to fix the issue in https://github.com/rpm-software-management/dnf/pull/774, but during discussion it appears a problem with too difficult implementation to do selective handling of weak-deps. Unfortunately your request is even more specific that original one in https://bugzilla.redhat.com/show_bug.cgi?id=1278196. Therefore I have to to close it as deferred, therefore in future we can reopen it when we will have possibilities to solve such a complex request.


Note You need to log in before you can comment on or make changes to this bug.