gnu: perl: Fix CVE-2017-6512 in File::Path.

* gnu/packages/perl.scm (perl)[replacement]: New field.
(perl/fixed): New variable.
* gnu/packages/patches/perl-file-path-CVE-2017-6512.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
This commit is contained in:
Leo Famulari 2017-06-05 22:09:13 -04:00
parent 9c8fb06e4c
commit 15df12beae
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08
3 changed files with 187 additions and 0 deletions

View file

@ -51,6 +51,7 @@
;; Yeah, Perl... It is required early in the bootstrap process by Linux.
(package
(name "perl")
(replacement perl/fixed)
(version "5.24.0")
(source (origin
(method url-fetch)
@ -147,6 +148,18 @@
(home-page "http://www.perl.org/")
(license gpl1+))) ; or "Artistic"
(define perl/fixed
(package
(inherit perl)
(replacement #f)
(source
(origin
(inherit (package-source perl))
(patches
(append
(origin-patches (package-source perl))
(search-patches "perl-file-path-CVE-2017-6512.patch")))))))
(define-public perl-algorithm-c3
(package
(name "perl-algorithm-c3")