X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 42212DC0D2C; Wed, 12 Aug 2015 13:05:47 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id A71DEDC02FF; Wed, 12 Aug 2015 13:05:46 +0000 (UTC) Date: Wed, 12 Aug 2015 15:05:43 +0200 From: Natanael Copa To: =?ISO-8859-1?B?U/ZyZW4=?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/mdocml: use a cron instead of a trigger to invoke makewhatis(8) Message-ID: <20150812150543.1599f6d2@ncopa-desktop.alpinelinux.org> In-Reply-To: <20150812123153.GA889@francium.lan> References: <1439237974-14854-1-git-send-email-soeren+git@soeren-tempel.net> <20150812110154.226f96fc@ncopa-desktop.alpinelinux.org> <20150812123153.GA889@francium.lan> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.25; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP On Wed, 12 Aug 2015 14:31:56 +0200 S=F6ren Tempel wrote: > 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? >=20 > I have 10488 man pages installed: ... > 0m37.73s real 0m0.00s user 0m0.00s system ok, 38 sec is not acceptable. > > The way i think, the index is only needed to be created once, not every > > night. >=20 > 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. But you only add things to /usr/share/man when you apk add? > > If you can wait til tomorrow for using it, then you will most likely > > not need it at all. >=20 > That's not true at all. The index is created on install already, it's > only updated at night. How is it created on install if there are no trigger? > > so i wonder if we should simply move makewhatis and db and all to a > > subpackage and have the trigger there. >=20 > I kind of dislike that idea since it doesn't solve the problem that it > takes ages to install packages containing manpages than. You can use man pages without mandoc.db since mdocml-1.13.3. =46rom http://mdocml.bsd.lv/NEWS: > Changes in version 1.13.3, released on March 13, 2015 ... > * Use this to always provide man(1), even without database support. Pages are showed perfectly fine, but you do get a warning on exit: ncdev-edge-x86_64:~/aports/main/mdocml$ sudo apk add man-pages (1/1) Installing man-pages (4.02-r0) Executing mdocml-1.13.3-r4.trigger OK: 435 MiB in 134 packages ncdev-edge-x86_64:~/aports/main/mdocml$ man 2 read ncdev-edge-x86_64:~/aports/main/mdocml$ sudo rm /usr/share/man/mandoc.db=20 ncdev-edge-x86_64:~/aports/main/mdocml$ man 2 read /usr/share/man/mandoc.db: No such file or directory man: outdated mandoc.db lacks read(2) entry, consider running # makewhatis /usr/share/man Other option would be to run it in background: /usr/sbin/makewhatis -a -T utf8 /usr/share/man & -nc --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---