summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2022-01-08 03:50:11 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2022-01-08 03:56:38 +0100
commit8521adf935919d1dc07078751f77003405cf79cb (patch)
tree88a33214183bae9a574b47f455839992b1f4cc8e
parent9644d5b1e6b2ab7df0d8355051bffb3847e44615 (diff)
downloadguix-8521adf935919d1dc07078751f77003405cf79cb.tar.gz
gnu: man-db: Fix cross-compilation.
* gnu/packages/linux.scm (man-db)[arguments]:
Avoid %OUTPUT when cross-compiling.
-rw-r--r--gnu/packages/man.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm
index d9e8b07471..c6d8b8881d 100644
--- a/gnu/packages/man.scm
+++ b/gnu/packages/man.scm
@@ -183,10 +183,17 @@ a flexible and convenient way.")
                         (string-append "--with-xz=" xz "/bin/xz")
                         (string-append "--with-col=" util "/bin/col")
                         ;; The default systemd directories ignore --prefix.
+                        ;; XXX TODO: Replace with simply #$OUTPUT on staging.
                         (string-append "--with-systemdsystemunitdir="
-                                       %output "/lib/systemd/system")
+                                       #$(if (%current-target-system)
+                                             #~#$output
+                                             #~%output)
+                                       "/lib/systemd/system")
                         (string-append "--with-systemdtmpfilesdir="
-                                       %output "/lib/tmpfiles.d"))
+                                       #$(if (%current-target-system)
+                                             #~#$output
+                                             #~%output)
+                                       "/lib/tmpfiles.d"))
                    (map (lambda (prog)
                           (string-append "--with-" prog "=" groff-minimal
                                          "/bin/" prog))