mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: patch: Update to 2.8.
* gnu/packages/base.scm (patch): Update to 2.8. [origin]: Remove patch-hurd-patch-max.patch. [arguments]: Inherit from patch/pinned and add --disable-year2038 configure-flag for 32bit hurd targets. [native-inputs]: Inherit from patch/pinned. Change-Id: I31e7b5b0d0512dea8a1a989b5ac478a5a3ae7730 Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
parent
6d4fe27697
commit
0dcbf78ad3
1 changed files with 19 additions and 51 deletions
|
@ -341,57 +341,25 @@ differences.")
|
||||||
(home-page "https://savannah.gnu.org/projects/patch/"))))
|
(home-page "https://savannah.gnu.org/projects/patch/"))))
|
||||||
|
|
||||||
(define-public patch
|
(define-public patch
|
||||||
;; The latest release is from 2018, and lacks multiple security related
|
|
||||||
;; patches. Since Fedora carries 23 patches, simply use the latest commit
|
|
||||||
;; until a proper release is made.
|
|
||||||
(let ((revision "0")
|
|
||||||
(commit "f144b35425d9d7732ea5485034c1a6b7a106ab92")
|
|
||||||
(base patch/pinned))
|
|
||||||
(package
|
(package
|
||||||
(inherit base)
|
(inherit patch/pinned)
|
||||||
(name "patch")
|
(name "patch")
|
||||||
(version (git-version "2.7.6" revision commit))
|
(version "2.8")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method url-fetch)
|
||||||
(uri (git-reference
|
(uri (string-append "mirror://gnu/patch/patch-"
|
||||||
(url "https://git.savannah.gnu.org/git/patch.git")
|
version ".tar.xz"))
|
||||||
(commit commit)))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1bk38169c0xh01b0q0zmnrjqz8k9byz3arp4q7q66sn6xwf94nvz"))
|
"1qssgwgy3mfahkpgg99a35gl38vamlqb15m3c2zzrd62xrlywz7q"))))
|
||||||
(patches (search-patches "patch-hurd-path-max.patch"))))
|
|
||||||
(arguments
|
(arguments
|
||||||
(let ((arguments
|
(substitute-keyword-arguments (package-arguments patch/pinned)
|
||||||
(substitute-keyword-arguments (package-arguments base)
|
((#:configure-flags flags #~'())
|
||||||
((#:phases phases '%standard-phases)
|
(if (and (target-hurd?) (not (target-64bit?)))
|
||||||
#~(modify-phases #$phases
|
#~(cons* "--disable-year2038"
|
||||||
(add-after 'unpack 'copy-gnulib-sources
|
#$flags)
|
||||||
(lambda _
|
flags))))
|
||||||
;; XXX: We copy the source instead of using 'gnulib' as a
|
(properties '())))
|
||||||
;; native input to avoid introducing a dependency cycle.
|
|
||||||
(copy-recursively #+gnulib "gnulib")
|
|
||||||
(setenv "GNULIB_SRCDIR"
|
|
||||||
(string-append (getcwd) "/gnulib/src/gnulib"))))
|
|
||||||
(add-after 'copy-gnulib-sources 'update-bootstrap-script
|
|
||||||
(lambda _
|
|
||||||
(copy-file "gnulib/src/gnulib/build-aux/bootstrap"
|
|
||||||
"bootstrap")))
|
|
||||||
(add-after 'unpack 'patch-configure.ac
|
|
||||||
(lambda _
|
|
||||||
(substitute* "configure.ac"
|
|
||||||
;; The gnulib-provided git-version-gen script has a plain
|
|
||||||
;; shebang of #!/bin/sh; avoid using it.
|
|
||||||
(("build-aux/git-version-gen" all)
|
|
||||||
(string-append "sh " all))))))))))
|
|
||||||
(if (target-hurd64?)
|
|
||||||
(substitute-keyword-arguments arguments
|
|
||||||
((#:configure-flags flags '())
|
|
||||||
#~(list "--disable-threads"
|
|
||||||
"gl_cv_func_working_mktime=yes")))
|
|
||||||
arguments)))
|
|
||||||
(native-inputs (list autoconf automake bison ed))
|
|
||||||
(properties '()))))
|
|
||||||
|
|
||||||
(define-public diffutils
|
(define-public diffutils
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue