shell-server icon indicating copy to clipboard operation
shell-server copied to clipboard

Install hashbang man page to /usr/local instead of /etc

Open RyanSquared opened this issue 6 years ago • 2 comments

Currently affected: lo1

Reported by @infrastation

RyanSquared avatar Mar 12 '19 10:03 RyanSquared

Specifically, man hashbang works on to1, but not on lo1 (both have /etc/man/man7/hashbang.7)

dovsienko@to1:~$ echo $MANPATH
/usr/local/man:/usr/local/share/man:/usr/share/man:/etc/man
dovsienko@lo1:~$ echo $MANPATH
/usr/local/man:/usr/local/share/man:/usr/share/man
--- manpath.config.to1	2019-03-12 12:28:29.281358838 +0000
+++ manpath.config.lo1	2019-03-12 12:27:47.629359275 +0000
@@ -20,7 +20,6 @@
 MANDATORY_MANPATH			/usr/man
 MANDATORY_MANPATH			/usr/share/man
 MANDATORY_MANPATH			/usr/local/share/man
-MANDATORY_MANPATH			/etc/man
 #---------------------------------------------------------
 # set up PATH to MANPATH mapping
 # ie. what man tree holds man pages for what binary directory.
@@ -70,14 +69,13 @@
 MANDB_MAP	/usr/local/share/man	/var/cache/man/local
 MANDB_MAP	/usr/X11R6/man		/var/cache/man/X11R6
 MANDB_MAP	/opt/man		/var/cache/man/opt
-MANDB_MAP	/etc/man		/var/cache/man/etc
 #
 #---------------------------------------------------------
 # Program definitions.  These are commented out by default as the value
 # of the definition is already the default.  To change: uncomment a
 # definition and modify it.
 #
-#DEFINE 	pager	pager -s
+#DEFINE 	pager	pager
 #DEFINE 	cat	cat
 #DEFINE 	tr	tr '\255\267\264\327' '\055\157\047\170'
 #DEFINE		grep	grep
@@ -110,7 +108,7 @@
 # particular order. Sections with extensions should usually be adjacent to
 # their main section (e.g. "1 1mh 8 ...").
 #
-SECTION		1 n l 8 3 2 3posix 3pm 3perl 5 4 9 6 7
+SECTION		1 n l 8 3 2 3posix 3pm 3perl 3am 5 4 9 6 7
 #
 #---------------------------------------------------------
 # Range of terminal widths permitted when displaying cat pages. If the

The only mention of "manpath" in the current master branch is in "Setup zsh manpath", which looks unrelated to the configuration above.

infrastation avatar Mar 12 '19 12:03 infrastation

As it was discussed on IRC, a cleaner solution would be to install project's man pages into /usr/local/man or /usr/local/share/man.

infrastation avatar Mar 18 '19 12:03 infrastation