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 8B958DC0127; Thu, 6 Aug 2015 06:57:53 +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 E11DADC0D2C; Thu, 6 Aug 2015 06:57:52 +0000 (UTC) Date: Thu, 6 Aug 2015 08:57:49 +0200 From: Natanael Copa To: =?ISO-8859-1?B?U/ZyZW4=?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/mdocmal: don't rebuild the mandoc.db from scratch every time Message-ID: <20150806085749.40ee46d6@ncopa-desktop.alpinelinux.org> In-Reply-To: <1438807045-7756-1-git-send-email-soeren+git@soeren-tempel.net> References: <1438807045-7756-1-git-send-email-soeren+git@soeren-tempel.net> 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, 5 Aug 2015 22:37:25 +0200 S=F6ren Tempel wrote: > mdocmls makewhatis(8) implementation should be able to build the > mandoc.db incrementally. Removing it forces mdocml to regenerate it > completely which can take a lot of time if you have a bunch of man pages > installed on your system and thus slows down package installation. Problem is that if you apk del a package it will not remove entries in the database. We should probably talk with upstream and ask for a clean-up feature that will remove entries in the db that does not exist. > Furthermore, I also switch the string encoding from ascii to utf-8. In > addition to that I noticed that some files weren't listed in the source > APKBUILD variable. This is good. > Seem to work for me but further tests would be appreciated. > --- > main/mdocml/APKBUILD | 10 +++++++++- > main/mdocml/mdocml.trigger | 4 ++-- > 2 files changed, 11 insertions(+), 3 deletions(-) >=20 > diff --git a/main/mdocml/APKBUILD b/main/mdocml/APKBUILD > index 739b5ae..7cdbd72 100644 > --- a/main/mdocml/APKBUILD > +++ b/main/mdocml/APKBUILD > @@ -1,7 +1,7 @@ > # Maintainer: Natanael Copa > pkgname=3Dmdocml > pkgver=3D1.13.3 > -pkgrel=3D2 > +pkgrel=3D3 > pkgdesc=3D"mdoc/man compiler" > url=3D"http://mdocml.bsd.lv/" > arch=3D"all" > @@ -13,7 +13,9 @@ triggers=3D"$pkgname.trigger=3D/usr/share/man/*" > subpackages=3D"$pkgname-doc $pkgname-dev man" > source=3D"http://mdocml.bsd.lv/snapshots/mdocml-$pkgver.tar.gz > shared-libmandoc.patch > + mdocml.post-deinstall > default-pager.patch > + mdocml.trigger > man.conf > " > =20 > @@ -55,13 +57,19 @@ man() { > =20 > md5sums=3D"7be80e1116a11abe2aabd6b2f04434ef mdocml-1.13.3.tar.gz > 8d130a332fbd3268550819ade96c9afd shared-libmandoc.patch > +f369b00f82b5cb03477cbea363dc3c65 mdocml.post-deinstall > aa3421f2d2da345a7514be51707d6829 default-pager.patch > +ecf8c7861089b1491975ce2adbb0648c mdocml.trigger > 6e893bef0cf680eec807b230e6619d27 man.conf" > sha256sums=3D"23ccab4800d50bf4c327979af5d4aa1a6a2dc490789cb67c4c3ac1bd40= b8cad8 mdocml-1.13.3.tar.gz > 676dd35caedc759cc83ae1dbf7fde5709d6fe4ed14c652af4cbebc5ccdbdc71b shared= -libmandoc.patch > +c57b5009009fdb4e8585166b2df404ed41e4caf3cbcbc0bf1d8bf2669637f68c mdocml= .post-deinstall > f0a393ff3a630cd0e9e412241890b2356153ffb4ef0d419a7979edc4ed5e57e3 defaul= t-pager.patch > +aed1627d5da8f9eccf900a672c4af49756767a3abcc6abc664ac31152b5c7f43 mdocml= .trigger > 3381c6ceb99e7db1404fdb44419040c3b441a251d594292e53545b5e4e378e2b man.co= nf" > sha512sums=3D"a3b7304e313b905b3575d79eb7ac861723e0ef3f700199c136abe4d4c6= 98929e99ee0789bfc6e591224fb0006c709afe0e4c1bb578605a767c371ec7dee26024 mdo= cml-1.13.3.tar.gz > bdbe471bcc5d5009ee8a9c4fb2f7903a5114afd8da1d6807c462fefdbe4b508711386b0f= e7febb92977f97751c1d4fd486f1e1ecae0b7c1ba4dc28c0a7dda0b6 shared-libmandoc.= patch > +c677c1b3d3705dfa130d69056a2a4c694802f51d881d0b48d8b280d87a882e0a5b906273= 840510af439b0c7f08da5d8d99b3f2cba396cf1781633dcb044bf4d9 mdocml.post-deins= tall > c8a4a11a5aa166670d8f8d4e0dba803068d3f1b6aee483daaf889da661a9281387fcd2f0= 0d2dad7ef5c66e3419df205e2c75bb58fb9b055db284b4ac2f23eb7e default-pager.pat= ch > +2635ad618935058a447f7e7674ef90f65f87157b61a75b8cfbba6d6d356948075f32f625= bb91abc663bbcfcd012ce524e694b75c79d11149fa6ae259a4fd7cf7 mdocml.trigger > 0723c32ab70e5b1c77768ca78d7437b26bed19b90b27876b10cc463359c41332befc0105= fc1e23ceae48de5a892f1aa7ac60ef7eb0b6b8f1616726c4300632fe man.conf" > diff --git a/main/mdocml/mdocml.trigger b/main/mdocml/mdocml.trigger > index 0f64443..fc299d1 100644 > --- a/main/mdocml/mdocml.trigger > +++ b/main/mdocml/mdocml.trigger > @@ -1,4 +1,4 @@ > #!/bin/sh > =20 > -rm -f /usr/share/man/mandoc.db > -exec /usr/sbin/makewhatis -a /usr/share/man > +exec /usr/sbin/makewhatis \ > + -a /usr/share/man -T utf8 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---