This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mandb -p deleting "obsolete" Windows cat directories

Recently loaded up a bunch of man pages for other systems ("man -m SYSTEM") for
use across installs under /proc/cygdrive/c/usr/local/share/man/...

To make these usable I added short symlinks in those directories, added those to
/etc/man_db.conf (attached) with associated catpaths, then ran mandb -p
(--no-purge), which took a long time.

I was surprised when I looked at the log (attached, with lots of man directory
indexing stripped), that mandb -p decide to scan my C drive and perform the
undocumented action of removing Windows localization cat directories that it
considers obsolete e.g.
Removing obsolete cat directory /proc/cygdrive/c/Windows/en-US...
which is kind of worrisome, especially when the complete path is not shown!

Question is why does mandb scan the whole drive, think Windows cat directories
are its property, delete them while running with -p, and suggestions for how I
can stop mandb doing that, including configuration or system changes, or
approaches to mandb patches, I can make to do that?

I have renamed /etc/postinstall/ temporarily to avoid future surprises.

MANPATH is the result of a profile script developed over the years to set up all
useful man directories on various systems, without duplicates, depending on
whether they are accessible from each system at login.

$ echo $MANPATH

Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

Attachment: man_db.conf
Description: Text document

Attachment: mandb.log
Description: Text document

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]