From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: [PATCH] gnu: wireless-tools: Install the manual pages under $out/share/man Date: Sat, 29 Nov 2014 13:06:51 +0800 Message-ID: <87k32e7fys.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuaFO-0001vK-36 for guix-devel@gnu.org; Sat, 29 Nov 2014 00:07:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuaFF-0008C1-1B for guix-devel@gnu.org; Sat, 29 Nov 2014 00:07:06 -0500 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]:58549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuaFE-0008Bv-Pj for guix-devel@gnu.org; Sat, 29 Nov 2014 00:06:56 -0500 Received: by mail-pd0-f179.google.com with SMTP id w10so7698974pde.10 for ; Fri, 28 Nov 2014 21:06:56 -0800 (PST) Received: from akarin ([59.172.247.101]) by mx.google.com with ESMTPSA id rd8sm11394203pdb.58.2014.11.28.21.06.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Nov 2014 21:06:55 -0800 (PST) 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-wireless-tools-Install-the-manual-pages-under-ou.patch >From f961e72823cda48406d0058902c67b6b663da791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sat, 29 Nov 2014 12:52:59 +0800 Subject: [PATCH] gnu: wireless-tools: Install the manual pages under $out/share/man. * gnu/packages/linux.scm (wireless-tools)[origin]: Add snippet. --- gnu/packages/linux.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index b9d9bd6..0651c08 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1487,7 +1487,13 @@ mapper. Kernel components are part of Linux-libre.") version ".tar.gz")) (sha256 (base32 - "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb")))) + "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb")) + (modules '((guix build utils))) + (snippet + ;; Install the manual pages in the right place. + '(substitute* "Makefile" + (("INSTALL_MAN= .*") + "INSTALL_MAN= $(PREFIX)/share/man"))))) (build-system gnu-build-system) (arguments `(#:phases (alist-replace -- 2.1.2 --=-=-= Content-Type: text/plain We could get rid of MANPATH, if all man pages install to $out/share/man. Assume a suitable PATH is set, try: $ guix package -r wireless-tools $ env MANPATH= manpath Get: /run/current-system/profile/man:/home/iyzsong/.guix-profile/share/man It's because wireless-tools having man pages in $out/man, after apply this patch, we should get: /run/current-system/profile/share/man:/home/iyzsong/.guix-profile/share/man Then `man' will just work even without MANPATH. --=-=-=--