summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-03-28 20:52:40 +0300
committerEfraim Flashner <efraim@flashner.co.il>2022-03-28 21:34:09 +0300
commitb103d8e4908baff6d048e3936aaa7a9c5be3ffa9 (patch)
treeadd672ccbef951c19fdf2ef31cf7b4c77c38df33 /gnu/packages
parentbf0389a3806509650b7a8425973ac5aac722901a (diff)
downloadguix-b103d8e4908baff6d048e3936aaa7a9c5be3ffa9.tar.gz
gnu: munge: Fix cross-compiling.
* gnu/packages/admin.scm (munge)[arguments]: Add configure-flag to set
path to libgcrypt prefix.  Add configure flags when cross-compiling to
assume support for pipes.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/admin.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 2c47fb318d..512361cef6 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3017,10 +3017,17 @@ displays a table of current bandwidth usage by pairs of hosts.")
      (list openssl libgcrypt))
     (build-system gnu-build-system)
     (arguments
-     '(#:configure-flags
+     `(#:configure-flags
        (list "--localstatedir=/var"
              (string-append "--with-pkgconfigdir="
-                            (assoc-ref %outputs "out") "/lib/pkgconfig"))
+                            (assoc-ref %outputs "out") "/lib/pkgconfig")
+             (string-append "--with-libgcrypt-prefix="
+                            (assoc-ref %build-inputs "libgcrypt"))
+             ,@(if (%current-target-system)
+                 ;; Assume yes on pipes when cross compiling.
+                 `("ac_cv_file__dev_spx=yes"
+                   "x_ac_cv_check_fifo_recvfd=yes")
+                 '()))
        #:phases
        (modify-phases %standard-phases
          ;; XXX Many test series fail.  Some might be fixable, others do no-no