From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH 2/2] gnu: man-db: Patch path to iconv. Date: Wed, 7 Sep 2016 10:47:07 +0200 Message-ID: <20160907084707.11557-2-rekado@elephly.net> References: <20160907084707.11557-1-rekado@elephly.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhYW7-0002sf-Ao for guix-devel@gnu.org; Wed, 07 Sep 2016 04:47:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhYW5-0000Yo-5b for guix-devel@gnu.org; Wed, 07 Sep 2016 04:47:34 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhYW4-0000Yc-U4 for guix-devel@gnu.org; Wed, 07 Sep 2016 04:47:33 -0400 In-Reply-To: <20160907084707.11557-1-rekado@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/man.scm (man-db)[arguments]: Add phase "patch-iconv-path". Fixes . --- gnu/packages/man.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm index a5ee2d3..8658519 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")) -- 2.9.2