man-db should be updated when installing new manpages

Bug #50110 reported by Peter Berry
24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
man-db (Ubuntu)
Fix Released
Wishlist
Colin Watson

Bug Description

After installing a package containing manpages, you have to wait for cron to update the man db before you can use the new whatis entries (e.g. with apropos). The package's install script should do this itself so you can use them immediately.

Revision history for this message
Peter Berry (pwberry) wrote :

Ok, apparently they are there, but the whatis database isn't updated till cron does it. Shouldn't the install scripts update it?

Martin Pitt (pitti)
Changed in postgresql:
importance: Untriaged → Low
Revision history for this message
Peter Berry (pwberry) wrote :

changed description and source package. This is really a bug in all packages that install manpages.

description: updated
Revision history for this message
Colin Watson (cjwatson) wrote :

This can only sensibly be done once we have triggers support in dpkg (see the dpkg-triggers specification).

Changed in man-db:
importance: Low → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Shirish Agarwal (shirishag75) wrote :

There is no blueprint or specification given anywhere other than on the mailing list https://lists.ubuntu.com/archives/ubuntu-devel/2007-January/023212.html hence putting it there.

Revision history for this message
Colin Watson (cjwatson) wrote :

I'm just waiting for triggers to be deployed in Debian's dpkg at the moment before doing this (since I don't want to have to diverge man-db from Debian in Ubuntu and thereby end up maintaining two branches). I have a working patch otherwise, which I expect to be able to deploy in the development cycle leading up to Ubuntu 8.04.

Revision history for this message
Peter Berry (pwberry) wrote :

Any news?

Revision history for this message
Colin Watson (cjwatson) wrote :

Didn't make it for 8.04, I'm afraid (due to triggers being late to land in Debian for various reasons), but I've now committed it to my development tree and it will be in the next upload to Debian. I expect that to be synced into Ubuntu very shortly afterwards.

Changed in man-db:
assignee: nobody → kamion
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package man-db - 2.5.1-4

---------------
man-db (2.5.1-4) unstable; urgency=low

  * Add support for dpkg triggers per
    http://lists.debian.org/debian-dpkg/2007/04/msg00076.html. There's no
    versioned dependency on a trigger-supporting version of dpkg since this
    is an optional feature, but now installation of any package including
    manual pages will trigger a database rebuild at the end of the dpkg run
    once the new dpkg is available (closes: #133917, LP: #50110).
  * Build-depend on debhelper (>= 5.0.59) for triggers installation in
    dh_installdeb.
  * Configuration always needs to be a superset of triggering, so we always
    need to build or update the database on upgrade. After some thought,
    I've decided that we can live with doing this unconditionally in the
    foreground: mandb is faster than it used to be, hardware is faster than
    it used to be, and most builds from scratch will be due to installing
    from scratch when relatively few manual pages are installed. Thus, I've
    ripped out the two debconf questions dealing with this.
  * Move doc-base entry to Viewers (from Applications/Viewers).

 -- Ubuntu Archive Auto-Sync <email address hidden> Fri, 02 May 2008 02:18:38 +0100

Changed in man-db:
status: Fix Committed → Fix Released
Revision history for this message
Peter Berry (pwberry) wrote :

I guess now the man-db entry in /etc/cron.daily is redundant then?

Revision history for this message
Kyle H (aerowolf) wrote :

Non-.deb-installed man pages won't trigger the hook when they're installed. This makes removing man-db from /etc/cron.daily undesirable.

zain22 (zainriel)
Changed in man-db (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 50110] Re: man-db should be updated when installing new manpages

On Thu, Oct 15, 2009 at 12:11:57AM -0000, zain22 wrote:
> ** Changed in: man-db (Ubuntu)
> Status: Fix Released => Confirmed

Please explain why you reopened this bug.

I'm setting it back to closed for the time being on the assumption that
this was an accident. If you intended to reopen this bug, you need to
provide a reason.

 status fixreleased

Changed in man-db (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.