gnu: libtirpc-hurd: Fix cross-compilation.

Fixes a regression introduced in
517618b240, whereby the "wrong"
'krb5-config' script would be picked.

* gnu/packages/onc-rpc.scm (libtirpc/hurd)[arguments]: Turn
 #:configure-flags into a gexp to refer to the right "mit-krb5".
This commit is contained in:
Ludovic Courtès 2022-12-24 00:35:32 +01:00
parent 69fc67b6bb
commit 3532fc6ba4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014, 2017, 2018, 2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
;;; Copyright © 2017, 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2018, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
@ -27,6 +27,7 @@ (define-module (gnu packages onc-rpc)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
@ -84,9 +85,9 @@ (define-public libtirpc/hurd
(substitute-keyword-arguments (package-arguments libtirpc)
((#:configure-flags flags ''())
;; When cross-building the target system's krb5-config should be used.
`(list (string-append "ac_cv_prog_KRB5_CONFIG="
(assoc-ref %build-inputs "mit-krb5")
"/bin/krb5-config")))))))
#~(list (string-append "ac_cv_prog_KRB5_CONFIG="
#$(this-package-input "mit-krb5")
"/bin/krb5-config")))))))
(define libtirpc/fixed
(package