unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#50330] [PATCH] gnu: mandoc: Add $MANPATH to native-search-paths.
@ 2021-09-01 23:58 Milkey Mouse
  2021-09-07 14:06 ` bug#50330: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Milkey Mouse @ 2021-09-01 23:58 UTC (permalink / raw)
  To: 50330

* gnu/packages/man.scm (mandoc)[native-search-paths]: New field.
---
I use mandoc as a substitute for man-db, and when man-db isn't
installed, mandoc was finding no man pages as $MANPATH wasn't being
set. I don't think it causes any problems for MANPATH to be in the
native-search-paths of both mandoc and man-db, right?

 gnu/packages/man.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm
index 50295b55f7..49e149128d 100644
--- a/gnu/packages/man.scm
+++ b/gnu/packages/man.scm
@@ -254,6 +254,10 @@ the traditional flat-text whatis databases.")
                                         "\n"))))))))
     (native-inputs `(("perl" ,perl)))             ;used to run tests
     (inputs `(("zlib" ,zlib)))
+    (native-search-paths
+     (list (search-path-specification
+            (variable "MANPATH")
+            (files '("share/man")))))
     (synopsis "Tools for BSD mdoc and man pages")
     (description
      "mandoc is a suite of tools compiling mdoc, the roff macro language of
-- 
2.33.0





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

end of thread, other threads:[~2021-09-07 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-01 23:58 [bug#50330] [PATCH] gnu: mandoc: Add $MANPATH to native-search-paths Milkey Mouse
2021-09-07 14:06 ` bug#50330: " 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).