unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: wireless-tools: Install the manual pages under $out/share/man
@ 2014-11-29  5:06 宋文武
  2014-11-29 20:49 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: 宋文武 @ 2014-11-29  5:06 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-wireless-tools-Install-the-manual-pages-under-ou.patch --]
[-- Type: text/x-patch, Size: 1266 bytes --]

From f961e72823cda48406d0058902c67b6b663da791 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@gmail.com>
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


[-- Attachment #2: Type: text/plain, Size: 471 bytes --]


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.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-30 16:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-29  5:06 [PATCH] gnu: wireless-tools: Install the manual pages under $out/share/man 宋文武
2014-11-29 20:49 ` Ludovic Courtès
2014-11-30  3:24   ` 宋文武
2014-11-30 16:36     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).