mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-15 03:20:43 +02:00
gnu: Python 2: Fix CVE-2021-3177.
* gnu/packages/patches/python-2.7-CVE-2021-3177.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/python.scm (python-2.7)[replacement]: New field. (python-2.7/fixed): New variable.
This commit is contained in:
parent
c48c69194f
commit
3905580180
3 changed files with 167 additions and 0 deletions
|
@ -107,6 +107,7 @@
|
|||
(define-public python-2.7
|
||||
(package
|
||||
(name "python2")
|
||||
(replacement python-2.7/fixed)
|
||||
(version "2.7.17")
|
||||
(source
|
||||
(origin
|
||||
|
@ -350,6 +351,14 @@ data types.")
|
|||
(properties '((cpe-name . "python")))
|
||||
(license license:psfl)))
|
||||
|
||||
(define python-2.7/fixed
|
||||
(package
|
||||
(inherit python-2.7)
|
||||
(source (origin
|
||||
(inherit (package-source python-2.7))
|
||||
(patches (append (search-patches "python-2.7-CVE-2021-3177.patch")
|
||||
(origin-patches (package-source python-2.7))))))))
|
||||
|
||||
;; Current 2.x version.
|
||||
(define-public python-2 python-2.7)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue