LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-11-2018, 10:11 PM   #1
andygoth
Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 132

Rep: Reputation: 66
/usr/local/share/man not in MANPATH


Self-compiled Tcl defaults to installing its man pages to /usr/local/share/man, but this directory is not in the MANPATH environment variable set by /etc/profile. Thus the Tcl documentation is not found.

However, /usr/local/share/man is in /etc/man.conf and /etc/man_db.conf (not sure why these are two separate files, but whatever). Therefore, all I have to do to get access to the self-compiled Tcl man pages is unset MANPATH and let the defaults kick in.

Why does /etc/profile set MANPATH? Why does it leave out some directories present in the man*.conf files?

Observation: /usr/lib64/java/man is in man_db.conf and the /etc/profile MANPATH but not man.conf. Unsetting MANPATH does not prevent "man javadoc" from working even though the underlying man page file is /usr/lib64/java/man/man1/javadoc.1. This adds to my confusion about why we have both man.conf and man_db.conf. Furthermore, man.conf says to read man.conf(5), but not such man page exists. Irony!
 
Old 07-12-2018, 12:45 AM   #2
MadMaverick9
Member
 
Registered: Aug 2010
Posts: 353
Blog Entries: 4

Rep: Reputation: Disabled
Foobar

Last edited by MadMaverick9; 07-15-2018 at 09:37 AM.
 
Old 07-12-2018, 09:43 AM   #3
andygoth
Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 132

Original Poster
Rep: Reputation: 66
Quote:
Originally Posted by MadMaverick9 View Post
On my system:
Code:
bash $ strings /usr/bin/man | grep man.conf
/usr/lib/man.conf
/etc/man.conf
/etc/man.config
/usr/lib/man.config
/usr/share/misc/man.conf
/usr/share/misc/man.config
man-config.c: internal error: string %s not found
You may wanna check if you have a configuration file in "/usr/lib/" and if that maybe overrides the one in "/etc/". I don't know - I haven't looked at the man source code.
The only one of these files I have is /etc/man.conf. Thanks for looking up alternative names.

I've tried to minimize customizing my Slackware system aside from installing/upgrading packages since I want to be able to replicate my setup later without spending engineering hours tracking down every little tweak I've made by hand throughout the filesystem. Changes within ~ are fine of course, but I don't feel it's reasonable to ask every user to adjust their environment to overcome what appears to be an inconsistency in the base OS install.

In other news, I found there's a separate mandb program, which is why we have both man.conf and man_db.conf. I doubt I've ever used mandb, unless it's being invoked automatically.
 
Old 07-12-2018, 10:25 AM   #4
MadMaverick9
Member
 
Registered: Aug 2010
Posts: 353
Blog Entries: 4

Rep: Reputation: Disabled
Foobar

Last edited by MadMaverick9; 07-15-2018 at 09:38 AM.
 
Old 07-12-2018, 10:47 AM   #5
MadMaverick9
Member
 
Registered: Aug 2010
Posts: 353
Blog Entries: 4

Rep: Reputation: Disabled
Foobar

Last edited by MadMaverick9; 07-15-2018 at 09:38 AM.
 
Old 07-12-2018, 10:53 AM   #6
MadMaverick9
Member
 
Registered: Aug 2010
Posts: 353
Blog Entries: 4

Rep: Reputation: Disabled
Foobar

Last edited by MadMaverick9; 07-15-2018 at 09:39 AM.
 
Old 07-12-2018, 09:15 PM   #7
andygoth
Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 132

Original Poster
Rep: Reputation: 66
Quote:
Originally Posted by MadMaverick9 View Post
If you have a clean installation you should not even have a "man.conf".
I wonder where it came from. I installed Slackware64-14.2 then upgraded to Slackware64-current. At what point did man.conf disappear upstream?

ap/man-1.6g-x86_64-3.txz in Slackware64-14.2 contains /etc/man.conf.new. Slackware64-current doesn't have an ap/man package, rather ap/man-pages and ap/man-db. Neither package has man.conf. Also I'll note that 14.2 has package ap/man-pages but not ap/man-db.

At some point in my upgrade, presumably when jumping from 14.2 to current, the man package was uninstalled. Apparently its old man.conf was left behind. How are such things supposed to be identified and cleaned up when removing obsolete packages?

