Bug 1311284

Summary: M-x man does not complete recently-installed man pages
Product: [Fedora] Fedora Reporter: Robin Green <greenrd>
Component: man-dbAssignee: Nikola Forró <nforro>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: cjwatson, jchaloup, jonathan.underwood, jskarvad, jsynacek, jzeleny, lkardos, msekleta, nforro, novyjindrich, packaging-team-maint, phracek, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: man-db-2.7.1-11.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-13 23:53:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Green 2016-02-23 20:12:09 UTC
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):
emacs-24.5-7.fc23.x86_64

How reproducible:
Always

Steps to Reproduce:
1. sudo dnf install autofs
2. In emacs, M-x man
3. auto <TAB>

Actual results:
Possible completions are:
AutoLoader(3pm) 	AutoSplit(3pm)
autoconf(1) 	autodie(3pm)
autodie::Scope::Guard(3pm) 	autodie::Scope::GuardStack(3pm)
autodie::Util(3pm) 	autodie::exception(3pm)
autodie::exception::system(3pm) 	autodie::hints(3pm)
autodie::skip(3pm) 	autoheader(1)
autom4te(1) 	automake(1)
automake-1.15(1) 	autopoint(1)
autoreconf(1) 	autoscan(1)
autoupdate(1) 	autouse(3pm)

Expected results:
Should include autofs(8) and autofs.conf(5). It is not about the section, because resolv.conf(5) _is_ completed correctly.

Comment 1 Robin Green 2016-02-23 20:13:49 UTC
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?

Comment 2 Jan Synacek 2016-03-08 10:36:05 UTC
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?

Comment 3 Jan Chaloupka 2016-03-08 11:03:45 UTC
The cache is maintained by man-db.

Comment 4 Colin Watson 2016-03-08 11:43:16 UTC
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.

Comment 5 Nikola Forró 2016-03-08 11:45:50 UTC
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.

Comment 7 Fedora Update System 2016-03-08 14:59:28 UTC
man-db-2.7.1-11.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ea371ced65

Comment 8 Fedora Update System 2016-03-09 22:56:24 UTC
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

Comment 9 Fedora Update System 2016-03-13 23:53:46 UTC
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.