FS#9130 - replace man with man-db
Attached to Project:
Arch Linux
Opened by Roman Kyrylych (Romashka) - Tuesday, 08 January 2008, 13:45 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 18 February 2009, 22:20 GMT
Opened by Roman Kyrylych (Romashka) - Tuesday, 08 January 2008, 13:45 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 18 February 2009, 22:20 GMT
|
Details
Description:
man should be replaced by man-db which supports UTF-8. http://www.nongnu.org/man-db/ The difference from ordinary man is that man-db uses a Berkeley DB database in place of the traditional flat-text whatis databases Additional info: man-db is already packaged in community - http://aur.archlinux.org/packages.php?do_Details=1&ID=9343 |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Wednesday, 18 February 2009, 22:20 GMT
Reason for closing: Implemented
Wednesday, 18 February 2009, 22:20 GMT
Reason for closing: Implemented
Everything works perfectly with man-db. (I also noticed in the same time that Debian already uses it)
So +1
1) it uses /usr/libexec
2) I didn't find a way yet to keep colorized man pages
export GROFF_NO_SGR=1
Xavier mentioned that man-db uses /usr/libexec. Yes, it does by default, per the GNU standards, but you can use configure --libexecdir to change this (as Debian does).
I noticed elsewhere that some Arch Linux users are having problems with libdb version mismatches. Nowadays I recommend configuring man-db to use gdbm rather than Berkeley DB, and this will be the default in man-db 2.5.3. In the meantime, you can use --with-db=gdbm; make sure that databases are rebuilt on upgrades to the version in which you make that change.
lstat64 -> lstat -> stat
geteuid32 -> geteuid -> getuid
man fails hard on lstat64 and geteuid32, while man-db handles them perfectly.
So to answer Aaron's question, it seems that in fact man-db works better with the current man-pages package which compresses all man pages.
However JGC made a strong argument agasint man-db in the above thread, that the database needs to be updated manually on each new man pages installation.
Updating the man-db database is equivalent to running makewhatis with man. With both packages, this has the effect of ensuring that the whatis and apropos programs produce current output. You therefore want to do it every so often, but there's certainly no strict requirement to update the database every time new manual pages are installed. (We do update it in Debian since a relatively recent feature in our package management system makes it easy, but we got by without doing so for years and it was largely OK.)
Formatted manual pages are *not* stored in the database. The man program itself will work perfectly well even if the database is out of date, just as it does with the man package.
Never upon package installation.