Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 888550 Details for
Bug 927818
distutils-r1.eclass: defang pip uninstall by removing RECORD
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
distutils-r1.eclass: remove wheel metadata that is bad for distros
0001-distutils-r1.eclass-remove-wheel-metadata-that-is-ba.patch (text/plain), 1.48 KB, created by
Eli Schwartz
on 2024-03-25 14:45:54 UTC
(
hide
)
Description:
distutils-r1.eclass: remove wheel metadata that is bad for distros
Filename:
MIME Type:
Creator:
Eli Schwartz
Created:
2024-03-25 14:45:54 UTC
Size:
1.48 KB
patch
obsolete
>From d2e8ae0b4847a421d7842970285e7b59a703ac58 Mon Sep 17 00:00:00 2001 >From: Eli Schwartz <eschwartz93@gmail.com> >Date: Sat, 9 Mar 2024 22:56:54 -0500 >Subject: [PATCH] distutils-r1.eclass: remove wheel metadata that is bad for > distros > >In particular, RECORD is effectively hostile. It's the equivalent of >portage CONTENTS, but read by pip to figure out how to uninstall a >package. For obvious reasons, pip needs this functionality when >installing packages itself. But allowing pip the authority to uninstall >a package managed by portage is... not good. At all. > >Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> >--- > eclass/distutils-r1.eclass | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass >index 9be994595529..37274ca7102d 100644 >--- a/eclass/distutils-r1.eclass >+++ b/eclass/distutils-r1.eclass >@@ -1334,7 +1334,10 @@ distutils_wheel_install() { > printf '%s\n' "${cmd[*]}" > "${cmd[@]}" || die "Wheel install failed" > >- # remove installed licenses >+ # remove installed: >+ # - licenses >+ # - RECORD, used solely by pip to know how to uninstall it >+ # behind our back > find "${root}$(python_get_sitedir)" -depth \ > \( -path '*.dist-info/COPYING*' \ > -o -path '*.dist-info/LICENSE*' \ >@@ -1342,6 +1345,7 @@ distutils_wheel_install() { > -o -path '*.dist-info/license_files' \ > -o -path '*.dist-info/licenses/*' \ > -o -path '*.dist-info/licenses' \ >+ -o -path '*.dist-info/RECORD' \ > \) -delete || die > } > >-- >2.43.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 927818
: 888550 |
888561