GNU bug report logs -
#55326
libgit2 1.3.0 includes a time-dependent test
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sun, 8 May 2022 21:07:01 UTC
Severity: important
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#55326: libgit2 1.3.0 includes a time-dependent test
which was filed against the guix package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 55326 <at> debbugs.gnu.org.
--
55326: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55326
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Ludovic Courtès <ludo <at> gnu.org> skribis:
> libgit2 1.3.0 (and 1.4.3, it seems) includes a time-dependent test:
> ‘refs::revparse::date’, in ‘tests/refs/revparse.c’, assumes
> “HEAD@{10 years ago}” doesn't match anything in the sample repositories,
> which is no longer true:
Fixed:
e48b5484afde93294c4ed7215e88ed450842b2e5 (master)
f5fe0082abe4547f3fb9f29d8351473cfb3a387b (staging)
Ludo’.
[Message part 3 (message/rfc822, inline)]
libgit2 1.3.0 (and 1.4.3, it seems) includes a time-dependent test:
‘refs::revparse::date’, in ‘tests/refs/revparse.c’, assumes
“HEAD@{10 years ago}” doesn't match anything in the sample repositories,
which is no longer true:
--8<---------------cut here---------------start------------->8---
$ date
Sun May 8 11:04:31 PM CEST 2022
$ ./libgit2_clar -v -Q -srefs::revparse::date
Loaded 404 suites:
Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
refs::revparseF
1) Failure:
refs::revparse::date [/tmp/guix-build-libgit2-1.3.0.drv-0/source/tests/refs/revparse.c:31]
Function call succeeded: error
no error, expected non-zero return
$ /gnu/store/wy3ww7znqhlg84vg6cmw1m12z1drxwh1-libfaketime-0.9.9/bin/faketime 2021-12-12 ./libgit2_clar -v -Q -srefs::revparse::date
Loaded 404 suites:
Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
refs::revparse.
--8<---------------cut here---------------end--------------->8---
Thus, as of 6b588da368c77cde82ea2f22ca315116228777ad, libgit2 now fails
to build; a few months ago, it would build fine.
Ludo’.
This bug report was last modified 3 years and 61 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.