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>.
This commit is contained in:
Ricardo Wurmus 2016-09-07 10:44:24 +02:00
parent e79b3c37e3
commit ea55a39530
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -79,7 +79,13 @@ (define-public man-db
(("#! /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"))