With MANPATH unset, I ran "strace -o log man -w n clock" to get the list of files being opened by man in its quest to locate the man pages. Sure enough, it reads /etc/man_db.conf, and it doesn't even look at /etc/man.conf. The latter file might as well not even exist, so I'll happily delete it.

Today, about five hours ago, Pat released a/etc-15.0-x86_64-7.txz which removes the MANPATH lines from /etc/profile and /etc/csh.login. This fixes my problem and lets /etc/man_db.conf prevail.

However, that's not to say I don't still have a MANPATH environment variable. It's being set by /etc/profile.d/jdk.{sh,csh} as follows:

Code:
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
This file isn't part of Slackware64. Rather, it came in jdk-8u172-x86_64-1_SBo. Perhaps the SlackBuilds script should be updated to patch out that one line since /usr/lib64/java/man is already present in man_db.conf. Without a MANPATH being set by /etc/profile, I end up with a MANPATH of ":/usr/lib64/java/man:/usr/lib64/java/man". (Yes, twice. Dunno why.) I'll contact Robby Workman about it, since it's his SlackBuilds script.
 
Old 07-12-2018, 11:57 PM   #8
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by andygoth View Post
I wonder where it came from. I installed Slackware64-14.2 then upgraded to Slackware64-current. At what point did man.conf disappear upstream?
It's considered a config file, since it was moved over upon initial installation from the man.conf.new file. The package system won't remove existing config files even if the packages are removed.
 
1 members found this post helpful.
Old 07-13-2018, 03:28 AM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by andygoth View Post
I wonder where it came from. I installed Slackware64-14.2 then upgraded to Slackware64-current. At what point did man.conf disappear upstream?

ap/man-1.6g-x86_64-3.txz in Slackware64-14.2 contains /etc/man.conf.new. Slackware64-current doesn't have an ap/man package, rather ap/man-pages and ap/man-db. Neither package has man.conf. Also I'll note that 14.2 has package ap/man-pages but not ap/man-db.

At some point in my upgrade, presumably when jumping from 14.2 to current, the man package was uninstalled. Apparently its old man.conf was left behind. How are such things supposed to be identified and cleaned up when removing obsolete packages?

With MANPATH unset, I ran "strace -o log man -w n clock" to get the list of files being opened by man in its quest to locate the man pages. Sure enough, it reads /etc/man_db.conf, and it doesn't even look at /etc/man.conf. The latter file might as well not even exist, so I'll happily delete it.

Today, about five hours ago, Pat released a/etc-15.0-x86_64-7.txz which removes the MANPATH lines from /etc/profile and /etc/csh.login. This fixes my problem and lets /etc/man_db.conf prevail.

However, that's not to say I don't still have a MANPATH environment variable. It's being set by /etc/profile.d/jdk.{sh,csh} as follows:

Code:
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
This file isn't part of Slackware64. Rather, it came in jdk-8u172-x86_64-1_SBo. Perhaps the SlackBuilds script should be updated to patch out that one line since /usr/lib64/java/man is already present in man_db.conf. Without a MANPATH being set by /etc/profile, I end up with a MANPATH of ":/usr/lib64/java/man:/usr/lib64/java/man". (Yes, twice. Dunno why.) I'll contact Robby Workman about it, since it's his SlackBuilds script.
I replied via email, but for those following along, I'll write it here too. SBo targets the latest stable Slackware release, so this won't be changed for now. You might get ponce's attention and see if he'll change it in his -current repo though.
 
Old 07-13-2018, 03:40 AM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by rworkman View Post
I replied via email, but for those following along, I'll write it here too. SBo targets the latest stable Slackware release, so this won't be changed for now. You might get ponce's attention and see if he'll change it in his -current repo though.
pushed!
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
man page is not found although $MANPATH and man.conf changed Abbraxas Linux - Newbie 3 09-05-2011 06:40 PM
Is it directory /usr/share/man/man8/ needed? centosfan Linux - General 1 08-08-2009 06:10 PM
/usr/local/women man pages not working Helpmelinus General 18 10-16-2008 07:02 AM
/usr/local/man/man8 dragunu Linux - Newbie 1 11-12-2006 06:43 PM
/usr/share/man/manX secprovider Linux - General 1 08-20-2003 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration