Red Hat Bugzilla – Bug 1311284
M-x man does not complete recently-installed man pages
Last modified: 2016-03-13 19:53:52 EDT
Description of problem:
M-x man does not complete man pages that have recently been installed. However, it displays them just fine.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. sudo dnf install autofs
2. In emacs, M-x man
3. auto <TAB>
Possible completions are:
Should include autofs(8) and autofs.conf(5). It is not about the section, because resolv.conf(5) _is_ completed correctly.
Maybe this is actually a bug in the autofs rpm spec file - maybe it should ensure the man page "cache" that is evidently being used here (whatever it is) is updated?
Probably not, since spec files usually don't invoke mandb directly. Running mandb after installing the package solves the issue.
I don't know how rpm uses the man cache when it installs packages containing man pages. Could anybody from the rpm team please advise?
The cache is maintained by man-db.
This is supposed to be handled by the %transfiletriggerin (etc.) trigger in man-db's spec file. That's probably the place to start looking.
In F23, the man cache is updated daily by a cron job. In F24, starting with version 2.7.3-2.fc24, man-db takes advantage of new rpm feature called file triggers and man cache update is triggered after installation of any package containing man pages.
Since rpm in F23 also supports file triggers, I will rebase man-db in F23 to solve this issue.
man-db-2.7.1-11.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ea371ced65
man-db-2.7.1-11.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ea371ced65
man-db-2.7.1-11.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.