Bug 1902420 - [rich dependencies] rpm allows removal of a required package (but dnf doesn't)
Summary: [rich dependencies] rpm allows removal of a required package (but dnf doesn't)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1938581
TreeView+ depends on / blocked
 
Reported: 2020-11-28 17:24 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2022-05-12 18:16 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-05-12 18:16:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2020-11-28 17:24:02 UTC
Description of problem:
rpm allows removing python3-chardet, which is required by python3-requests. dnf correctly resolves the dependencies and asks for removal of other dependent packages.

Version-Release number of selected component (if applicable):
rpm-4.16.0-1.fc33.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. dnf install python3-requests
2. rpm -e python3-chardet
3. rpm -V python3-requests

Actual results:
# rpm -q python3-requests
python3-requests-2.24.0-3.fc33.noarch
# rpm -e python3-chardet
# rpm -V python3-requests
Unsatisfied dependencies for python3-requests-2.24.0-3.fc33.noarch:
	(python3.9dist(chardet) < 4 with python3.9dist(chardet) >= 3.0.2) is needed by (installed) python3-requests-2.24.0-3.fc33.noarch

Expected results:
# rpm -e python3-chardet
error: Failed dependencies:
(python3.9dist(chardet) < 4 with python3.9dist(chardet) >= 3.0.2) is needed by (installed) python3-requests-2.24.0-3.fc33.noarch

Additional info:
I'm guessing it's a bug in rich dependencies processing in rpm.

Comment 1 Felix Schwarz 2021-03-15 10:28:46 UTC
The same problem exists for python3-requests and python3-urllib3 in F33.

Comment 2 Panu Matilainen 2021-03-15 10:46:45 UTC
> # rpm -e python3-chardet
> # rpm -V python3-requests
> Unsatisfied dependencies for python3-requests-2.24.0-3.fc33.noarch:
> 	(python3.9dist(chardet) < 4 with python3.9dist(chardet) >= 3.0.2) is needed
> by (installed) python3-requests-2.24.0-3.fc33.noarch

Yup, clearly both cannot be right.

@mls, if you can take a look at this at some point, I'd appreciate.

Comment 3 Michael Schröder 2021-06-10 13:04:21 UTC
This has been fixed with the following commit:

https://github.com/rpm-software-management/rpm/commit/aa57fb568c14b33265e1f9e44665b16818a2b539

Comment 4 Ben Cotton 2021-11-04 13:55:56 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
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 '33'.

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 33 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.

Comment 5 Ben Cotton 2021-11-04 14:25:21 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
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 '33'.

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 33 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.

Comment 6 Ben Cotton 2021-11-04 15:23:00 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
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 '33'.

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 33 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.

Comment 7 Miro Hrončok 2021-11-04 16:51:57 UTC
This seems to have been fixed on rawhide and F35.


But it is still relevant on Fedora 34:

<mock-chroot> sh-5.1# rpm -e python3-chardet
<mock-chroot> sh-5.1# rpm -V python3-requests
Unsatisfied dependencies for python3-requests-2.25.1-1.fc34.noarch:
	(python3.9dist(chardet) < 5 with python3.9dist(chardet) >= 3.0.2) is needed by (installed) python3-requests-2.25.1-1.fc34.noarch

Comment 8 Panu Matilainen 2021-11-05 12:27:23 UTC
Yup, this would be rpm 4.16.1 material, if we could only get around to cutting that release...

Comment 9 Ben Cotton 2022-05-12 16:22:00 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
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
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 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 Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 10 Miro Hrončok 2022-05-12 18:16:23 UTC
This is fixed in F35.


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