mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-20 09:43:43 -05:00
gnu: libgit2: Work around time-dependent unit test.
Fixes <https://issues.guix.gnu.org/55326>. * gnu/packages/version-control.scm (libgit2)[source]: Augment 'snippet' to modify "tests/refs/revparse.c".
This commit is contained in:
parent
f226e051f5
commit
e48b5484af
1 changed files with 10 additions and 1 deletions
|
@ -802,7 +802,16 @@ (define-public libgit2
|
||||||
(base32
|
(base32
|
||||||
"0vgpb2175a5dhqiy1iwywwppahgqhi340i8bsvafjpvkw284vazd"))
|
"0vgpb2175a5dhqiy1iwywwppahgqhi340i8bsvafjpvkw284vazd"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet '(delete-file-recursively "deps"))))
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(delete-file-recursively "deps")
|
||||||
|
|
||||||
|
;; The "refs:revparse::date" test is time-dependent: it
|
||||||
|
;; assumes "HEAD@{10 years ago}" doesn't match anything,
|
||||||
|
;; which is no longer true. Adjust that test.
|
||||||
|
(substitute* "tests/refs/revparse.c"
|
||||||
|
(("10 years ago")
|
||||||
|
"100 years ago"))))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(outputs '("out" "debug"))
|
(outputs '("out" "debug"))
|
||||||
(arguments
|
(arguments
|
||||||
|
|
Loading…
Reference in a new issue