Opened 8 months ago

Closed 8 months ago

#18899 closed bug (invalid)

man warns outdated mandoc.db after makewhatis has already been run

Reported by: mcsuper5 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: - General Version: R1/beta4
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Man appears to parse MANPATH correctly, but can't find the database for the second entry of the manpath. The behavior occurs if man.conf has 2 lines or if it has one line and you export "MANPATH=:/boot/home/config/non-packaged/man"

~> $ cat /boot/system/settings/man.conf

manpath /boot/system/documentation/man/

manpath /boot/home/config/non-packaged/man/

~> $ man wrap

[The man page comes up fine and is exited by pressing 'q']

man: /boot/system/var/mandoc/boot/system/documentation/man/mandoc.db/boot/home/config/non-packaged/man/mandoc.db: Not a directory man: outdated mandoc.db lacks wrap(1) entry, run makewhatis /boot/home/config/non-packaged/man

Currently running: Haiku shredder 1 hrev56578+96 Apr 30 2024 06:39: x86_64 x86_64 Haiku on VirtualBox

The problem appears to be the search for the mandoc.db if it is not found in the first entry of the MANPATH. Possibly using strncat instead of strncpy (or equivalent methods) when searching for the database?

If I swap the lines in man.conf , my man pages don't have the problem but the system ones do, so the pages are not the issue.

Change History (2)

comment:1 by mcsuper5, 8 months ago

Note: I did run makewhatis /boot/home/config/non-packaged/man, and /system/var/mandoc/boot/home/config/non-packaged/man/mandoc.db exists.

comment:2 by waddlesplash, 8 months ago

Resolution: invalid
Status: newclosed

This should be reported at https://github.com/haikuports/haikuports/ and not here.

Note: See TracTickets for help on using tickets.