Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1691402

Summary: rpm: brp-python-bytecompile breaks for new Python 3 packages in RHEL7
Product: Red Hat Enterprise Linux 7 Reporter: Tomas Orsava <torsava>
Component: rpmAssignee: Pavlina Moravcova Varekova <pmoravco>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.7CC: carlwgeorge, lbalhar, mdomonko, ngompa13, pmoravco, torsava
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-4.11.3-39.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 13:11:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1597718, 1639030, 1660563, 1660573    

Description Tomas Orsava 2019-03-21 14:31:36 UTC
Hi,
the brp-python-bytecompile script on RHEL7 has a bug that's affecting the newly added Python 3 packages (see blocked bugs).

I've just noticed that the brp-python-bytecompile script contains an old bug:
When I'm building a Python 3 package, brp-python-bytecompile first checks if the default python interpreter (/usr/bin/python) in installed, and because it isn't it quits. However, it does not need the default python to compile the /usr/lib/python3.6/ files.

The bug was fixed upstream 2 years ago:
https://github.com/rpm-software-management/rpm/commit/a8e51b3bb05c6acb1d9b2e3d34f859ddda1677be

I'll open a PR.



We're adding the new Python 3 packages in RHEL7.7, so it would be great if this could be fixed in the same release as well. If you agree, I'll ask the PM for an ack, and the QE too if you tell me who's the right person.

Comment 1 Tomas Orsava 2019-03-21 14:44:30 UTC
Pull Request: https://src.osci.redhat.com/rpms/rpm/pull-request/10

Comment 6 errata-xmlrpc 2019-08-06 13:11:23 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, 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/RHEA-2019:2259