mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: heimdal: Find tools when cross-compiling.
* gnu/packages/kerberos.scm (heimdal)[arguments]<#:configure-flags>: Set --with-cross-tools. (heimdal)[arguments]<#:phases>{pre-configure}: Override ac_cv_PROG_COMPILE_ET.
This commit is contained in:
parent
0bff68e44d
commit
784865adfe
1 changed files with 32 additions and 19 deletions
|
@ -50,6 +50,7 @@ (define-module (gnu packages kerberos)
|
|||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix build-system gnu))
|
||||
|
||||
|
@ -207,28 +208,33 @@ (define-public heimdal
|
|||
#t))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags (list
|
||||
;; Avoid 7 MiB of .a files.
|
||||
"--disable-static"
|
||||
`(#:configure-flags
|
||||
,#~(list
|
||||
;; Avoid 7 MiB of .a files.
|
||||
"--disable-static"
|
||||
|
||||
;; Do not build libedit.
|
||||
(string-append
|
||||
"--with-readline-lib="
|
||||
(assoc-ref %build-inputs "readline") "/lib")
|
||||
(string-append
|
||||
"--with-readline-include="
|
||||
(assoc-ref %build-inputs "readline") "/include")
|
||||
;; Do not build libedit.
|
||||
(string-append
|
||||
"--with-readline-lib="
|
||||
(assoc-ref %build-inputs "readline") "/lib")
|
||||
(string-append
|
||||
"--with-readline-include="
|
||||
(assoc-ref %build-inputs "readline") "/include")
|
||||
|
||||
;; Do not build sqlite.
|
||||
(string-append
|
||||
"--with-sqlite3="
|
||||
(assoc-ref %build-inputs "sqlite"))
|
||||
;; Do not build sqlite.
|
||||
(string-append
|
||||
"--with-sqlite3="
|
||||
(assoc-ref %build-inputs "sqlite"))
|
||||
|
||||
;; The configure script is too pessimistic.
|
||||
;; Setting this also resolves a linking error.
|
||||
,@(if (%current-target-system)
|
||||
'("ac_cv_func_getpwnam_r_posix=yes")
|
||||
'()))
|
||||
#$@(if (%current-target-system)
|
||||
;; The configure script is too pessimistic.
|
||||
;; Setting this also resolves a linking error.
|
||||
#~("ac_cv_func_getpwnam_r_posix=yes"
|
||||
;; Allow 'slc' and 'asn1_compile' to be found.
|
||||
(string-append "--with-cross-tools="
|
||||
#+(file-append this-package
|
||||
"/libexec/heimdal")))
|
||||
#~()))
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-before 'configure 'pre-configure
|
||||
;; TODO(core-updates): Unconditionally use the
|
||||
|
@ -239,6 +245,13 @@ (define-public heimdal
|
|||
,(if (%current-target-system)
|
||||
'(#:key inputs #:allow-other-keys)
|
||||
'_)
|
||||
,@(if (%current-target-system)
|
||||
`((substitute* "configure"
|
||||
;; Our 'compile_et' is not in --with-cross-tools,
|
||||
;; which confuses heimdal.
|
||||
(("ac_cv_prog_COMPILE_ET=\\$\\{with_cross_tools\\}compile_et")
|
||||
"ac_cv_PROG_COMPILE_ET=compile_et")))
|
||||
'())
|
||||
,@(if (%current-target-system)
|
||||
'((substitute* '("appl/afsutil/pagsh.c" "appl/su/su.c")
|
||||
(("/bin/sh")
|
||||
|
|
Loading…
Reference in a new issue