Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Running makemandb on every boot



On Tue, May 20, 2014 at 01:20:18AM +0700, Robert Elz wrote:
>     Date:        Mon, 19 May 2014 18:07:31 +0200
>     From:        Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
>     Message-ID:  <20140519160731.GA9026%britannica.bec.de@localhost>
> 
>   | Doesn't work, it could be a file that didn't exist on the last run.
>   | Consider running pkg_add.
> 
> The cmd was ...
> 
> man -p | while read d
> do
>         echo checking $d
>         find $d -cnewer /var/db/man.db | wc -l
> done
> 
> Note the -cnewer ... pkg_add cannot make that less than when the package
> was inatalled, if that happened after the last build of man.db, the find
> will locate it.

But this is going to stat(2) every file, so it doesn't really change
anything fundamentally. As I said, the check for existing entries is way
too slow right now, so that should be fixed. Everything else is just
distraction until that happened.

Joerg


Home | Main Index | Thread Index | Old Index