gnu: patch: Update to 2.7.4.

* gnu/packages/base.scm (patch): Update to 2.7.4.  Remove
  'replacement'.  Remove outdated comment.
  (patch-2.7.4, patch-CVE-2015-1196): Remove.
This commit is contained in:
Ludovic Courtès 2015-02-11 11:23:46 +01:00
parent d5b3de6af2
commit f6408bc584
1 changed files with 11 additions and 32 deletions

View File

@ -147,32 +147,6 @@ standard utility.")
(define-public patch (define-public patch
(package (package
(name "patch") (name "patch")
(version "2.7.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnu/patch/patch-"
version ".tar.xz"))
(sha256
(base32
"1sqckf560pzwgniy00vcpdv2c9c11s4cmhlm14yqgg8avd3bl94i"))))
(build-system gnu-build-system)
(native-inputs `(("ed", ed)))
;; TODO: When cross-compiling, add this:
;; '(#:configure-flags '("ac_cv_func_strnlen_working=yes"))
(synopsis "Apply differences to originals, with optional backups")
(description
"Patch is a program that applies changes to files based on differences
laid out as by the program \"diff\". The changes may be applied to one or more
files depending on the contents of the diff file. It accepts several
different diff formats. It may also be used to revert previously applied
differences.")
(license gpl3+)
(replacement patch-CVE-2015-1196)
(home-page "http://savannah.gnu.org/projects/patch/")))
(define-public patch-2.7.4
(package
(inherit patch)
(version "2.7.4") (version "2.7.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
@ -181,12 +155,17 @@ differences.")
(sha256 (sha256
(base32 (base32
"02gikxjvcxysr4l65c8vivgz62xmalp0av5ypzff8vqhrq3vpb0f")))) "02gikxjvcxysr4l65c8vivgz62xmalp0av5ypzff8vqhrq3vpb0f"))))
(replacement #f))) (build-system gnu-build-system)
(native-inputs `(("ed", ed)))
(define patch-CVE-2015-1196 (synopsis "Apply differences to originals, with optional backups")
(package (inherit patch-2.7.4) (description
;; Keep the old version number so it can be used as a 'replacement'. "Patch is a program that applies changes to files based on differences
(version (package-version patch)))) laid out as by the program \"diff\". The changes may be applied to one or more
files depending on the contents of the diff file. It accepts several
different diff formats. It may also be used to revert previously applied
differences.")
(license gpl3+)
(home-page "http://savannah.gnu.org/projects/patch/")))
(define-public diffutils (define-public diffutils
(package (package