DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th February 2020
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default manpage naming conflicts

Not sure if this topic is more of a general OpenBSD question, but since it involves stuff from ports I'm putting it here.

I've installed tcl-8.6. Regarding manual pages the pkg-readme instructs you thusly:
Quote:
Manual Page Configuration
=========================
Adding the following lines to /etc/man.conf wil enable man(1)
and related commands can find the Tcl and Tk manual pages.

manpath /usr/local/lib/tcl/tcl8.6/man
manpath /usr/local/lib/tcl/tk8.6/man
Works as expected. The problem is that the man pages don't have unique names.
If I type
Code:
man file
I get the man page with the Tcl file command instead of file(1)
Any pro tips how to resolve such conficts?
Reply With Quote
  #2   (View Single Post)  
Old 20th February 2020
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Not a pro here, but the -a flag to man(1) will display all matching pages.

% man -a file

So you just keep quitting your pager until it's showing the one you want. That's a somewhat coarse-grained solution. It may be possible to do something more clever with other man(1) flags.
Reply With Quote
  #3   (View Single Post)  
Old 20th February 2020
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,132
Default

No idea if those Tcl man pages are a specific section. If that is the case you could specify the section number.

As an example there are 2 different man pages named re. See re(3) and re(4).
To read these from the command line:
Code:
$ man 3 re
$ man 4 re
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 20th February 2020
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

I realised I made a configuration error. If you use man.conf(5) you also have to supply paths to the default manpages. So my current man.conf now looks like this:
Code:
manpath /usr/share/man
manpath /usr/X11R6/man
manpath /usr/local/man
manpath /usr/local/lib/tcl/tcl8.6/man
manpath /usr/local/lib/tcl/tk8.6/man/
Previously I only had the last two lines in it, assuming these would somehow be added to the manpage paths. With the updated man.conf in place your solutions work nicely:


Quote:
Originally Posted by IdOp View Post
Not a pro here, but the -a flag to man(1) will display all matching pages.

% man -a file

So you just keep quitting your pager until it's showing the one you want. That's a somewhat coarse-grained solution. It may be possible to do something more clever with other man(1) flags.
Actually, you don't have to quit the pager. At least that's what's happening here. With the above config file and your command I get all matching manual pages displayed one after the other visually separated by a line. I just have to scroll down hitting <space>.

Quote:
Originally Posted by J65nko View Post
No idea if those Tcl man pages are a specific section. If that is the case you could specify the section number.

As an example there are 2 different man pages named re. See re(3) and re(4).
To read these from the command line:
Code:
$ man 3 re
$ man 4 re
Indeed. Most of the Tcl man pages are in section n.
So
Code:
man n file
works like a charm.

Problem solved. Thanks guys!
Reply With Quote
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
conflicts between two packages nico_h FreeBSD Ports and Packages 1 16th February 2013 08:26 PM
Fedora 15 Changing The Network Device Naming Scheme J65nko News 4 27th January 2011 12:30 PM
How To: Create a manpage from scratch. FBSD Guides 0 12th April 2010 07:30 AM
Manpage colorization on the terminal JMJ_coder NetBSD General 2 17th February 2009 09:17 PM
Naming of the FAQS scottro Feedback and Suggestions 0 1st May 2008 10:02 PM


All times are GMT. The time now is 07:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick