summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-09-07 10:44:24 +0200
committerRicardo Wurmus <rekado@elephly.net>2016-09-07 20:54:14 +0200
commitea55a39530d6604cde07d5b23ba529a07a76ea7b (patch)
tree22dfb0826a82626e535d7625860888120f748a53 /gnu
parente79b3c37e3f3a00241e7a980b45eb0e30f942b94 (diff)
downloadguix-ea55a39530d6604cde07d5b23ba529a07a76ea7b.tar.gz
gnu: man-db: Patch path to iconv.
* gnu/packages/man.scm (man-db)[arguments]: Add phase
  "patch-iconv-path".

Fixes <http://bugs.gnu.org/24373>.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/man.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm
index a5ee2d3121..865851982f 100644
--- a/gnu/packages/man.scm
+++ b/gnu/packages/man.scm
@@ -79,7 +79,13 @@ a flexible and convenient way.")
                              (("#! /bin/sh")
                               (string-append "#!" (which "sh")))))
                          (remove file-is-directory?
-                                 (find-files "src/tests" ".*")))))))
+                                 (find-files "src/tests" ".*"))))))
+         (add-after 'unpack 'patch-iconv-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "src/man.c"
+               (("\"iconv\"")
+                (string-append "\"" (which "iconv") "\"")))
+             #t)))
        #:configure-flags
        (let ((groff (assoc-ref %build-inputs "groff"))
              (less  (assoc-ref %build-inputs "less"))