On 15. 03. 21 10:45, Felix Schwarz wrote:
Hi,
I'm trying to make sense of a bug report a user submitted via bugzilla and I
think the root cause might be boolean dependencies.
So basically python3-urllib3 was not present on the user's system even though
python3-requests was installed (and of course triggered an exception when used).
Now I'm trying to understand how boolean dependencies work (in F33). It seems
"rpm" let's me uninstall python3-urllib3 even though python3-requests is
installed and requires it:
# rpm -q --requires python3-requests
((python3.9dist(urllib3) < 1.25 or python3.9dist(urllib3) > 1.25) with
(python3.9dist(urllib3) < 1.25.1 or python3.9dist(urllib3) > 1.25.1) with
python3.9dist(urllib3) < 1.26 with python3.9dist(urllib3) >= 1.21.1)
(python3.9dist(chardet) < 4 with python3.9dist(chardet) >= 3.0.2)
(python3.9dist(idna) < 3 with python3.9dist(idna) >= 2.5)
python(abi) = 3.9
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1
rpmlib(RichDependencies) <= 4.12.0-1
# rpm -q --whatrequires 'python3.9dist(urllib3)'
python3-requests-2.24.0-3.fc33.noarch
# rpm -e python3-urllib3
(no output, package is removed)
Is that the expected outcome?
I've tried this as well.
It is not possible to remove python3-urllib3 with dnf without also removing
python3-requests. That behaves as expected, good.
However, it is *possible to remove python3-urllib3 with rpm --erase*.
Other dependent on packages cannot be removed with rpm -q:
# rpm -e python3-py
error: Failed dependencies:
python3.9dist(py) >= 1.4.17 is needed by (installed)
python3-tox-3.19.0-1.fc33.noarch
Hence, I believe this is a bug in rpm --erase.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure