Description of problem: When trying to uninstall whole python27 collection, there seem to be leftovers. Caught by /CoreOS/scl-utils/Sanity/general-ownership test Related to new pytho27-python-pip package. But reproduced only on RHEL-7! Version-Release number of selected component (if applicable): python27-python-pip-7.1.0-1.el7 Steps to Reproduce: 1. try to remove whole collection Actual results: :: [ FAIL ] :: No files left after the yum remove :: [ 00:49:53 ] :: /opt/rh/python27/root/usr/share/licenses Expected results: No files present. Additional info: Directory /opt/rh/python27/root/usr/share/licenses is not removed. Content of directory: # ll /opt/rh/python27/root/usr/share/licenses drwxr-xr-x. 2 root root 4096 May 6 08:52 python27-python-pip-7.1.0
Full test log can be found here: http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2016/05/13291/1329159/2704218/40857240/TESTOUT.log
The issue here (and the similar one that was opened for rh-python35-python-pymongo) is that rpm-4.11.3 introduced the %license tag for RHEL 7, however scl-utils-build package was not modified in regards to the addition of %license and %_licensedir macros. As a result the macros are being expanded but the directories are not owned by the collection. This should be fixed in scl-utils-build but for the moment the workaround for that would be to use the %doc tag for the license files.
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/RHSA-2016:1166