gnu: heimdal: Refer to cross-compiled bash.

* gnu/packages/kerberos.scm
  (heimdal)[arguments]<#:phases>{pre-configure}: Let "appl/afsutil/pagsh.c"
  refer to the cross-compiled bash instead of the native bash when
  cross-compiling.
This commit is contained in:
Maxime Devos 2021-08-24 22:29:56 +02:00 committed by Mathieu Othacehe
parent f706689a8d
commit 527455be35
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -231,11 +231,24 @@ (define-public heimdal
'()))
#:phases (modify-phases %standard-phases
(add-before 'configure 'pre-configure
(lambda _
(substitute* '("appl/afsutil/pagsh.c"
"tools/Makefile.in")
(("/bin/sh") (which "sh")))
#t))
;; TODO(core-updates): Unconditionally use the
;; %current-target-system branch.
(,(if (%current-target-system)
'lambda*
'lambda)
,(if (%current-target-system)
'(#:key inputs #:allow-other-keys)
'_)
,@(if (%current-target-system)
'((substitute* '("appl/afsutil/pagsh.c")
(("/bin/sh")
(search-input-file inputs "bin/sh")))
(substitute* '("tools/Makefile.in")
(("/bin/sh") (which "sh"))))
'((substitute* '("appl/afsutil/pagsh.c"
"tools/Makefile.in")
(("/bin/sh") (which "sh")))
#t))))
(add-before 'check 'pre-check
(lambda _
;; For 'getxxyyy-test'.