From: 宋文武 <iyzsong@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: wireless-tools: Install the manual pages under $out/share/man
Date: Sat, 29 Nov 2014 13:06:51 +0800 [thread overview]
Message-ID: <87k32e7fys.fsf@gmail.com> (raw)
[-- 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.
next reply other threads:[~2014-11-29 5:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-29 5:06 宋文武 [this message]
2014-11-29 20:49 ` [PATCH] gnu: wireless-tools: Install the manual pages under $out/share/man Ludovic Courtès
2014-11-30 3:24 ` 宋文武
2014-11-30 16:36 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k32e7fys.fsf@gmail.com \
--to=iyzsong@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).