gnu: linux-pam: Disable NIS when cross-compiling.
authorLudovic Courtès <ludo@gnu.org>
Tue, 11 Jul 2017 19:52:58 +0000 (21:52 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 11 Jul 2017 19:54:19 +0000 (21:54 +0200)
* gnu/packages/linux.scm (linux-pam)[arguments]: Pass "--disable-nis"
when cross-compiling.

gnu/packages/linux.scm

index 5c96056..c5fed1a 100644 (file)
@@ -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.