gnu: heimdal: Use the cross-compiled bash in "su".
* gnu/packages/kerberos.scm (heimdal)[arguments]<#:phases>{pre-configure}: Replace _PATH_BSHELL with the cross-compiled bin/sh when cross-compiling.
This commit is contained in:
parent
527455be35
commit
0bff68e44d
1 changed files with 8 additions and 2 deletions
|
@ -240,9 +240,15 @@ (define-public heimdal
|
|||
'(#:key inputs #:allow-other-keys)
|
||||
'_)
|
||||
,@(if (%current-target-system)
|
||||
'((substitute* '("appl/afsutil/pagsh.c")
|
||||
'((substitute* '("appl/afsutil/pagsh.c" "appl/su/su.c")
|
||||
(("/bin/sh")
|
||||
(search-input-file inputs "bin/sh")))
|
||||
(search-input-file inputs "bin/sh"))
|
||||
;; Use the cross-compiled bash instead of the
|
||||
;; native bash (XXX shouldn't _PATH_BSHELL point
|
||||
;; to a cross-compiled bash?).
|
||||
(("_PATH_BSHELL")
|
||||
(string-append
|
||||
"\"" (search-input-file inputs "bin/sh") "\"")))
|
||||
(substitute* '("tools/Makefile.in")
|
||||
(("/bin/sh") (which "sh"))))
|
||||
'((substitute* '("appl/afsutil/pagsh.c"
|
||||
|
|
Loading…
Reference in a new issue