Bug 1903708 - New resolver will uninstall RPM-installed software
Summary: New resolver will uninstall RPM-installed software
Keywords:
Status: CLOSED DUPLICATE of bug 1893470
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pip
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Python Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-02 16:39 UTC by Petr Viktorin (pviktori)
Modified: 2020-12-08 12:05 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-08 12:05:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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