~ruther/guix-local

ed8111ea7530b1c591af016dc8d247e52cd776eb — Ludovic Courtès 8 years ago d5ff67f
gnu: linux-pam: Disable NIS when cross-compiling.

* gnu/packages/linux.scm (linux-pam)[arguments]: Pass "--disable-nis"
when cross-compiling.
1 files changed, 9 insertions(+), 2 deletions(-)

M gnu/packages/linux.scm
M gnu/packages/linux.scm => gnu/packages/linux.scm +9 -2
@@ 426,11 426,18 @@ It has been modified to remove all non-free binary blobs.")
       ;; ("cracklib" ,cracklib)
       ))
    (arguments
     '(;; Most users, such as `shadow', expect the headers to be under
     `(;; Most users, such as `shadow', expect the headers to be under
       ;; `security'.
       #:configure-flags (list (string-append "--includedir="
                                              (assoc-ref %outputs "out")
                                              "/include/security"))
                                              "/include/security")

                               ;; XXX: <rpc/rpc.h> is missing from glibc when
                               ;; cross-compiling, so we have to disable NIS
                               ;; support altogether.
                               ,@(if (%current-target-system)
                                     '("--disable-nis")
                                     '()))

       ;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
       ;; isn't available.