Mail archive
alpine-aports

Re: [alpine-aports] [PATCH] main/mdocml: use a cron instead of a trigger to invoke makewhatis(8)

From: Sören Tempel <soeren_at_soeren-tempel.net>
Date: Wed, 12 Aug 2015 14:31:56 +0200

On 12.08.15, Natanael Copa wrote:
> I am not sure I like this. How much does it slow things down? are we
> talking about 1-2 seconds or 2 minutes?

I have 10488 man pages installed:

        $ find /usr/share/man -type f | wc -l

This is the output of 'time apk add mdocml-doc' with this patch:

(1/1) Installing mdocml-doc (1.13.3-r5)
OK: 819 MiB in 314 packages
    0m0.44s real 0m0.00s user 0m0.00s system

This is the output of 'time apk add mdocml-doc' without this patch:

(1/1) Installing mdocml-doc (1.13.3-r5)
Executing mdocml-1.13.3-r4.trigger
OK: 818 MiB in 314 packages
    0m37.73s real 0m0.00s user 0m0.00s system

> The way i think, the index is only needed to be created once, not every
> night.

If a new man page gets added to /usr/share/man the index needs to be
rebuild so it is a good idea to invoke makewhatis(8) automatically in a
certain interval. I think invoking it every night is a good interval.

> If you can wait til tomorrow for using it, then you will most likely
> not need it at all.

That's not true at all. The index is created on install already, it's
only updated at night.

> so i wonder if we should simply move makewhatis and db and all to a
> subpackage and have the trigger there.

I kind of dislike that idea since it doesn't solve the problem that it
takes ages to install packages containing manpages than.

Sören.


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Aug 12 2015 - 14:31:56 GMT