From: "Jakub Kądziołka" <kuba@kadziolka.net>
To: 39192@debbugs.gnu.org
Subject: [bug#39192] [PATCH] gnu: hexedit: Make F1 help more reliable
Date: Sun, 19 Jan 2020 13:44:34 +0100 [thread overview]
Message-ID: <20200119124434.aatfpdm6ihiig354@zdrowyportier.kadziolka.net> (raw)
* gnu/packages/hexedit.scm (hexedit)[arguments](patch-man-path): New
phase.
[inputs]: Add MAN-DB.
---
gnu/packages/hexedit.scm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/hexedit.scm b/gnu/packages/hexedit.scm
index 39dcb2e0f7..e788c7f766 100644
--- a/gnu/packages/hexedit.scm
+++ b/gnu/packages/hexedit.scm
@@ -24,6 +24,7 @@
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages man)
#:use-module (gnu packages ncurses)
#:use-module (guix download)
#:use-module (guix git-download)
@@ -43,12 +44,24 @@
(base32
"1xsxa5mip892jkvz9jshj73y6c7j3mgp8y393ciihqlyf2nmfs67"))))
(build-system gnu-build-system)
- (arguments '(#:tests? #f)) ; no check target
+ (arguments
+ `(#:tests? #f ; no check target
+ #:phases
+ (modify-phases %standard-phases
+ ;; Make F1 open the man page even if man-db is not in the profile
+ (add-after 'unpack 'patch-man-path
+ (lambda _
+ (substitute* "interact.c"
+ (("\"man\"")
+ (string-append "\"" (assoc-ref %build-inputs "man-db") "/bin/man\""))
+ (("\"hexedit\"")
+ (string-append "\"" (assoc-ref %outputs "out") "/share/man/man1/hexedit.1.gz\""))))))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)))
(inputs
- `(("ncurses" ,ncurses)))
+ `(("ncurses" ,ncurses)
+ ("man-db" ,man-db)))
(synopsis "View and edit files or devices in hexadecimal or ASCII")
(description "hexedit shows a file both in ASCII and in hexadecimal. The
file can be a device as the file is read a piece at a time. You can modify
--
2.25.0
next reply other threads:[~2020-01-19 12:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-19 12:44 Jakub Kądziołka [this message]
2020-01-27 23:36 ` [bug#39192] [PATCH] gnu: hexedit: Make F1 help more reliable Marius Bakke
2020-01-28 7:36 ` Jakub Kądziołka
2020-01-29 10:08 ` bug#39192: " Marius Bakke
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200119124434.aatfpdm6ihiig354@zdrowyportier.kadziolka.net \
--to=kuba@kadziolka.net \
--cc=39192@debbugs.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.