mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
Revert "gnu: gitolite: Fix shebangs in hooks."
This change embedded store references in the shebangs of scripts that
were meant to be copied out of the store. Those scripts would break when
the interpreters expected by the shebangs were garbage collected.
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25966#28>
This reverts commit d0c16adb19
.
This commit is contained in:
parent
850edd77f9
commit
2eab5db300
1 changed files with 0 additions and 11 deletions
|
@ -616,17 +616,6 @@ (define-public gitolite
|
|||
(substitute* (find-files "." ".*")
|
||||
((" perl -")
|
||||
(string-append " " perl " -"))))))
|
||||
(add-before 'install 'fix-hooks-shebangs
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((perl (string-append (assoc-ref inputs "perl")
|
||||
"/bin/perl")))
|
||||
;; The files in 'lib/Gitolite/Hooks' keep references to
|
||||
;; '/usr/bin/perl', without this fix it is impossible to
|
||||
;; to run gitolite in production.
|
||||
(substitute* (find-files "src/lib/Gitolite/Hooks" ".*")
|
||||
(("/usr/bin/perl")
|
||||
perl))
|
||||
#t)))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((output (assoc-ref outputs "out"))
|
||||
|
|
Loading…
Reference in a new issue