mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: git: Fix checksum patch in 'patch-tests'.
* gnu/packages/version-control.scm (git)[arguments]: In 'patch-tests' phase, use %store-directory instead of '/gnu' to prevent tests failure in case a custom store path is used. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
parent
385b2dde61
commit
6e0efe8cd5
1 changed files with 36 additions and 35 deletions
|
@ -223,6 +223,7 @@ (define-public git
|
|||
#t))
|
||||
(add-before 'check 'patch-tests
|
||||
(lambda _
|
||||
(let ((store-directory (%store-directory)))
|
||||
;; These files contain some funny bytes that Guile is unable
|
||||
;; to decode for shebang patching. Just delete them.
|
||||
(for-each delete-file '("t/t4201-shortlog.sh"
|
||||
|
@ -244,10 +245,10 @@ (define-public git
|
|||
(("\tcommit_template_commented") "\ttrue"))
|
||||
;; More checksum mismatches due to odd shebangs.
|
||||
(substitute* "t/t9100-git-svn-basic.sh"
|
||||
(("\"#!/gnu.*/bin/sh") "\"#!/bin/sh"))
|
||||
(((string-append "\"#!" store-directory ".*/bin/sh")) "\"#!/bin/sh") )
|
||||
(substitute* "t/t9300-fast-import.sh"
|
||||
(("\t#!/gnu.*/bin/sh") "\t#!/bin/sh")
|
||||
(("'#!/gnu.*/bin/sh") "'#!/bin/sh"))
|
||||
(((string-append "\t#!" store-directory ".*/bin/sh")) "\t#!/bin/sh")
|
||||
(((string-append "'#!" store-directory ".*/bin/sh")) "'#!/bin/sh"))
|
||||
;; FIXME: Some hooks fail with "basename: command not found".
|
||||
;; See 't/trash directory.t9164.../svn-hook.log'.
|
||||
(delete-file "t/t9164-git-svn-dcommit-concurrent.sh")
|
||||
|
@ -258,7 +259,7 @@ (define-public git
|
|||
'("t/t9128-git-svn-cmd-branch.sh"
|
||||
"t/t9167-git-svn-cmd-branch-subproject.sh"
|
||||
"t/t9141-git-svn-multiple-branches.sh"))
|
||||
#t))
|
||||
#t)))
|
||||
(add-after 'install 'install-shell-completion
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
|
|
Loading…
Reference in a new issue