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 1342617 - rpmbuild: brp-python-bytecompile is compiling files it shouldn't
Summary: rpmbuild: brp-python-bytecompile is compiling files it shouldn't
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florian Festi
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-03 16:53 UTC by Kaleb KEITHLEY
Modified: 2019-01-13 05:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-13 05:55:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1341010 0 unspecified CLOSED REBUILD of glusterfs-3.7.9-6.el7rhgs.src.rpm for x86_64 is failing 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1341294 0 unspecified CLOSED build: RHEL7 unpackaged files /var/lib/glusterd/hooks/.../S57glusterfind-delete-post.{pyc,pyo} 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1341295 0 unspecified CLOSED build: RHEL7 unpackaged files /var/lib/glusterd/hooks/.../S57glusterfind-delete-post.{pyc,pyo} 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1341296 0 unspecified CLOSED build: RHEL7 unpackaged files /var/lib/glusterd/hooks/.../S57glusterfind-delete-post.{pyc,pyo} 2021-02-22 00:41:40 UTC

Internal Links: 1341010 1341294 1341295 1341296

Description Kaleb KEITHLEY 2016-06-03 16:53:26 UTC
Description of problem:

The glusterfs package has a .py symlink in

  ($buildroot)/var/lib/glusterd/hooks/...

Specifically it's a symlink to a .py installed in ($buildroot)/usr/libexec/glusterfs/glusterfind/...

When rpmbuild runs brp-python-bytecompile during an rpmbuild on RHEL6 and Fedora 23 & 24, this file in /usr/libexec is found and byte-compiled, and the symlink in ($buildroot)/var/lib/glusterd/hooks/... is not; which is okay, that's what we want.

But on RHEL7, the .py file is found in both locations and is byte-compiled in both locations, and we end up with unwanted .pyc and .pyo files in ($buildroot)/var/lib/glusterd/hooks/...

If I use the brp-python-bytecompile script from Fedora on RHEL7, then the extra .pyc and .pyo files are not created.


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

rpm-build-4.11.3-17.el7.x86_64

How reproducible:

build glusterfs.el7 package on real RHEL7(.2). Don't use mock on Fedora or RHEL6. rpmbuild fails due to installed but unpackaged files.


Steps to Reproduce:
1.
2.
3.

Actual results:

extra unwanted .pyc and .pyo files in /var/lib/glusterd/hooks/...

Expected results:

no extra .pyc and .pyo files in /var/lib/glusterd/hooks/...


Additional info:

Comment 3 Karel Srot 2017-10-18 18:51:16 UTC
Is there already a path available?

Comment 4 Karel Srot 2017-10-19 06:26:09 UTC
I mean the patch.


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