RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1947925 - dnf uses Recommends for /usr/bin/sqlite3 if bash-completion and python3-dbus if NetworkManager
Summary: dnf uses Recommends for /usr/bin/sqlite3 if bash-completion and python3-dbus ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: dnf
Version: 9.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: beta
: ---
Assignee: Pavla Kratochvilova
QA Contact: Tomáš Bajer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-09 14:26 UTC by Jan Pazdziora
Modified: 2022-05-17 16:22 UTC (History)
4 users (show)

Fixed In Version: dnf-4.10.0-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 15:55:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:3957 0 None None None 2022-05-17 15:55:12 UTC

Description Jan Pazdziora 2021-04-09 14:26:51 UTC
Description of problem:

RHEL 9 Content Structure and Guidelines state that weak dependencies in BaseOS are allowed, but discouraged.

By using the Recommends weak dependencies especially for packages in @core group (Minimal host installation) or their direct dependencies, the recommended package gets pulled into the installed package set depending on the current configuration of the dnf transaction.

The dnf package Recommends /usr/bin/sqlite3 if bash-completion and python3-dbus if NetworkManager.

If those packages are needed by dnf for correct operation when bash-completion and/or NetworkManager are also installed, Requires should be used.

If /usr/bin/sqlite3 and python3-dbus are essential in minimal host installations, they should be listed in the @core group in the comps file, not pulled in as a weak side-effect of having dnf in @core.

If they are listed primarily for convenience, Suggests might be better option. Or just drop the weak dependency completely.

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

dnf-4.6.0-1.el9.noarch

How reproducible:

Deterministic.

Steps to Reproduce:
1. dnf remove -y /usr/bin/sqlite3 python3-dbus
2. dnf reinstall -y dnf

Actual results:

================================================================================
 Package            Architecture Version              Repository           Size
================================================================================
Reinstalling:
 dnf                noarch       4.6.0-1.el9          beaker-BaseOS       448 k
Installing weak dependencies:
 python3-dbus       x86_64       1.2.16-4.el9         beaker-BaseOS       134 k

Expected results:

Only dnf reinstalled.

Additional info:

Comment 2 Pavla Kratochvilova 2021-11-29 09:20:51 UTC
The /usr/bin/sqlite3 Recommends was originally introduced based on bug 1479330 for correct functioning of bash-completion. But now bash-completion seems to work even without it, so we can remove the dependency.

The python3-dbus Recommends was introduced based on bug 1415711 to decide if we are on metered connection and if so, not download repodata. When python3-dbus is missing, dnf fallbacks to downloading the repodata in any case. So, this dependency is not required, but should be installed by default, therefore, I propose to keep the Recommends dependency in this case.

Comment 3 Pavla Kratochvilova 2021-12-15 12:14:10 UTC
PR: https://github.com/rpm-software-management/dnf/pull/1798

Comment 12 errata-xmlrpc 2022-05-17 15:55:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: dnf), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:3957


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