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 1916172 - The pythonX.Ydist() generator adds provides from dist-info/egg-info/egg dirs in nested directories of site-packages
Summary: The pythonX.Ydist() generator adds provides from dist-info/egg-info/egg dirs ...
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python-rpm-generators
Version: 8.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.4
Assignee: Tomas Orsava
QA Contact: Lukáš Zachar
Depends On:
TreeView+ depends on / blocked
Reported: 2021-01-14 11:53 UTC by Miro Hrončok
Modified: 2021-11-10 01:39 UTC (History)
3 users (show)

Fixed In Version: python-rpm-generators-5-7.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2021-11-09 18:50:38 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4309 0 None None None 2021-11-09 18:50:39 UTC

Description Miro Hrončok 2021-01-14 11:53:03 UTC
We have discovered that the Python dist generator generates provides from too many directories. E.g. with the following file list:


It provides:

python3.9dist(apipkg) = 1.4
python3.9dist(iniconfig) = 1.0.0
python3.9dist(py) = 1.9.0

In this case, we should probably remove the inner dist-info directories, however there are other cases (such as packaged test data etc.). E.g. python39-test provides:

  python3.6dist(example) = 21.12
  python3dist(example) = 21.12

Because it has:


This is obviously dangerous.

In Fedora, this was fixed by:


(Only the diff of pythondist.attr is relevant for this bugzilla.)

That fix is the correct thing to do: The provides should only be generated for dist-info/egg-info/egg from site-packages, not below.

Comment 4 Miro Hrončok 2021-07-22 08:50:47 UTC
I've verified that the fix does not break any regular provides. All (~300) non-modular RHEL 8 Python packages that I was able to build were tested.

Comment 12 errata-xmlrpc 2021-11-09 18:50:38 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 (python-rpm-generators bug fix and enhancement update), and where to find the updated
files, follow the link below.

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


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