Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1311284 - M-x man does not complete recently-installed man pages
Summary: M-x man does not complete recently-installed man pages
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: man-db
Version: 23
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Nikola Forró
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-23 20:12 UTC by Robin Green
Modified: 2016-03-13 23:53 UTC (History)
13 users (show)

Fixed In Version: man-db-2.7.1-11.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-13 23:53:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.