mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: libgit2: Fix Clar test framework.
This commit reverts 'patch' hack introduced in
a48a1071a6
and fixes bug in the Clar test
framework.
Patch is proposed to Clar upstream as
<https://github.com/vmg/clar/pull/78>.
* gnu/local.mk: Add libgit2-0.25.1-mtime-0.patch.
* gnu/packages/patches/libgit2-0.25.1-mtime-0.patch: New file.
* gnu/packages/version-control.scm (libgit2)[arguments]:
Remove 'apply-patch' phase.
[inputs]: Remove "patch".
[source]: Add 'patches' field.
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
2ca9f51ec8
commit
34cfeca84e
3 changed files with 19 additions and 14 deletions
14
gnu/packages/patches/libgit2-0.25.1-mtime-0.patch
Normal file
14
gnu/packages/patches/libgit2-0.25.1-mtime-0.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
The Clar test framework has a bug whereby it skips the parsing phase
|
||||
on files with mtime=0.
|
||||
|
||||
Reported upstream at <https://github.com/vmg/clar/pull/78>.
|
||||
|
||||
diff --git a/tests/generate.py b/tests/generate.py
|
||||
index b639c8f..111ca41 100644
|
||||
--- a/tests/generate.py
|
||||
+++ b/tests/generate.py
|
||||
@@ -63,3 +63,3 @@ class Module(object):
|
||||
|
||||
- self.mtime = 0
|
||||
+ self.mtime = None # Guix sets all file mtimes to '0'
|
||||
self.enabled = True
|
Loading…
Add table
Add a link
Reference in a new issue