Bug 1043397

Summary: RPM packages built without .pyc/.pyo files
Product: Red Hat Enterprise Virtualization Manager Reporter: Yedidyah Bar David <didi>
Component: Build SubsystemAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, alonbl, iheim, oschreib, pstehlik, Rhev-m-bugs, sbonazzo, scohen, yeylon
Target Milestone: ---Keywords: AutomationBlocker, Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: is28 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:17:41 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: 1049022    

Description Yedidyah Bar David 2013-12-16 08:32:28 UTC
Description of problem:

See summary. This causes the following problem:

- packages installed
- engine-setup ran - this causes python to create .pyc/.pyo files
- engine-cleanup
- yum remove
This does not remove the pyc/pyo files as they were not part of the package
- yum install some other version, where some of the files/directories from the old version are not included in the new one
This will leave the old pyc/pyo files behind, and so they might get used.

Solved upstream.

Comment 1 Yedidyah Bar David 2013-12-16 08:34:54 UTC
Note: The reason we did not notice it very much so far is that most of our build machines have the package 'redhat-rpm-config' installed which has hooks for rpmbuild that cause it to build the pyc/pyo files anyway.

Comment 2 Sandro Bonazzola 2013-12-16 16:27:10 UTC
patch merged on upstream master and 3.3 branches

Comment 3 Jiri Belka 2014-01-08 16:59:58 UTC
ok, is30.

Comment 4 Itamar Heim 2014-01-21 22:17:41 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:24:13 UTC
Closing - RHEV 3.3 Released