Bug 1255206

Summary: Consider adding installed-files.txt during build
Product: Red Hat Enterprise Linux 7 Reporter: Ian Wienand <iwienand>
Component: python-cffiAssignee: Pavel Picka <ppicka>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: ksiddiqu, mkosek, ppicka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-cffi-1.6.0-5.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 04:45:08 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:
Attachments:
Description Flags
change to spec to add installed-files.txt
none
example of uninstalling cffi with the installed-files.txt file present
none
evidence none

Description Ian Wienand 2015-08-20 01:20:27 UTC
Created attachment 1065060 [details]
change to spec to add installed-files.txt

First up, I understand mixing pip & packages is not great; but it's a reality of upstream openstack testing & I do think there is room for packages to help out.

I noticed that when doing "pip uninstall cffi" (i.e., what happens before "pip install cffi" to get a later version) the cffi .so is left behind.  This is because pip has no idea it exists; it is just removing the cffi/* and egg directories.

Due to *another* bug in pip [1] we ended up with two cffi .so's on the system with bad results.  After the fix for [1], pip should overwrite the old file ... but it still seems like it would be better if "pip remove" got rid of it.

It seems that with just adding a --record tag to the install, we could ship an installed-files.txt which would help pip to remove everything correctly.

Interested to know what you think...

[1] https://github.com/pypa/pip/pull/3037

Comment 1 Ian Wienand 2015-08-20 01:21:51 UTC
Created attachment 1065061 [details]
example of uninstalling cffi with the installed-files.txt file present

Comment 5 Pavel Picka 2016-09-19 11:41:14 UTC
Created attachment 1202454 [details]
evidence

Verified 

1.6.0-5

Comment 7 errata-xmlrpc 2016-11-04 04:45:08 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://rhn.redhat.com/errata/RHEA-2016-2371.html