python3-pip: fix CVE-2021-3572

Backport the body of a fix for CVE-2021-3572 since hardknott carries
20.0.2, and the delta between it and the latest 21.1.3 is more than just
bugfixes.

CVE: CVE-2021-3572

(From OE-Core rev: fb7a2af241795b82f121381cea6f4b56ce948ebf)

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Trevor Gamblin
2021-07-22 16:43:29 -04:00
committed by Richard Purdie
parent 14c5392fde
commit ad768575b1
2 changed files with 43 additions and 1 deletions

View File

@@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8ba06d529c955048e5ddd7c45459eb2e"
DEPENDS += "python3 python3-setuptools-native"
SRC_URI += "file://0001-change-shebang-to-python3.patch"
SRC_URI += "file://0001-change-shebang-to-python3.patch \
file://0001-Don-t-split-git-references-on-unicode-separators.patch \
"
SRC_URI[md5sum] = "7d42ba49b809604f0df3d55df1c3fd86"
SRC_URI[sha256sum] = "7db0c8ea4c7ea51c8049640e8e6e7fde949de672bfa4949920675563a5a6967f"