Bug 1589022 - DNF installs undefined weak dependencies
Summary: DNF installs undefined weak dependencies
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 28
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: 2018-06-08 08:54 UTC by Antoine Cotten
Modified: 2018-06-08 10:39 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-06-08 10:29:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Output of 'rpm -qR firefox' (4.51 KB, text/plain)
2018-06-08 08:55 UTC, Antoine Cotten
no flags Details
Output of 'dnf repoquery -l compat-ffmpeg28' (6.28 KB, text/plain)
2018-06-08 08:56 UTC, Antoine Cotten
no flags Details
Output of 'dnf --assumeno downgrade firefox' (986 bytes, text/plain)
2018-06-08 08:59 UTC, Antoine Cotten
no flags Details

Description Antoine Cotten 2018-06-08 08:54:42 UTC
Description of problem:

For given packages, DNF suggests the installation of (possibly cached?) weak dependencies which are not defined in the package itself.

I only have the problem with the 'firefox' package which leads to the installation of 'compat-ffmpeg28' (from rpmfusion), but I assume it could equally apply to other packages.


Version-Release number of selected component (if applicable):

dnf-2.7.5-12.fc28.noarch


How reproducible:

On every upgrade/downgrade operation.


Steps to Reproduce:

$ dnf [upgrade|downgrade] firefox


Actual results:

DNF installs 'compat-ffmpeg28' on top of upgrading 'firefox'.


Expected results:

DNF upgrades 'firefox' alone since the package does not list 'compat-ffmpeg28' as a dependency.


Additional info:

I installed and removed 'compat-ffmpeg28' manually in the past.

Comment 1 Antoine Cotten 2018-06-08 08:55:17 UTC
Created attachment 1448994 [details]
Output of 'rpm -qR firefox'

Comment 2 Antoine Cotten 2018-06-08 08:56:07 UTC
Created attachment 1448995 [details]
Output of 'dnf repoquery -l compat-ffmpeg28'

Comment 3 Antoine Cotten 2018-06-08 08:59:16 UTC
Created attachment 1448998 [details]
Output of 'dnf --assumeno downgrade firefox'

Comment 4 Antoine Cotten 2018-06-08 09:12:58 UTC
Extra note:

I set the 'install_weak_deps' DNF option to False on every upgrade of the 'firefox' package. Without it, the 'compat-ffmpeg28' package is suggested on every update.


$ rpm -q firefox 
firefox-60.0.1-5.fc28.x86_64


$ dnf upgrade firefox --setopt=install_weak_deps=False
Last metadata expiration check: 0:18:39 ago on Fri 08 Jun 2018 10:05:10 AM CEST.
Dependencies resolved.
========================================================================================================================
 Package                    Arch                      Version                          Repository                  Size
========================================================================================================================
Upgrading:
 firefox                    x86_64                    60.0.1-6.fc28                    updates                     90 M

Transaction Summary
========================================================================================================================
Upgrade  1 Package

Total download size: 90 M

Comment 5 Marek Blaha 2018-06-08 10:29:25 UTC
I think the key is this:

$ dnf repoquery --supplements compat-ffmpeg28
firefox

There is backward dependency of compat-ffmpeg28 on firefox.

Comment 6 Antoine Cotten 2018-06-08 10:39:15 UTC
Fair point Marek, I wouldn't have thought the upgrade process also considered dependencies in that direction. Thanks for the pointer, much appreciated.


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