Bug 1903708

Summary: New resolver will uninstall RPM-installed software
Product: [Fedora] Fedora Reporter: Petr Viktorin (pviktori) <pviktori>
Component: python-pipAssignee: Python Maintainers <python-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: metherid, mhroncok, ncoghlan, python-sig, slavek.kabrda, tflink, TicoTimo, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-08 12:05:54 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:

Description Petr Viktorin (pviktori) 2020-12-02 16:39:44 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1550368#c24 adds a patch that prevents pip from removing software from /usr/lib.

That will need to be reimplemented for pip's new resolver (default since 20.3). Either we reimplement the patch, or we ensure that RPMs contain no RECORD files and pip honors that.

Comment 1 Miro HronĨok 2020-12-02 17:42:27 UTC
> Either we reimplement the patch, or we ensure that RPMs contain no RECORD files and pip honors that.

Potentially problematic things with RECORD-less RPMs:

 - egg-infos don't have RECORDs and pip wipes packages with them happily
 - upgrades (currently, it's possible to upgrade a Python package into /usr/local/lib without uninstalling the one in /usr/lib)

Comment 2 Petr Viktorin (pviktori) 2020-12-08 12:05:54 UTC
I now see that this needs to be done together with the pip update. Sorry for the noise.

*** This bug has been marked as a duplicate of bug 1893470 ***